ENH Updated rhoPisoTwinParcelFoam tutorial solver to use sensible enthalpy

This commit is contained in:
andy
2010-02-15 18:33:10 +00:00
parent dc3a6f4f44
commit ca00cf2487
4 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -1,17 +0,0 @@
{
fvScalarMatrix hEqn
(
fvm::ddt(rho, h)
+ fvm::div(phi, h)
- fvm::laplacian(turbulence->alphaEff(), h)
==
DpDt
+ thermoCloud1.Sh()
);
hEqn.relax();
hEqn.solve();
thermo.correct();
}

View File

@ -0,0 +1,17 @@
{
fvScalarMatrix hsEqn
(
fvm::ddt(rho, hs)
+ fvm::div(phi, hs)
- fvm::laplacian(turbulence->alphaEff(), hs)
==
DpDt
+ thermoCloud1.Sh()
);
hsEqn.relax();
hsEqn.solve();
thermo.correct();
}

View File

@ -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"
}
}