heThermo< BasicThermo, MixtureType > Class Template Reference

Enthalpy/Internal energy for a mixture. More...

Inheritance diagram for heThermo< BasicThermo, MixtureType >:
[legend]
Collaboration diagram for heThermo< BasicThermo, MixtureType >:
[legend]

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...
 
 heThermo (const fvMesh &, const word &phaseName, const word &dictionaryName)
 Construct from mesh,dictionary,phase name with a single temperature. More...
 
virtual ~heThermo ()
 Destructor. More...
 
virtual MixtureType::basicMixtureType & composition ()
 Return the composition of the mixture. More...
 
virtual const MixtureType::basicMixtureType & composition () const
 Return the composition of the mixture. More...
 
virtual word thermoName () const
 Return the name of the thermo physics. 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 volScalarFieldhe ()
 Enthalpy/Internal energy [J/kg]. More...
 
virtual const volScalarFieldhe () const
 Enthalpy/Internal energy [J/kg]. More...
 
virtual tmp< volScalarFieldhe (const volScalarField &p, const volScalarField &T) const
 Enthalpy/Internal energy. More...
 
virtual tmp< scalarFieldhe (const scalarField &p, const scalarField &T, const labelList &cells) const
 Enthalpy/Internal energy for cell-set [J/kg]. More...
 
virtual tmp< scalarFieldhe (const scalarField &p, const scalarField &T, const label patchi) const
 Enthalpy/Internal energy for patch [J/kg]. More...
 
virtual tmp< volScalarFieldhc () const
 Chemical enthalpy [J/kg]. More...
 
virtual tmp< scalarFieldTHE (const scalarField &he, const scalarField &p, const scalarField &T0, const labelList &cells) const
 Temperature from enthalpy/internal energy for cell-set. More...
 
virtual tmp< scalarFieldTHE (const scalarField &he, const scalarField &p, const scalarField &T0, const label patchi) const
 Temperature from enthalpy/internal energy for patch. More...
 
virtual tmp< scalarFieldCp (const scalarField &p, const scalarField &T, const label patchi) const
 Heat capacity at constant pressure for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldCp (const scalarField &p, const scalarField &T, const labelList &cells) const
 Heat capacity using pressure and temperature. More...
 
virtual tmp< volScalarFieldCp () const
 Heat capacity at constant pressure [J/kg/K]. More...
 
virtual tmp< scalarFieldCv (const scalarField &p, const scalarField &T, const label patchi) const
 Heat capacity at constant volume for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldrhoEoS (const scalarField &p, const scalarField &T, const labelList &cells) const
 Density from pressure and temperature. More...
 
virtual tmp< volScalarFieldCv () const
 Heat capacity at constant volume [J/kg/K]. More...
 
virtual tmp< volScalarFieldgamma () const
 Gamma = Cp/Cv []. More...
 
virtual tmp< scalarFieldgamma (const scalarField &p, const scalarField &T, const label patchi) const
 Gamma = Cp/Cv for patch []. More...
 
virtual tmp< scalarFieldCpv (const scalarField &p, const scalarField &T, const label patchi) const
 Heat capacity at constant pressure/volume for patch [J/kg/K]. More...
 
virtual tmp< volScalarFieldCpv () const
 Heat capacity at constant pressure/volume [J/kg/K]. More...
 
virtual tmp< volScalarFieldCpByCpv () const
 Heat capacity ratio []. More...
 
virtual tmp< scalarFieldCpByCpv (const scalarField &p, const scalarField &T, const label patchi) const
 Heat capacity ratio for patch []. More...
 
virtual tmp< volScalarFieldW () const
 Molecular weight [kg/kmol]. More...
 
virtual tmp< volScalarFieldkappa () const
 Thermal diffusivity for temperature of mixture [J/m/s/K]. More...
 
virtual tmp< scalarFieldkappa (const label patchi) const
 Thermal diffusivity for temperature. More...
 
virtual tmp< volScalarFieldalphahe () const
 Thermal diffusivity for energy of mixture [kg/m/s]. More...
 
virtual tmp< scalarFieldalphahe (const label patchi) const
 Thermal diffusivity for energy of mixture for patch [kg/m/s]. More...
 
virtual tmp< volScalarFieldkappaEff (const volScalarField &) const
 Effective thermal diffusivity for temperature. More...
 
virtual tmp< scalarFieldkappaEff (const scalarField &alphat, const label patchi) const
 Effective thermal diffusivity for temperature. More...
 
virtual tmp< volScalarFieldalphaEff (const volScalarField &alphat) const
 Effective thermal diffusivity of mixture [kg/m/s]. More...
 
virtual tmp< scalarFieldalphaEff (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...
 

Detailed Description

template<class BasicThermo, class MixtureType>
class Foam::heThermo< BasicThermo, MixtureType >

Enthalpy/Internal energy for a mixture.

Source files

Definition at line 52 of file heThermo.H.

Constructor & Destructor Documentation

◆ heThermo() [1/3]

heThermo ( const fvMesh mesh,
const word phaseName 
)

Construct from mesh.

Definition at line 102 of file heThermo.C.

◆ heThermo() [2/3]

heThermo ( const fvMesh mesh,
const dictionary dict,
const word phaseName 
)

Construct from mesh and dictionary.

Definition at line 135 of file heThermo.C.

References Foam::dimEnergy, Foam::dimMass, and heThermo< BasicThermo, MixtureType >::he_.

◆ heThermo() [3/3]

heThermo ( const fvMesh mesh,
const word phaseName,
const word dictionaryName 
)

Construct from mesh,dictionary,phase name with a single temperature.

Definition at line 169 of file heThermo.C.

◆ ~heThermo()

~heThermo
virtual

Destructor.

Definition at line 206 of file heThermo.C.

Member Function Documentation

◆ heBoundaryCorrection()

void heBoundaryCorrection ( volScalarField he)
protected

Correct the enthalpy/internal energy field boundaries.

Definition at line 36 of file heThermo.C.

References forAll, and h.

◆ composition() [1/2]

virtual MixtureType::basicMixtureType & composition ( )
inlinevirtual

Return the composition of the mixture.

Definition at line 126 of file heThermo.H.

◆ composition() [2/2]

virtual const MixtureType::basicMixtureType & composition ( ) const
inlinevirtual

Return the composition of the mixture.

Definition at line 133 of file heThermo.H.

◆ thermoName()

virtual word thermoName ( ) const
inlinevirtual

Return the name of the thermo physics.

Definition at line 139 of file heThermo.H.

◆ incompressible()

virtual bool incompressible ( ) const
inlinevirtual

Return true if the equation of state is incompressible.

i.e. rho != f(p)

Definition at line 146 of file heThermo.H.

◆ isochoric()

virtual bool isochoric ( ) const
inlinevirtual

Return true if the equation of state is isochoric.

i.e. rho = const

Definition at line 153 of file heThermo.H.

◆ he() [1/5]

virtual volScalarField & he ( )
inlinevirtual

Enthalpy/Internal energy [J/kg].

Non-const access allowed for transport equations

Definition at line 163 of file heThermo.H.

◆ he() [2/5]

virtual const volScalarField & he ( ) const
inlinevirtual

Enthalpy/Internal energy [J/kg].

Definition at line 169 of file heThermo.H.

References heThermo< BasicThermo, MixtureType >::he_.

◆ he() [3/5]

Foam::tmp< Foam::volScalarField > he ( const volScalarField p,
const volScalarField T 
) const
virtual

Enthalpy/Internal energy.

for given pressure and temperature [J/kg]

Definition at line 213 of file heThermo.C.

◆ he() [4/5]

Foam::tmp< Foam::scalarField > he ( const scalarField p,
const scalarField T,
const labelList cells 
) const
virtual

Enthalpy/Internal energy for cell-set [J/kg].

Definition at line 270 of file heThermo.C.

◆ he() [5/5]

Foam::tmp< Foam::scalarField > he ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Enthalpy/Internal energy for patch [J/kg].

Definition at line 290 of file heThermo.C.

◆ hc()

Chemical enthalpy [J/kg].

Definition at line 312 of file heThermo.C.

◆ THE() [1/2]

Foam::tmp< Foam::scalarField > THE ( const scalarField he,
const scalarField p,
const scalarField T0,
const labelList cells 
) const
virtual

Temperature from enthalpy/internal energy for cell-set.

Definition at line 771 of file heThermo.C.

References cells, forAll, h, p, tmp< T >::ref(), UList< T >::size(), T, and T0.

Here is the call graph for this function:

◆ THE() [2/2]

Foam::tmp< Foam::scalarField > THE ( const scalarField he,
const scalarField p,
const scalarField T0,
const label  patchi 
) const
virtual

Temperature from enthalpy/internal energy for patch.

Definition at line 793 of file heThermo.C.

References forAll, h, p, tmp< T >::ref(), UList< T >::size(), T, and T0.

Here is the call graph for this function:

◆ Cp() [1/3]

Foam::tmp< Foam::scalarField > Cp ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Heat capacity at constant pressure for patch [J/kg/K].

Definition at line 359 of file heThermo.C.

References cp, forAll, p, UList< T >::size(), T, and tCp.

Here is the call graph for this function:

◆ Cp() [2/3]

Foam::tmp< Foam::scalarField > Cp ( const scalarField p,
const scalarField T,
const labelList cells 
) const
virtual

Heat capacity using pressure and temperature.

Definition at line 381 of file heThermo.C.

References cells, Cp, forAll, Time::New(), p, UList< T >::size(), T, and tCp.

Here is the call graph for this function:

◆ Cp() [3/3]

Heat capacity at constant pressure [J/kg/K].

Definition at line 403 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), cp, Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tCp, fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ Cv() [1/2]

Foam::tmp< Foam::scalarField > Cv ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Heat capacity at constant volume for patch [J/kg/K].

Definition at line 454 of file heThermo.C.

