Enthalpy/Internal energy for a mixture. More...
Public Member Functions | |
heThermo (const fvMesh &, const word &phaseName) | |
Construct from mesh. More... | |
heThermo (const fvMesh &, const dictionary &, const word &phaseName) | |
Construct from mesh and dictionary. More... | |
virtual | ~heThermo () |
Destructor. More... | |
virtual MixtureType::basicMixtureType & | composition () |
Return the compostion of the mixture. More... | |
virtual const MixtureType::basicMixtureType & | composition () const |
Return the compostion of the mixture. More... | |
virtual bool | incompressible () const |
Return true if the equation of state is incompressible. More... | |
virtual bool | isochoric () const |
Return true if the equation of state is isochoric. More... | |
virtual volScalarField & | he () |
Enthalpy/Internal energy [J/kg]. More... | |
virtual const volScalarField & | he () const |
Enthalpy/Internal energy [J/kg]. More... | |
virtual tmp< volScalarField > | he (const volScalarField &p, const volScalarField &T) const |
Enthalpy/Internal energy. More... | |
virtual tmp< scalarField > | he (const scalarField &p, const scalarField &T, const labelList &cells) const |
Enthalpy/Internal energy for cell-set [J/kg]. More... | |
virtual tmp< scalarField > | he (const scalarField &p, const scalarField &T, const label patchi) const |
Enthalpy/Internal energy for patch [J/kg]. More... | |
virtual tmp< volScalarField > | hc () const |
Chemical enthalpy [J/kg]. More... | |
virtual tmp< scalarField > | THE (const scalarField &he, const scalarField &p, const scalarField &T0, const labelList &cells) const |
Temperature from enthalpy/internal energy for cell-set. More... | |
virtual tmp< scalarField > | THE (const scalarField &he, const scalarField &p, const scalarField &T0, const label patchi) const |
Temperature from enthalpy/internal energy for patch. More... | |
virtual tmp< scalarField > | Cp (const scalarField &p, const scalarField &T, const label patchi) const |
Heat capacity at constant pressure for patch [J/kg/K]. More... | |
virtual tmp< volScalarField > | Cp () const |
Heat capacity at constant pressure [J/kg/K]. More... | |
virtual tmp< scalarField > | Cv (const scalarField &p, const scalarField &T, const label patchi) const |
Heat capacity at constant volume for patch [J/kg/K]. More... | |
virtual tmp< volScalarField > | Cv () const |
Heat capacity at constant volume [J/kg/K]. More... | |
virtual tmp< volScalarField > | gamma () const |
Gamma = Cp/Cv []. More... | |
virtual tmp< scalarField > | gamma (const scalarField &p, const scalarField &T, const label patchi) const |
Gamma = Cp/Cv for patch []. More... | |
virtual tmp< scalarField > | Cpv (const scalarField &p, const scalarField &T, const label patchi) const |
Heat capacity at constant pressure/volume for patch [J/kg/K]. More... | |
virtual tmp< volScalarField > | Cpv () const |
Heat capacity at constant pressure/volume [J/kg/K]. More... | |
virtual tmp< volScalarField > | CpByCpv () const |
Heat capacity ratio []. More... | |
virtual tmp< scalarField > | CpByCpv (const scalarField &p, const scalarField &T, const label patchi) const |
Heat capacity ratio for patch []. More... | |
virtual tmp< volScalarField > | kappa () const |
Thermal diffusivity for temperature of mixture [J/m/s/K]. More... | |
virtual tmp< scalarField > | kappa (const label patchi) const |
Thermal diffusivity for temperature. More... | |
virtual tmp< volScalarField > | kappaEff (const volScalarField &) const |
Effective thermal diffusivity for temperature. More... | |
virtual tmp< scalarField > | kappaEff (const scalarField &alphat, const label patchi) const |
Effective thermal diffusivity for temperature. More... | |
virtual tmp< volScalarField > | alphaEff (const volScalarField &alphat) const |
Effective thermal diffusivity of mixture [kg/m/s]. More... | |
virtual tmp< scalarField > | alphaEff (const scalarField &alphat, const label patchi) const |
Effective thermal diffusivity of mixture for patch [kg/m/s]. More... | |
virtual bool | read () |
Read thermophysical properties dictionary. More... | |
Protected Member Functions | |
void | heBoundaryCorrection (volScalarField &he) |
Correct the enthalpy/internal energy field boundaries. More... | |
Protected Attributes | |
volScalarField | he_ |
Energy field. More... | |
Enthalpy/Internal energy for a mixture.
Definition at line 49 of file heThermo.H.
Construct from mesh.
Definition at line 88 of file heThermo.C.
heThermo | ( | const fvMesh & | mesh, |
const dictionary & | dict, | ||
const word & | phaseName | ||
) |
Construct from mesh and dictionary.
Definition at line 121 of file heThermo.C.
|
virtual |
Destructor.
Definition at line 156 of file heThermo.C.
References heThermo< BasicThermo, MixtureType >::he().
|
protected |
Correct the enthalpy/internal energy field boundaries.
Definition at line 34 of file heThermo.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), forAll, he, and patchi.
|
inlinevirtual |
Return the compostion of the mixture.
Definition at line 110 of file heThermo.H.
|
inlinevirtual |
Return the compostion of the mixture.
Definition at line 117 of file heThermo.H.
|
inlinevirtual |
Return true if the equation of state is incompressible.
i.e. rho != f(p)
Definition at line 124 of file heThermo.H.
Referenced by heThermo< BasicSolidThermo, MixtureType >::composition().
|
inlinevirtual |
Return true if the equation of state is isochoric.
i.e. rho = const
Definition at line 131 of file heThermo.H.
Referenced by heThermo< BasicSolidThermo, MixtureType >::composition().
|
inlinevirtual |
Enthalpy/Internal energy [J/kg].
Non-const access allowed for transport equations
Definition at line 141 of file heThermo.H.
Referenced by heThermo< BasicSolidThermo, MixtureType >::composition(), heThermo< BasicSolidThermo, MixtureType >::he(), heThermo< BasicThermo, MixtureType >::he(), and heThermo< BasicThermo, MixtureType >::~heThermo().
|
inlinevirtual |
Enthalpy/Internal energy [J/kg].
Definition at line 147 of file heThermo.H.
|
virtual |
Enthalpy/Internal energy.
for given pressure and temperature [J/kg]
Definition at line 164 of file heThermo.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), forAll, he, heThermo< BasicThermo, MixtureType >::he(), mesh, p, patchi, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), T, fvMesh::time(), and Time::timeName().
|
virtual |
Enthalpy/Internal energy for cell-set [J/kg].
Definition at line 221 of file heThermo.C.
References forAll, he, heThermo< BasicThermo, MixtureType >::he(), tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Enthalpy/Internal energy for patch [J/kg].
Definition at line 241 of file heThermo.C.
References forAll, he, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Chemical enthalpy [J/kg].
Definition at line 262 of file heThermo.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), heThermo< BasicThermo, MixtureType >::Cp(), forAll, mesh, patchi, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Temperature from enthalpy/internal energy for cell-set.
Definition at line 678 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
Referenced by heThermo< BasicThermo, MixtureType >::CpByCpv(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Temperature from enthalpy/internal energy for patch.
Definition at line 700 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Heat capacity at constant pressure for patch [J/kg/K].
Definition at line 310 of file heThermo.C.
References cp, forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Heat capacity at constant pressure [J/kg/K].
Definition at line 331 of file heThermo.C.
References cp, heThermo< BasicThermo, MixtureType >::Cv(), Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, patchi, fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicThermo, MixtureType >::hc(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Heat capacity at constant volume for patch [J/kg/K].
Definition at line 383 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Heat capacity at constant volume [J/kg/K].
Definition at line 404 of file heThermo.C.
References Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, heThermo< BasicThermo, MixtureType >::gamma(), mesh, patchi, GeometricField< Type, PatchField, GeoMesh >::ref(), fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicThermo, MixtureType >::Cp(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Gamma = Cp/Cv [].
Definition at line 473 of file heThermo.C.
References heThermo< BasicThermo, MixtureType >::Cpv(), Foam::dimless, forAll, mesh, patchi, GeometricField< Type, PatchField, GeoMesh >::ref(), fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicThermo, MixtureType >::Cv(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Gamma = Cp/Cv for patch [].
Definition at line 452 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Heat capacity at constant pressure/volume for patch [J/kg/K].
Definition at line 527 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Heat capacity at constant pressure/volume [J/kg/K].
Definition at line 548 of file heThermo.C.
References heThermo< BasicThermo, MixtureType >::CpByCpv(), Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, patchi, GeometricField< Type, PatchField, GeoMesh >::ref(), fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicThermo, MixtureType >::gamma(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Heat capacity ratio [].
Definition at line 620 of file heThermo.C.
References Foam::dimless, forAll, mesh, patchi, GeometricField< Type, PatchField, GeoMesh >::ref(), heThermo< BasicThermo, MixtureType >::THE(), fvMesh::time(), and Time::timeName().
Referenced by heThermo< BasicThermo, MixtureType >::Cpv(), and heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Heat capacity ratio for patch [].
Definition at line 599 of file heThermo.C.
References forAll, tmp< T >::ref(), scalarField(), and List< T >::size().
|
virtual |
Thermal diffusivity for temperature of mixture [J/m/s/K].
Definition at line 725 of file heThermo.C.
References Foam::constant::electromagnetic::kappa, tmp< T >::ref(), and regIOobject::rename().
Referenced by heThermo< BasicSolidThermo, MixtureType >::he().
|
virtual |
Thermal diffusivity for temperature.
of mixture for patch [J/m/s/K]
Definition at line 735 of file heThermo.C.
References heThermo< BasicThermo, MixtureType >::kappaEff(), and patchi.
|
virtual |
Effective thermal diffusivity for temperature.
of mixture [J/m/s/K]
Definition at line 752 of file heThermo.C.
References tmp< T >::ref(), and regIOobject::rename().
Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicThermo, MixtureType >::kappa().
|
virtual |
Effective thermal diffusivity for temperature.
of mixture for patch [J/m/s/K]
Definition at line 765 of file heThermo.C.
References heThermo< BasicThermo, MixtureType >::alphaEff(), and patchi.
|
virtual |
Effective thermal diffusivity of mixture [kg/m/s].
Definition at line 787 of file heThermo.C.
References alphaEff(), tmp< T >::ref(), and regIOobject::rename().
Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicThermo, MixtureType >::kappaEff().
|
virtual |
Effective thermal diffusivity of mixture for patch [kg/m/s].
Definition at line 800 of file heThermo.C.
References patchi.
|
virtual |
Read thermophysical properties dictionary.
Definition at line 820 of file heThermo.C.
References Foam::read().
Referenced by heThermo< BasicSolidThermo, MixtureType >::he().
|
protected |
Energy field.
Definition at line 59 of file heThermo.H.
Referenced by heThermo< BasicSolidThermo, MixtureType >::composition(), and heThermo< BasicSolidThermo, MixtureType >::he().