The cellProc field is the field of cell-processor labels. The names "distribution" and "dist" have been removed as these are ambiguous in relation to other forms of distribution and to distance.
27 lines
626 B
Bash
Executable File
27 lines
626 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd ${0%/*} || exit 1
|
|
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Copy torus surface from resources directory
|
|
mkdir constant/geometry && cp $FOAM_TUTORIALS/resources/geometry/ballValve-torus.obj.gz constant/geometry
|
|
|
|
# Mesh
|
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/ballValve
|
|
|
|
# Create couples
|
|
runApplication createNonConformalCouples -overwrite pipeNonCouple ballNonCouple
|
|
|
|
# Decompose
|
|
runApplication decomposePar -cellProc
|
|
|
|
# Initialise the velocity field
|
|
runParallel potentialFoam -pName p_rgh
|
|
|
|
# Run
|
|
runParallel $(getApplication);
|
|
|
|
# Reconstruct
|
|
runApplication reconstructPar -newTimes
|