Skip to content
Snippets Groups Projects
Commit ca00cf24 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH Updated rhoPisoTwinParcelFoam tutorial solver to use sensible enthalpy

parent dc3a6f4f
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
basicPsiThermo& thermo = pThermo();
volScalarField& p = thermo.p();
volScalarField& h = thermo.h();
volScalarField& hs = thermo.hs();
const volScalarField& psi = thermo.psi();
volScalarField rho
......
{
fvScalarMatrix hEqn
fvScalarMatrix hsEqn
(
fvm::ddt(rho, h)
+ fvm::div(phi, h)
- fvm::laplacian(turbulence->alphaEff(), h)
fvm::ddt(rho, hs)
+ fvm::div(phi, hs)
- fvm::laplacian(turbulence->alphaEff(), hs)
==
DpDt
+ thermoCloud1.Sh()
);
hEqn.relax();
hsEqn.relax();
hEqn.solve();
hsEqn.solve();
thermo.correct();
}
......@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for (int corr=1; corr<=nCorr; corr++)
{
#include "hEqn.H"
#include "hsEqn.H"
#include "pEqn.H"
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment