mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
30 lines
741 B
Bash
Executable File
30 lines
741 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Run serial
|
|
./Allrun.pre
|
|
mpirun -app ./mpirun_left_right.schema
|
|
|
|
# Run with database
|
|
mv -f log.run_left* log.run_right*
|
|
|
|
for subcase in left right
|
|
do
|
|
(
|
|
cd "$subcase" || exit
|
|
foamListTimes -rm
|
|
restore0Dir
|
|
foamDictionary 0/T -entry boundaryField.coupled.sampleDatabase -add true
|
|
)
|
|
done
|
|
|
|
mpirun -app ./mpirun_left_right.schema
|
|
|
|
## Run parallel
|
|
## ./Allrun.pre-parallel
|
|
## mpirun -app ./mpirun.schema
|
|
|
|
#------------------------------------------------------------------------------
|