The population balance model considers dilatation originating from density change and mass transfer via source terms describing nucleation as well as "drift" of the size distribution to smaller or larger sizes. Numerically, the treatment does not necessarily equal the total dilatation, hence a correction is introduced to ensure boundedness of the size group fractions. Patch contributed by Institute of Fluid Dynamics, Helmholtz-Zentrum Dresden - Rossendorf (HZDR) and VTT Technical Research Centre of Finland Ltd.
105 lines
2.1 KiB
C++
105 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;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"alpha.*"
|
|
{
|
|
nAlphaCorr 1;
|
|
nAlphaSubCycles 1;
|
|
}
|
|
|
|
bubbles
|
|
{
|
|
nCorr 1;
|
|
tolerance 1e-4;
|
|
scale true;
|
|
solveOnFinalIterOnly true;
|
|
sourceUpdateInterval 20;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
solver GAMG;
|
|
smoother DIC;
|
|
tolerance 1e-8;
|
|
relTol 0.01;
|
|
maxIter 20;
|
|
minIter 2;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p_rgh;
|
|
relTol 0;
|
|
}
|
|
|
|
"(e|h).*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-12;
|
|
relTol 0.001;
|
|
minIter 1;
|
|
maxIter 20;
|
|
}
|
|
|
|
"(k|epsilon|omega).*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
"f.*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 1;
|
|
nCorrectors 1;
|
|
nNonOrthogonalCorrectors 0;
|
|
nEnergyCorrectors 1;
|
|
|
|
faceMomentum yes;
|
|
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
fields
|
|
{
|
|
thermalPhaseChange:dmdtf 1.0;
|
|
}
|
|
|
|
equations
|
|
{
|
|
".*" 1;
|
|
"h\..*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|