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
31 lines
959 B
Bash
Executable File
31 lines
959 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd ${0%/*} || exit 1
|
|
|
|
inletFlowRate=postProcessing/inletFlowRate/0/surfaceFieldValue.dat
|
|
lowerOutletFlowRate=postProcessing/lowerOutletFlowRate/0/surfaceFieldValue.dat
|
|
upperOutletFlowRate=postProcessing/upperOutletFlowRate/0/surfaceFieldValue.dat
|
|
|
|
gnuplot << EOF
|
|
set terminal postscript eps color enhanced
|
|
set output "flowRate.eps"
|
|
set xlabel "Time (s)"
|
|
set ylabel "Flow Rate (m^3/s)"
|
|
plot \
|
|
"$inletFlowRate" us 1:(-\$2) every 10 w p t "Inlet", \
|
|
"$lowerOutletFlowRate" us 1:2 w l t "Lower Outlet", \
|
|
"$upperOutletFlowRate" us 1:2 w l t "Upper Outlet", \
|
|
"< paste $lowerOutletFlowRate $upperOutletFlowRate" \
|
|
us 1:(\$2+\$4) w l t "Total Outlet"
|
|
EOF
|
|
|
|
gnuplot << EOF
|
|
set terminal postscript eps color enhanced
|
|
set output "error.eps"
|
|
set xlabel "Time (s)"
|
|
set ylabel "Inlet-Outlet Conservation Error (%)"
|
|
plot \
|
|
"< paste $inletFlowRate $lowerOutletFlowRate $upperOutletFlowRate" \
|
|
us 1:(100*(\$2+\$4+\$6)/\$2) w l t ''
|
|
EOF
|