mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Calculate film boiling temperature instead of reading from user input
This commit is contained in:
@ -77,7 +77,6 @@ standardPhaseChange::standardPhaseChange
|
||||
)
|
||||
:
|
||||
phaseChangeModel(typeName, owner, dict),
|
||||
Tb_(readScalar(coeffs_.lookup("Tb"))),
|
||||
deltaMin_(readScalar(coeffs_.lookup("deltaMin"))),
|
||||
L_(readScalar(coeffs_.lookup("L"))),
|
||||
TbFactor_(coeffs_.lookupOrDefault<scalar>("TbFactor", 1.1))
|
||||
@ -130,8 +129,11 @@ void standardPhaseChange::correctModel
|
||||
// cell pressure [Pa]
|
||||
const scalar pc = pInf[cellI];
|
||||
|
||||
// calculate the boiling temperature
|
||||
const scalar Tb = liq.pvInvert(pc);
|
||||
|
||||
// local temperature - impose lower limit of 200 K for stability
|
||||
const scalar Tloc = min(TbFactor_*Tb_, max(200.0, T[cellI]));
|
||||
const scalar Tloc = min(TbFactor_*Tb, max(200.0, T[cellI]));
|
||||
|
||||
// saturation pressure [Pa]
|
||||
const scalar pSat = liq.pv(pc, Tloc);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -69,9 +69,6 @@ protected:
|
||||
|
||||
// Protected data
|
||||
|
||||
//- Boiling temperature / [K]
|
||||
const scalar Tb_;
|
||||
|
||||
//- Minimum film height for model to be active
|
||||
const scalar deltaMin_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user