At the specie level: hs = sensible enthalpy ha = absolute (what was total) enthalpy es = sensibly internal energy ea = absolute (what was total) internal energy At top-level Rename total enthalpy h -> ha Rename sensible enthalpy hs -> h Combined h, hs, e and es thermo packages into a single structure. Thermo packages now provide "he" function which may return either enthalpy or internal energy, sensible or absolute according to the run-time selected form alphaEff now returns the effective diffusivity for the particular energy which the thermodynamics package is selected to solve for.
22 lines
464 B
C
22 lines
464 B
C
{
|
|
fvScalarMatrix hsEqn
|
|
(
|
|
fvm::ddt(rho, hs)
|
|
+ mvConvection->fvmDiv(phi, hs)
|
|
- fvm::laplacian(turbulence->alphaEff(), hs)
|
|
// - fvm::laplacian(turbulence->muEff(), hs) // unit lewis no.
|
|
==
|
|
dpdt
|
|
- (fvc::ddt(rho, K) + fvc::div(phi, K))
|
|
+ reaction->Sh()
|
|
);
|
|
|
|
hsEqn.relax();
|
|
hsEqn.solve();
|
|
|
|
thermo.correct();
|
|
|
|
Info<< "min/max(T) = "
|
|
<< min(T).value() << ", " << max(T).value() << endl;
|
|
}
|