#!/data/data/com.termux/files/usr/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
#------------------------------------------------------------------------------

resourcesDir="$FOAM_TUTORIALS"/incompressible/adjointOptimisationFoam/resources

restore0Dir

cp -rf "$resourcesDir"/meshes/sbend/polyMesh/ constant/

runApplication decomposePar

runParallel -s adjointOptimisationFoamFirstPhase $(getApplication)

foamDictionary system/controlDict -entry endTime -set 10

runParallel $(getApplication)

runParallel cumulativeDisplacement

#------------------------------------------------------------------------------
