ENH: Calculating L from saturation states.

This commit is contained in:
sergio
2021-12-13 09:07:25 -08:00
committed by Andrew Heather
parent 43f904ba9c
commit e5b64f7740
2 changed files with 7 additions and 6 deletions

View File

@ -639,18 +639,19 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs()
const fvPatchScalarField& hew =
liquid.thermo().he().boundaryField()[patchi];
const scalarField hw
const scalarField hwLiqSat
(
liquid.thermo().he().member() == "e"
? hew.patchInternalField() + pw/rhow.patchInternalField()
: hew.patchInternalField()
? liquid.thermo().he(pw, Tsatc, patchi)
+ pw/rhow.patchInternalField()
: liquid.thermo().he(pw, Tsatc, patchi)
);
const scalarField L
(
vapor.thermo().he().member() == "e"
? vapor.thermo().he(pw, Tsatc, patchi) + pw/rhoVaporw - hw
: vapor.thermo().he(pw, Tsatc, patchi) - hw
? vapor.thermo().he(pw, Tsatc, patchi) + pw/rhoVaporw - hwLiqSat
: vapor.thermo().he(pw, Tsatc, patchi) - hwLiqSat
);
// Liquid phase fraction at the wall

View File

@ -99,7 +99,7 @@ Foam::wallBoilingModels::CHFModels::Jeschar::MHF
Kmhf_*rhoVapor*L
*(
pow(sigma/(mag(g.value())*(rhoLiq - rhoVapor)), 0.25)
* sqrt(mag(g.value())*(rhoLiq - rhoVapor)/(rhoLiq + rhoVapor))
* sqrt(mag(g.value())*(rhoLiq - rhoVapor)/(rhoLiq + rhoVapor + VSMALL))
);
}