executed with foamRun for single region simulations of foamMultiRun for
multi-region simulations. Replaces multiphaseEulerFoam and all the
corresponding tutorials have been updated and moved to
tutorials/modules/multiphaseEuler.
Class
Foam::solvers::multiphaseEuler
Description
Solver module for a system of any number of compressible fluid phases with a
common pressure, but otherwise separate properties. The type of phase model
is run time selectable and can optionally represent multiple species and
in-phase reactions. The phase system is also run time selectable and can
optionally represent different types of momentum, heat and mass transfer.
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, Lagrangian
particles, surface film etc. and constraining or limiting the solution.
SourceFiles
multiphaseEuler.C
See also
Foam::solvers::compressibleVoF
Foam::solvers::fluidSolver
Foam::solvers::incompressibleFluid
102 lines
2.2 KiB
C++
102 lines
2.2 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 controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application foamRun;
|
|
|
|
solver multiphaseEuler;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 4;
|
|
|
|
deltaT 1e-4;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.5;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.8;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
#includeFunc residuals(p_rgh, k.water, omega.water)
|
|
#includeFunc timeStep
|
|
#includeFunc writeObjects(d.air1)
|
|
#includeFunc writeObjects(d.air2)
|
|
#includeFunc phaseForces(phase=water)
|
|
#includeFunc graphUniform
|
|
(
|
|
funcName=graph,
|
|
start=(0 0 0.89),
|
|
end=(0.025 0 0.89),
|
|
nPoints=100,
|
|
fields=
|
|
(
|
|
alpha.air1
|
|
alpha.air2
|
|
alpha.bubbles
|
|
liftForce.water
|
|
wallLubricationForce.water
|
|
turbulentDispersionForce.water
|
|
)
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
populationBalance=bubbles,
|
|
regionType=cellZone,
|
|
name=injection,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes,
|
|
funcName=probabilityDensity.injection
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
populationBalance=bubbles,
|
|
regionType=cellZone,
|
|
name=outlet,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes,
|
|
funcName=probabilityDensity.outlet
|
|
)
|
|
}
|
|
|
|
// ************************************************************************* //
|