Refactored the function for scaling the size group volume fractions to better handle situations in which their sum drifts away from unity. Scaling is now turned on by default, and can be turned off in the solution dictionary for the population balance. Additional revision and renaming of *Polydisperse tutorials Patch contributed by Institute of Fluid Dynamics, Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"alpha.*"
|
|
{
|
|
nAlphaCorr 1;
|
|
nAlphaSubCycles 1;
|
|
}
|
|
|
|
bubbles
|
|
{
|
|
nCorr 1;
|
|
tolerance 1e-4;
|
|
scale false;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
solver PCG;
|
|
preconditioner none;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p_rgh;
|
|
relTol 0;
|
|
}
|
|
|
|
"f.*"
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 2;
|
|
nCorrectors 1;
|
|
|
|
pRefCell 0;
|
|
pRefValue 1e5;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
equations
|
|
{
|
|
"f.*" 1.0;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|