mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
40 lines
1.2 KiB
Bash
Executable File
40 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
runApplication blockMesh
|
|
cp system/decomposeParDict-nonPar system/decomposeParDict
|
|
runApplication decomposePar
|
|
|
|
#runApplication snappyHexMesh -overwrite
|
|
#runApplication setSet -batch makeZones
|
|
#runApplication setsToZones -noFlipMap
|
|
#runApplication windSimpleFoam
|
|
|
|
cp system/decomposeParDict-par system/decomposeParDict
|
|
runParallel snappyHexMesh 2 -overwrite
|
|
|
|
# Add wildcard entries for meshed patches since not preserved
|
|
# by decomposePar. Notice -literalRE option to add wildcard itself
|
|
# without evaluation.
|
|
runParallel changeDictionary 2 -literalRE -enableFunctionEntries
|
|
|
|
cp system/decomposeParDict-4proc system/decomposeParDict
|
|
runParallel redistributeMeshPar 4 -overwrite
|
|
runParallel renumberMesh 4 -overwrite
|
|
|
|
# Add wildcard entries for meshes patches since not preserved
|
|
# by decomposePar. Notice -literalRE option to add wildcard itself
|
|
# without evaluation.
|
|
#runParallel changeDictionary 4 -literalRE
|
|
|
|
runParallel setSet 4 -batch makeZones
|
|
runParallel simpleWindFoam 4
|
|
|
|
runApplication reconstructParMesh -constant
|
|
runApplication reconstructPar
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|