mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
36 lines
902 B
Bash
Executable File
36 lines
902 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
./Allrun.pre
|
|
|
|
# Remove lock file on interrupt
|
|
trap '\rm -f comms/OpenFOAM.lock 2>/dev/null' INT
|
|
|
|
#-- Run on single processor
|
|
#runApplication $(getApplication) &
|
|
# Simulated external solver
|
|
#runApplication ./externalSolver
|
|
|
|
# Decompose
|
|
runApplication decomposePar -allRegions
|
|
|
|
## Can verify parallel operation of createExternalCoupledPatchGeometry
|
|
# \rm -f log.createExternalCoupledPatchGeometry
|
|
# runParallel createExternalCoupledPatchGeometry \
|
|
# -regions '(topAir heater)' coupleGroup \
|
|
# -commsDir $PWD/comms
|
|
|
|
# Run OpenFOAM
|
|
runParallel $(getApplication) &
|
|
|
|
# Simulated external solver
|
|
runApplication ./externalSolver
|
|
|
|
# Reconstruct
|
|
runApplication reconstructPar -allRegions
|
|
|
|
# -----------------------------------------------------------------------------
|