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
38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
./Allclean
|
|
|
|
# ------ Pos 1 Evaluation
|
|
tail -n 1 ../postProcessing/probes1/*/age | xargs | sed 's/ /\n/g' | tail -n 30 > ageValues
|
|
head -n 30 ../postProcessing/probes1/*/age | cut -d' ' -f6 | cut -d')' -f1 > positionsZ
|
|
|
|
# Build dimless age value
|
|
V=45.36
|
|
Vdot=`cat ../postProcessing/inletFlowRate/*/surfaceFieldValue.dat | tail -n 1 | xargs | cut -d' ' -f2`
|
|
Vdot=`echo $Vdot | sed 's/e/*10^/'`
|
|
|
|
while IFS= read -r line
|
|
do
|
|
echo "scale=5; $line/($V/($Vdot*-1.))" | bc >> ageDimless1
|
|
done < "ageValues"
|
|
|
|
paste positionsZ ageDimless1 > Pos1_OF
|
|
|
|
|
|
# ------ Pos 2 Evaluation
|
|
tail -n 1 ../postProcessing/probes2/*/age | xargs | sed 's/ /\n/g' | tail -n 30 > ageValues
|
|
head -n 30 ../postProcessing/probes2/*/age | cut -d' ' -f6 | cut -d')' -f1 > positionsZ
|
|
|
|
# Build dimless age value
|
|
|
|
while IFS= read -r line
|
|
do
|
|
echo "scale=5; $line/($V/($Vdot*-1.))" | bc >> ageDimless2
|
|
done < "ageValues"
|
|
|
|
paste positionsZ ageDimless2 > Pos2_OF
|
|
|
|
# ------ Plot the results
|
|
gnuplot plot*
|
|
|
|
#------------------------------------------------------------------------------
|