cavitationModels: Made insensitive to phase order

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.
This commit is contained in:
Will Bainbridge
2022-11-15 12:52:41 +00:00
parent 9b373b2950
commit 9567bc0d4b
27 changed files with 307 additions and 166 deletions

View File

@ -10,13 +10,13 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object alpha.water;
object alpha.vapour;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 1;
internalField uniform 0;
boundaryField
{

View File

@ -22,6 +22,8 @@ VoFCavitation
model SchnerrSauer;
liquid water;
pSat 2300;
n 1.6e+13;

View File

@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water vapour);
phases (vapour water);
pMin 100;

View File

@ -16,7 +16,7 @@ FoamFile
solvers
{
"alpha.water.*"
"alpha.vapour.*"
{
nAlphaCorr 2;
nAlphaSubCycles 1;