mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
27 lines
919 B
Bash
Executable File
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
|
|
|
|
#------------------------------------------------------------------------------
|