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

ENH: Simplified film phase change model for boiling

parent a3cb7bd6
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -113,14 +113,10 @@ void standardPhaseChange::correctModel ...@@ -113,14 +113,10 @@ void standardPhaseChange::correctModel
const scalarField& YInf = film.YPrimary()[vapId]; const scalarField& YInf = film.YPrimary()[vapId];
const scalarField& pInf = film.pPrimary(); const scalarField& pInf = film.pPrimary();
const scalarField& T = film.T(); const scalarField& T = film.T();
const scalarField& Tw = film.Tw();
const scalarField& rho = film.rho(); const scalarField& rho = film.rho();
const scalarField& TInf = film.TPrimary();
const scalarField& rhoInf = film.rhoPrimary(); const scalarField& rhoInf = film.rhoPrimary();
const scalarField& muInf = film.muPrimary(); const scalarField& muInf = film.muPrimary();
const scalarField& magSf = film.magSf(); const scalarField& magSf = film.magSf();
const scalarField hInf(film.htcs().h());
const scalarField hFilm(film.htcw().h());
const vectorField dU(film.UPrimary() - film.Us()); const vectorField dU(film.UPrimary() - film.Us());
const scalarField limMass const scalarField limMass
( (
...@@ -147,15 +143,10 @@ void standardPhaseChange::correctModel ...@@ -147,15 +143,10 @@ void standardPhaseChange::correctModel
if (pSat >= 0.95*pc) if (pSat >= 0.95*pc)
{ {
// boiling // boiling
const scalar qDotInf = hInf[cellI]*(TInf[cellI] - T[cellI]);
const scalar qDotFilm = hFilm[cellI]*(T[cellI] - Tw[cellI]);
const scalar Cp = liq.Cp(pc, Tloc); const scalar Cp = liq.Cp(pc, Tloc);
const scalar Tcorr = max(0.0, T[cellI] - Tb_); const scalar Tcorr = max(0.0, T[cellI] - Tb);
const scalar qCorr = limMass[cellI]*Cp*(Tcorr); const scalar qCorr = limMass[cellI]*Cp*(Tcorr);
dMass[cellI] = dMass[cellI] = qCorr/hVap;
dt*magSf[cellI]/hVap*(qDotInf + qDotFilm)
+ qCorr/hVap;
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment