Skip to content
Snippets Groups Projects
Commit ba717a55 authored by andy's avatar andy
Browse files

ENH: Calculate film boiling temperature instead of reading from user input

parent f1a2be14
Branches
Tags
No related merge requests found
......@@ -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_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment