mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
The changeDictonary setup has been removed and replaced with a more typical boundary condition setup. Dictionary variables and wildcards have been used to reduce repetition of the simulation parameters.
27 lines
640 B
Bash
Executable File
27 lines
640 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Meshing
|
|
runApplication blockMesh
|
|
runApplication topoSet
|
|
runApplication decomposePar -copyZero
|
|
runParallel splitMeshRegions -cellZones -overwrite
|
|
|
|
# Simulation
|
|
runParallel $(getApplication)
|
|
|
|
# Reconstruct
|
|
for region in bottomWater topAir heater leftSolid rightSolid
|
|
do
|
|
runApplication -s $region reconstructParMesh -constant -region $region
|
|
done
|
|
runApplication reconstructPar -allRegions
|
|
|
|
# Post-process
|
|
paraFoam -touchAll
|
|
|
|
#------------------------------------------------------------------------------
|