The cavitation models used by the interFoam solver and the compressibleVoF solver module can now be applied regardless of the ordering of the liquid and vapour phases. A "liquid" keyword is now required in the model specification in order to control which phase is considered to be the condensed liquid state. Previously the liquid phase was assumed to be the first of the two phases.
101 lines
1.9 KiB
C++
101 lines
1.9 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.vapour.*"
|
|
{
|
|
nAlphaCorr 2;
|
|
nAlphaSubCycles 1;
|
|
|
|
MULESCorr yes;
|
|
nLimiterIter 5;
|
|
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
minIter 1;
|
|
maxIter 5;
|
|
}
|
|
|
|
"pcorr.*"
|
|
{
|
|
solver GAMG;
|
|
smoother GaussSeidel;
|
|
tolerance 0.02;
|
|
relTol 0;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
$pcorr;
|
|
tolerance 1e-8;
|
|
relTol 0.01;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p_rgh;
|
|
relTol 0;
|
|
}
|
|
|
|
Phi
|
|
{
|
|
$p_rgh;
|
|
}
|
|
|
|
"(U|T|k|epsilon)"
|
|
{
|
|
solver PBiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-8;
|
|
relTol 0.01;
|
|
}
|
|
|
|
"(U|T|k|epsilon)Final"
|
|
{
|
|
$U;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
potentialFlow
|
|
{
|
|
nNonOrthogonalCorrectors 10;
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
momentumPredictor no;
|
|
correctPhi yes;
|
|
correctMeshPhi no;
|
|
nOuterCorrectors 3;
|
|
nCorrectors 1;
|
|
nNonOrthogonalCorrectors 0;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
equations
|
|
{
|
|
".*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|