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
115 lines
2.1 KiB
C++
115 lines
2.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
object blockMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// outlet1
|
|
// +-+
|
|
// | |
|
|
// | |
|
|
// | |
|
|
// | |
|
|
// +-----------+ |
|
|
// |inlet |
|
|
// +-----------+ |
|
|
// | |
|
|
// | |
|
|
// | |
|
|
// | |
|
|
// +-+
|
|
// outlet2
|
|
|
|
convertToMeters 1;
|
|
|
|
vertices
|
|
(
|
|
(0.0 -0.01 0) //0
|
|
(0.2 -0.01 0)
|
|
(0.2 0.01 0) //2
|
|
(0.0 0.01 0)
|
|
|
|
(0.22 -0.01 0) //4
|
|
(0.22 0.01 0)
|
|
|
|
(0.2 -0.21 0) //6
|
|
(0.22 -0.21 0)
|
|
|
|
(0.2 0.21 0) //8
|
|
(0.22 0.21 0)
|
|
|
|
// Z
|
|
(0.0 -0.01 0.02) //0
|
|
(0.2 -0.01 0.02)
|
|
(0.2 0.01 0.02) //2
|
|
(0.0 0.01 0.02)
|
|
|
|
(0.22 -0.01 0.02) //4
|
|
(0.22 0.01 0.02)
|
|
|
|
(0.2 -0.21 0.02) //6
|
|
(0.22 -0.21 0.02)
|
|
|
|
(0.2 0.21 0.02) //8
|
|
(0.22 0.21 0.02)
|
|
|
|
);
|
|
|
|
blocks
|
|
(
|
|
// inlet block
|
|
hex (0 1 2 3 10 11 12 13) (50 5 5) simpleGrading (1 1 1)
|
|
|
|
// central block
|
|
hex (1 4 5 2 11 14 15 12) (5 5 5) simpleGrading (1 1 1)
|
|
|
|
// bottom block
|
|
hex (6 7 4 1 16 17 14 11) (5 50 5) simpleGrading (1 1 1)
|
|
|
|
// top block
|
|
hex (2 5 9 8 12 15 19 18) (5 50 5) simpleGrading (1 1 1)
|
|
);
|
|
|
|
defaultPatch
|
|
{
|
|
type empty;
|
|
}
|
|
|
|
boundary
|
|
(
|
|
inlet
|
|
{
|
|
type patch;
|
|
faces ((0 10 13 3));
|
|
}
|
|
|
|
outlet1
|
|
{
|
|
type patch;
|
|
faces ((6 7 17 16));
|
|
}
|
|
|
|
outlet2
|
|
{
|
|
type patch;
|
|
faces ((8 18 19 9));
|
|
}
|
|
|
|
defaultFaces
|
|
{
|
|
type wall;
|
|
faces ();
|
|
}
|
|
);
|
|
|
|
// ************************************************************************* //
|