In multiphase systems it is only necessary to solve for all but one of the moving phases. The new referencePhase option allows the user to specify which of the moving phases should not be solved, e.g. in constant/phaseProperties of the tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/fluidisedBed tutorial case with phases (particles air); referencePhase air; the particles phase is solved for and the air phase fraction and fluxes obtained from the particles phase which provides equivalent behaviour to reactingTwoPhaseEulerFoam and is more efficient than solving for both phases.
106 lines
2.1 KiB
C++
106 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
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"alpha.*"
|
|
{
|
|
nAlphaCorr 1;
|
|
nAlphaSubCycles 3;
|
|
implicitPhasePressure yes;
|
|
|
|
extremaCoeff 1;
|
|
|
|
solver PBiCGStab;
|
|
preconditioner DIC;
|
|
|
|
tolerance 1e-9;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
solver GAMG;
|
|
smoother DIC;
|
|
tolerance 1e-8;
|
|
relTol 0.01;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p_rgh;
|
|
relTol 0;
|
|
}
|
|
|
|
"U.*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-5;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
"(h|e).*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
minIter 1;
|
|
maxIter 10;
|
|
}
|
|
|
|
"Theta.*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
"(k|epsilon).*"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-5;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 3;
|
|
nCorrectors 2;
|
|
nNonOrthogonalCorrectors 0;
|
|
faceMomentum no;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
equations
|
|
{
|
|
".*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|