Commit ca00cf24 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH Updated rhoPisoTwinParcelFoam tutorial solver to use sensible enthalpy

parent dc3a6f4f
......@@ -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"
}
}
......
Supports Markdown
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