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
32 lines
739 B
Bash
Executable File
32 lines
739 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd ${0%/*} || exit 1
|
|
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Copy torus surface from resources directory
|
|
mkdir constant/geometry && cp $FOAM_TUTORIALS/resources/geometry/ballValve-torus.obj.gz constant/geometry
|
|
|
|
# Mesh
|
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/ballValve
|
|
runApplication topoSet
|
|
runApplication transformPoints -pointSet ball "Rz=-45"
|
|
|
|
# Create couples
|
|
runApplication createNonConformalCouples -overwrite pipeNonCouple ballNonCouple
|
|
|
|
# Decompose
|
|
runApplication decomposePar -cellProc
|
|
|
|
# Set the value of the scalar transport field
|
|
runParallel setFields
|
|
|
|
# Run
|
|
runParallel $(getApplication);
|
|
|
|
# Reconstruct
|
|
runApplication reconstructPar -newTimes
|
|
|
|
# Plot the flow rates
|
|
./createGraphs
|