Thermodynamics: Rationalization

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.
This commit is contained in:
Henry
2012-05-30 15:19:38 +01:00
parent 70ea2f82d2
commit 63da3e9afc
426 changed files with 4143 additions and 9522 deletions

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType hsRhoMixtureThermo<reactingMixture<icoPoly8ThermoPhysics>>;
thermoType heRhoReactionThermo<reactingMixture<icoPoly8ThermoPhysics>>;
inertSpecie N2;

View File

@ -59,7 +59,7 @@ solvers
relTol 0;
};
"(U|Yi|hs|k|epsilon)"
"(U|Yi|h|k|epsilon)"
{
solver smoothSolver;
smoother GaussSeidel;
@ -67,7 +67,7 @@ solvers
relTol 0.1;
}
"(U|Yi|hs|k|epsilon)Final"
"(U|Yi|h|k|epsilon)Final"
{
solver smoothSolver;
smoother GaussSeidel;

View File

@ -35,7 +35,7 @@ solution
rho semiImplicit 1;
U semiImplicit 1;
Yi semiImplicit 1;
hs semiImplicit 1;
h semiImplicit 1;
}
}

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType hsRhoMixtureThermo<reactingMixture<icoPoly8ThermoPhysics>>;
thermoType heRhoReactionThermo<reactingMixture<icoPoly8ThermoPhysics>>;
chemistryReader foamChemistryReader;

View File

@ -32,7 +32,7 @@ divSchemes
div(phi,U) Gauss upwind;
div(phid,p) Gauss upwind;
div(phi,K) Gauss linear;
div(phi,hs) Gauss upwind;
div(phi,h) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,omega) Gauss upwind;

View File

@ -52,7 +52,7 @@ solvers
tolerance 1e-4;
}
"(U|Yi|hs|k|omega|.*Final)"
"(U|Yi|h|k|omega|.*Final)"
{
solver smoothSolver;
smoother GaussSeidel;