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
29 lines
930 B
Bash
Executable File
29 lines
930 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Make 3D mesh in slab of cells.
|
|
cd wingMotion_snappyHexMesh
|
|
runApplication blockMesh
|
|
runApplication snappyHexMesh -overwrite
|
|
|
|
# Make a 2D mesh by extruding a patch and solve to steady state.
|
|
cd ../wingMotion2D_steady
|
|
runApplication extrudeMesh
|
|
runApplication createPatch -overwrite
|
|
runApplication foamRun
|
|
|
|
# Copy the mesh from the steady state case and map the results to a
|
|
# mesh motion case, then solve transient.
|
|
cd ../wingMotion2D_transient
|
|
cp -R ../wingMotion2D_steady/constant/polyMesh constant
|
|
runApplication mapFields ../wingMotion2D_steady -sourceTime latestTime -consistent
|
|
cp pointDisplacement 0/pointDisplacement
|
|
runApplication decomposePar
|
|
runParallel $(getApplication)
|
|
runApplication reconstructPar
|
|
|
|
#------------------------------------------------------------------------------
|