KocamustafaogullariIshiiDepartureFrequency: Stabilisation
Prevent floating point exception if vapor density is higher than liquid density Patch contributed by Juho Peltola, VTT.
This commit is contained in:
@ -90,7 +90,7 @@ KocamustafaogullariIshiiDepartureFrequency::fDeparture
|
||||
liquid.mesh().lookupObject<uniformDimensionedVectorField>("g");
|
||||
|
||||
const scalarField rhoLiquid(liquid.thermo().rho(patchi));
|
||||
const scalarField rhoVapor(vapor.thermo().rho(patchi));
|
||||
const scalarField rhoVapor(min(vapor.thermo().rho(patchi), rhoLiquid));
|
||||
|
||||
const tmp<volScalarField> tsigma
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user