References forAll, p, UList< T >::size(), T, and tCv.

Here is the call graph for this function:

◆ rhoEoS()

Foam::tmp< Foam::scalarField > rhoEoS ( const scalarField p,
const scalarField T,
const labelList cells 
) const
virtual

Density from pressure and temperature.

Definition at line 476 of file heThermo.C.

References cells, forAll, Time::New(), p, rho, UList< T >::size(), and T.

Here is the call graph for this function:

◆ Cv() [2/2]

Heat capacity at constant volume [J/kg/K].

Definition at line 498 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Cv, Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tCv, fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ gamma() [1/2]

Foam::tmp< Foam::volScalarField > gamma
virtual

Gamma = Cp/Cv [].

Definition at line 567 of file heThermo.C.

References Foam::dimless, forAll, gamma, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tmp< T >::ref(), fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ gamma() [2/2]

Foam::tmp< Foam::scalarField > gamma ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Gamma = Cp/Cv for patch [].

Definition at line 545 of file heThermo.C.

References forAll, gamma, p, tmp< T >::ref(), UList< T >::size(), and T.

Here is the call graph for this function:

◆ Cpv() [1/2]

Foam::tmp< Foam::scalarField > Cpv ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Heat capacity at constant pressure/volume for patch [J/kg/K].

Definition at line 620 of file heThermo.C.

References forAll, p, tmp< T >::ref(), UList< T >::size(), and T.

Here is the call graph for this function:

◆ Cpv() [2/2]

Heat capacity at constant pressure/volume [J/kg/K].

Definition at line 642 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tmp< T >::ref(), fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ CpByCpv() [1/2]

Foam::tmp< Foam::volScalarField > CpByCpv
virtual

Heat capacity ratio [].

Definition at line 714 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Foam::dimless, forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tmp< T >::ref(), fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ CpByCpv() [2/2]

Foam::tmp< Foam::scalarField > CpByCpv ( const scalarField p,
const scalarField T,
const label  patchi 
) const
virtual

Heat capacity ratio for patch [].

Definition at line 692 of file heThermo.C.

References forAll, p, tmp< T >::ref(), UList< T >::size(), and T.

Here is the call graph for this function:

◆ W()

Molecular weight [kg/kmol].

Definition at line 818 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Foam::dimMass, Foam::dimMoles, forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), fvMesh::time(), and Time::timeName().

Here is the call graph for this function:

◆ kappa() [1/2]

Foam::tmp< Foam::volScalarField > kappa
virtual

Thermal diffusivity for temperature of mixture [J/m/s/K].

Definition at line 867 of file heThermo.C.

References Cp.

◆ kappa() [2/2]

Foam::tmp< Foam::scalarField > kappa ( const label  patchi) const
virtual

Thermal diffusivity for temperature.

of mixture for patch [J/m/s/K]

Definition at line 876 of file heThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and Cp.

Here is the call graph for this function:

◆ alphahe() [1/2]

Foam::tmp< Foam::volScalarField > alphahe
virtual

Thermal diffusivity for energy of mixture [kg/m/s].

Definition at line 893 of file heThermo.C.

References alphaEff(), GeometricField< Type, PatchField, GeoMesh >::ref(), and regIOobject::rename().

Here is the call graph for this function:

◆ alphahe() [2/2]

Foam::tmp< Foam::scalarField > alphahe ( const label  patchi) const
virtual

Thermal diffusivity for energy of mixture for patch [kg/m/s].

Definition at line 903 of file heThermo.C.

◆ kappaEff() [1/2]

Foam::tmp< Foam::volScalarField > kappaEff ( const volScalarField alphat) const
virtual

Effective thermal diffusivity for temperature.

of mixture [J/m/s/K]

Definition at line 918 of file heThermo.C.

References Cp, and kappaEff.

◆ kappaEff() [2/2]

Foam::tmp< Foam::scalarField > kappaEff ( const scalarField alphat,
const label  patchi 
) const
virtual

Effective thermal diffusivity for temperature.

of mixture for patch [J/m/s/K]

Definition at line 931 of file heThermo.C.

References Cp.

◆ alphaEff() [1/2]

Foam::tmp< Foam::volScalarField > alphaEff ( const volScalarField alphat) const
virtual

Effective thermal diffusivity of mixture [kg/m/s].

Definition at line 953 of file heThermo.C.

References alphaEff(), GeometricField< Type, PatchField, GeoMesh >::ref(), and regIOobject::rename().

Here is the call graph for this function:

◆ alphaEff() [2/2]

Foam::tmp< Foam::scalarField > alphaEff ( const scalarField alphat,
const label  patchi 
) const
virtual

Effective thermal diffusivity of mixture for patch [kg/m/s].

Definition at line 966 of file heThermo.C.

◆ read()

bool read
virtual

Read thermophysical properties dictionary.

Definition at line 987 of file heThermo.C.

Member Data Documentation

◆ he_

volScalarField he_
protected

The documentation for this class was generated from the following files: