executed with foamRun for single region simulations of foamMultiRun for
multi-region simulations. Replaces pimpleFoam, pisoFoam and simpleFoam and all
the corresponding tutorials have been updated and moved to
tutorials/modules/incompressibleFluid.
Class
Foam::solvers::incompressibleFluid
Description
Solver module for steady or transient turbulent flow of incompressible
isothermal fluids with optional mesh motion and change.
Uses the flexible PIMPLE (PISO-SIMPLE) solution for time-resolved and
pseudo-transient and steady simulations.
Optional fvModels and fvConstraints are provided to enhance the simulation
in many ways including adding various sources, constraining or limiting
the solution.
Reference:
\verbatim
Greenshields, C. J., & Weller, H. G. (2022).
Notes on Computational Fluid Dynamics: General Principles.
CFD Direct Ltd.: Reading, UK.
\endverbatim
SourceFiles
incompressibleFluid.C
See also
Foam::solvers::fluidSolver
Foam::solvers::isothermalFluid
44 lines
1.1 KiB
Bash
Executable File
44 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
mapTimes="0.0015 0.003"
|
|
|
|
# Iterate the string variable using for loop
|
|
for mapTime in $mapTimes; do
|
|
|
|
runApplication -a blockMesh -dict blockMeshDict_$mapTime
|
|
runApplication -a decomposePar -force -noFields -dict decomposeParDict_$mapTime
|
|
|
|
rm -rf constant/meshToMesh_$mapTime
|
|
mkdir constant/meshToMesh_$mapTime
|
|
|
|
for procI in processor*
|
|
do
|
|
mv $procI/constant/polyMesh constant/meshToMesh_$mapTime/$procI
|
|
done
|
|
|
|
mv constant/polyMesh constant/meshToMesh_$mapTime
|
|
|
|
done
|
|
|
|
runApplication -a blockMesh -dict blockMeshDict
|
|
runApplication -a decomposePar -force
|
|
|
|
for mapTime in $mapTimes; do
|
|
|
|
for procI in processor*
|
|
do
|
|
mkdir $procI/constant/meshToMesh_$mapTime
|
|
mv constant/meshToMesh_$mapTime/$procI $procI/constant/meshToMesh_$mapTime/polyMesh
|
|
done
|
|
|
|
done
|
|
|
|
runParallel $(getApplication)
|
|
runApplication reconstructPar
|
|
|
|
#------------------------------------------------------------------------------
|