mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: create verificationAndValidation/multiphase
directory and migrate StefanProblem into this
35 lines
792 B
Bash
Executable File
35 lines
792 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
restore0Dir
|
|
|
|
runApplication blockMesh
|
|
|
|
runApplication setAlphaField
|
|
|
|
runApplication setFields
|
|
|
|
runApplication decomposePar
|
|
|
|
runParallel $(getApplication)
|
|
|
|
runApplication reconstructPar
|
|
|
|
# restart
|
|
|
|
latestTime=$(foamListTimes -latestTime)
|
|
|
|
mv -f "$latestTime" "$latestTime".bak
|
|
|
|
rm -rf processor*
|
|
|
|
runParallel -s decompose redistributePar -decompose -latestTime
|
|
|
|
runParallel -s 2 $(getApplication)
|
|
|
|
runParallel -s reconstruct redistributePar -reconstruct -latestTime
|
|
|
|
#------------------------------------------------------------------------------
|