Files
openfoam/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler/Allrun
2020-12-22 12:27:21 +01:00

27 lines
919 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
(cd fluid && ./Allrun.pre)
(cd solid && runApplication blockMesh)
# Run serial
mpirun -app ./mpirun.schema
# Run parallel
(cd fluid && runApplication decomposePar)
(cd solid && runApplication decomposePar)
#mpirun -app ./mpirun.schema_parallel
# The problem is keeping the log files separate so use the openmpi
# mpirun option to keep the separate outputs in the logs/ directory
mpirun \
--output-filename logs \
-np 3 compressibleInterFoam -case fluid -world fluid -parallel : \
-np 2 solidFoam -case solid -world solid -parallel \
>& log.compressibleInterFoam_solidFoam
#------------------------------------------------------------------------------