rhoSimpleFoam family: updated to use e rather than h

This commit is contained in:
Henry 2012-05-04 14:48:46 +01:00
parent f0bb8c2c2f
commit e156d19610
6 changed files with 4 additions and 39 deletions

View File

@ -20,7 +20,7 @@
);
volScalarField& p = thermo.p();
volScalarField& h = thermo.h();
volScalarField& e = thermo.e();
const volScalarField& psi = thermo.psi();
Info<< "Reading field U\n" << endl;

View File

@ -1,17 +0,0 @@
{
volScalarField K("K", 0.5*magSqr(U));
fvScalarMatrix hEqn
(
fvm::div(phi, h)
- fvm::Sp(fvc::div(phi), h)
- fvm::laplacian(turbulence->alphaEff(), h)
==
fvc::div(phi)*K - fvc::div(phi, K)
);
hEqn.relax();
hEqn.solve();
thermo.correct();
}

View File

@ -1,18 +0,0 @@
{
fvScalarMatrix hEqn
(
fvm::div(phi, h)
- fvm::Sp(fvc::div(phi), h)
- fvm::laplacian(turbulence->alphaEff(), h)
==
- fvc::div(phi, 0.5*magSqr(U), "div(phi,K)")
);
pZones.addEnthalpySource(thermo, rho, hEqn);
hEqn.relax();
hEqn.solve();
thermo.correct();
}

View File

@ -63,7 +63,7 @@ int main(int argc, char *argv[])
// Pressure-velocity SIMPLE corrector
{
#include "UEqn.H"
#include "hEqn.H"
#include "eEqn.H"
#include "pEqn.H"
}

View File

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
// Pressure-velocity SIMPLE corrector
{
#include "UEqn.H"
#include "hEqn.H"
#include "eEqn.H"
#include "pEqn.H"
}

View File

@ -61,8 +61,8 @@ int main(int argc, char *argv[])
// Velocity-pressure-enthalpy SIMPLEC corrector
{
#include "UEqn.H"
#include "eEqn.H"
#include "pEqn.H"
#include "hEqn.H"
}
turbulence->correct();