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
210 lines
3.6 KiB
C++
210 lines
3.6 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;
|
|
location "constant";
|
|
object phaseProperties;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
type thermalPhaseChangeMultiphaseSystem;
|
|
|
|
phases (gas liquid);
|
|
|
|
gas
|
|
{
|
|
type purePhaseModel;
|
|
diameterModel IATE;
|
|
|
|
IATECoeffs
|
|
{
|
|
dMax 1e-2;
|
|
dMin 1e-4;
|
|
residualAlpha 1e-4;
|
|
|
|
sources
|
|
(
|
|
wakeEntrainmentCoalescence
|
|
{
|
|
Cwe 0.002;
|
|
}
|
|
|
|
randomCoalescence
|
|
{
|
|
Crc 0.04;
|
|
C 3;
|
|
alphaMax 0.75;
|
|
}
|
|
|
|
turbulentBreakUp
|
|
{
|
|
Cti 0.085;
|
|
WeCr 6;
|
|
}
|
|
|
|
phaseChange
|
|
{
|
|
otherPhase liquid;
|
|
dmdtf thermalPhaseChange:dmdtf;
|
|
}
|
|
|
|
wallBoiling
|
|
{}
|
|
);
|
|
}
|
|
|
|
constantCoeffs
|
|
{
|
|
d 0.00045;
|
|
}
|
|
|
|
residualAlpha 1e-6;
|
|
}
|
|
|
|
liquid
|
|
{
|
|
type purePhaseModel;
|
|
diameterModel none;
|
|
Sc 0.7;
|
|
|
|
residualAlpha 1e-6;
|
|
}
|
|
|
|
drag
|
|
{
|
|
gas_dispersedIn_liquid
|
|
{
|
|
type IshiiZuber;
|
|
}
|
|
}
|
|
|
|
virtualMass
|
|
{
|
|
gas_dispersedIn_liquid
|
|
{
|
|
type constantCoefficient;
|
|
Cvm 0.5;
|
|
}
|
|
}
|
|
|
|
heatTransfer
|
|
{
|
|
gas_dispersedIn_liquid_inThe_gas
|
|
{
|
|
type constantNu;
|
|
Nu 1e1;
|
|
residualAlpha 1e-4;
|
|
}
|
|
|
|
gas_dispersedIn_liquid_inThe_liquid
|
|
{
|
|
type RanzMarshall;
|
|
residualAlpha 1e-4;
|
|
}
|
|
}
|
|
|
|
lift
|
|
{
|
|
gas_dispersedIn_liquid
|
|
{
|
|
type wallDamped;
|
|
|
|
lift
|
|
{
|
|
type Tomiyama;
|
|
Cl 0.288;
|
|
|
|
aspectRatio
|
|
{
|
|
type constant;
|
|
E0 1;
|
|
}
|
|
}
|
|
|
|
wallDamping
|
|
{
|
|
type cosine;
|
|
Cd 1.0;
|
|
zeroWallDist 0.0002;
|
|
}
|
|
}
|
|
}
|
|
|
|
wallLubrication
|
|
{
|
|
gas_dispersedIn_liquid
|
|
{
|
|
type Antal;
|
|
Cw1 -0.01;
|
|
Cw2 0.05;
|
|
}
|
|
}
|
|
|
|
turbulentDispersion
|
|
{
|
|
gas_dispersedIn_liquid
|
|
{
|
|
type LopezDeBertodano;
|
|
Ctd 1.0;
|
|
residualAlpha 1e-3;
|
|
}
|
|
}
|
|
|
|
blending
|
|
{
|
|
default
|
|
{
|
|
type continuous;
|
|
phase liquid;
|
|
}
|
|
}
|
|
|
|
saturation
|
|
{
|
|
gas_liquid
|
|
{
|
|
type function1;
|
|
|
|
function scale;
|
|
|
|
xScale 1e-6;
|
|
scale 1;
|
|
value
|
|
{
|
|
type tableFile;
|
|
format csv;
|
|
nHeaderLine 1;
|
|
refColumn 1;
|
|
componentColumns (0);
|
|
mergeSeparators no;
|
|
file "$FOAM_TUTORIALS/resources/thermoData/wallBoiling-saturation.csv";
|
|
outOfBounds clamp;
|
|
interpolationScheme linear;
|
|
}
|
|
}
|
|
}
|
|
|
|
surfaceTension
|
|
{
|
|
gas_liquid
|
|
{
|
|
type constant;
|
|
sigma 0.00176574;
|
|
}
|
|
}
|
|
|
|
phaseTransfer
|
|
{}
|
|
|
|
interfaceCompression
|
|
{}
|
|
|
|
// ************************************************************************* //
|