With the selection of the Boussinesq equation of state the general buoyancy solvers buoyantSimpleFoam and buoyantPimpleFoam can be used instead of the specialised Boussinesq solvers avoiding the need for special implementation of thermal and pressure boundary conditions and providing support for radiation and fvOptions which would not have been feasible or practical in the Boussinesq solvers. Other incompressible equations of state are also supported; for most gaseous problems the incompressiblePerfectGas equation of state is likely to be more accurate than the Boussinesq equation of state. The buoyantBoussinesq[SP]impleFoam tutorials have been updated and moved to the corresponding buoyant[SP]impleFoam directories.
28 lines
794 B
Bash
Executable File
28 lines
794 B
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
|
|
|
|
# Serial
|
|
runApplication snappyHexMesh -overwrite
|
|
runApplication $(getApplication)
|
|
|
|
## Parallel
|
|
#runApplication decomposePar -fileHandler collated
|
|
#runParallel snappyHexMesh -overwrite -fileHandler collated
|
|
## Remove any include files from the field dictionaries
|
|
#( mkdir -p processors/0 && \
|
|
# cd 0 && \
|
|
# for f in *; do [ -f "$f" ] && \
|
|
# foamDictionary "$f" > "../processors/0/$f"; done \
|
|
#)
|
|
#
|
|
#runParallel $(getApplication) -fileHandler collated
|
|
#runApplication reconstructParMesh -constant -mergeTol 1e-6
|
|
#runApplication reconstructPar
|
|
|
|
#------------------------------------------------------------------------------
|