Now the interFoam and compressibleInterFoam families of solvers use the same alphaEqn formulation and supporting all of the MULES options without code-duplication. The semi-implicit MULES support allows running with significantly larger time-steps but this does reduce the interface sharpness.
109 lines
2.5 KiB
C++
109 lines
2.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"alpha.water.*"
|
|
{
|
|
nAlphaCorr 1;
|
|
nAlphaSubCycles 2;
|
|
cAlpha 1;
|
|
|
|
MULESCorr no;
|
|
nLimiterIter 5;
|
|
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
}
|
|
|
|
".*(rho|rhoFinal)"
|
|
{
|
|
solver diagonal;
|
|
}
|
|
|
|
pcorr
|
|
{
|
|
solver PCG;
|
|
preconditioner
|
|
{
|
|
preconditioner GAMG;
|
|
tolerance 1e-05;
|
|
relTol 0;
|
|
smoother DICGaussSeidel;
|
|
}
|
|
tolerance 1e-05;
|
|
relTol 0;
|
|
maxIter 100;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
solver GAMG;
|
|
tolerance 1e-07;
|
|
relTol 0.01;
|
|
smoother DIC;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
solver PCG;
|
|
preconditioner
|
|
{
|
|
preconditioner GAMG;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
nVcycles 2;
|
|
smoother DICGaussSeidel;
|
|
nPreSweeps 2;
|
|
}
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
maxIter 20;
|
|
}
|
|
|
|
U
|
|
{
|
|
solver smoothSolver;
|
|
smoother GaussSeidel;
|
|
tolerance 1e-06;
|
|
relTol 0;
|
|
nSweeps 1;
|
|
}
|
|
|
|
"(T|k|B|nuTilda).*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-08;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
momentumPredictor no;
|
|
transonic no;
|
|
nOuterCorrectors 1;
|
|
nCorrectors 2;
|
|
nNonOrthogonalCorrectors 0;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|