All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
heThermo< BasicThermo, MixtureType > Class Template Reference

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

Inheritance diagram for heThermo< BasicThermo, MixtureType >:
Collaboration diagram for heThermo< BasicThermo, MixtureType >:

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 heThermo< BasicThermo, MixtureType > &)=delete
 Disallow default bitwise copy construction. 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 &T, const labelList &cells) const
 Enthalpy/Internal energy for cell-set [J/kg]. More...
 
virtual tmp< scalarFieldhe (const scalarField &T, const label patchi) const
 Enthalpy/Internal energy for patch [J/kg]. More...
 
virtual tmp< volScalarFieldhs () const
 Sensible enthalpy [J/kg/K]. More...
 
virtual tmp< volScalarFieldhs (const volScalarField &p, const volScalarField &T) const
 Sensible enthalpy. More...
 
virtual tmp< scalarFieldhs (const scalarField &T, const label patchi) const
 Sensible enthalpy for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldhs (const scalarField &T, const labelList &cells) const
 Sensible enthalpy for cell-set [J/kg]. More...
 
virtual tmp< volScalarFieldha () const
 Absolute enthalpy [J/kg/K]. More...
 
virtual tmp< volScalarFieldha (const volScalarField &p, const volScalarField &T) const
 Absolute enthalpy. More...
 
virtual tmp< scalarFieldha (const scalarField &T, const label patchi) const
 Absolute enthalpy for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldha (const scalarField &T, const labelList &cells) const
 Absolute enthalpy for cell-set [J/kg]. More...
 
virtual tmp< volScalarFieldhc () const
 Enthalpy of formation [J/kg]. More...
 
virtual tmp< scalarFieldTHE (const scalarField &he, const scalarField &T0, const labelList &cells) const
 Temperature from enthalpy/internal energy for cell-set. More...
 
virtual tmp< scalarFieldTHE (const scalarField &he, const scalarField &T0, const label patchi) const
 Temperature from enthalpy/internal energy for patch. More...
 
virtual tmp< scalarFieldCp (const scalarField &T, const label patchi) const
 Heat capacity at constant pressure for patch [J/kg/K]. More...
 
virtual tmp< volScalarFieldCp () const
 Heat capacity at constant pressure [J/kg/K]. More...
 
virtual tmp< scalarFieldCv (const scalarField &T, const label patchi) const
 Heat capacity at constant volume for patch [J/kg/K]. 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 &T, const label patchi) const
 Gamma = Cp/Cv for patch []. More...
 
virtual tmp< scalarFieldCpv (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 &T, const label patchi) const
 Heat capacity ratio for patch []. More...
 
virtual tmp< volScalarFieldW () const
 Molecular weight [kg/kmol]. More...
 
virtual tmp< scalarFieldW (const label patchi) const
 Molecular weight for patch [kg/kmol]. More...
 
virtual tmp< volScalarFieldkappa () const
 Thermal diffusivity for temperature of mixture [W/m/K]. More...
 
virtual tmp< scalarFieldkappa (const label patchi) const
 Thermal diffusivity for temperature of mixture for patch [W/m/K]. 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 turbulent diffusivity for temperature. More...
 
virtual tmp< scalarFieldkappaEff (const scalarField &alphat, const label patchi) const
 Effective thermal turbulent diffusivity for temperature. More...
 
virtual tmp< volScalarFieldalphaEff (const volScalarField &alphat) const
 Effective thermal turbulent diffusivity of mixture [kg/m/s]. More...
 
virtual tmp< scalarFieldalphaEff (const scalarField &alphat, const label patchi) const
 Effective thermal turbulent diffusivity of mixture. More...
 
virtual bool read ()
 Read thermophysical properties dictionary. More...
 
template<class CellMixture , class PatchFaceMixture , class Method , class ... Args>
Foam::tmp< Foam::volScalarFieldvolScalarFieldProperty (const word &psiName, const dimensionSet &psiDim, CellMixture cellMixture, PatchFaceMixture patchFaceMixture, Method psiMethod, const Args &... args) const
 
template<class CellMixture , class Method , class ... Args>
Foam::tmp< Foam::scalarFieldcellSetProperty (CellMixture cellMixture, Method psiMethod, const labelList &cells, const Args &... args) const
 
template<class PatchFaceMixture , class Method , class ... Args>
Foam::tmp< Foam::scalarFieldpatchFieldProperty (PatchFaceMixture patchFaceMixture, Method psiMethod, const label patchi, const Args &... args) const
 

Protected Member Functions

template<class CellMixture , class PatchFaceMixture , class Method , class ... Args>
tmp< volScalarFieldvolScalarFieldProperty (const word &psiName, const dimensionSet &psiDim, CellMixture cellMixture, PatchFaceMixture patchFaceMixture, Method psiMethod, const Args &... args) const
 Return a volScalarField of the given property. More...
 
template<class CellMixture , class Method , class ... Args>
tmp< scalarFieldcellSetProperty (CellMixture cellMixture, Method psiMethod, const labelList &cells, const Args &... args) const
 Return a scalarField of the given property on a cell set. More...
 
template<class PatchFaceMixture , class Method , class ... Args>
tmp< scalarFieldpatchFieldProperty (PatchFaceMixture patchFaceMixture, Method psiMethod, const label patchi, const Args &... args) const
 Return a scalarField of the given property on a patch. More...
 
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 49 of file heThermo.H.

Constructor & Destructor Documentation

◆ heThermo() [1/3]

heThermo ( const fvMesh mesh,
const word phaseName 
)

Construct from mesh.

Definition at line 171 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::heBoundaryCorrection(), and heThermo< BasicSolidThermo, MixtureType >::heThermo().

Here is the caller graph for this function:

◆ heThermo() [2/3]

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

Construct from mesh and dictionary.

Definition at line 203 of file heThermo.C.

◆ heThermo() [3/3]

heThermo ( const heThermo< BasicThermo, MixtureType > &  )
delete

Disallow default bitwise copy construction.

◆ ~heThermo()

~heThermo ( )
virtual

Destructor.

Definition at line 237 of file heThermo.C.

Member Function Documentation

◆ volScalarFieldProperty() [1/2]

tmp<volScalarField> volScalarFieldProperty ( const word psiName,
const dimensionSet psiDim,
CellMixture  cellMixture,
PatchFaceMixture  patchFaceMixture,
Method  psiMethod,
const Args &...  args 
) const
protected

Return a volScalarField of the given property.

◆ cellSetProperty() [1/2]

tmp<scalarField> cellSetProperty ( CellMixture  cellMixture,
Method  psiMethod,
const labelList cells,
const Args &...  args 
) const
protected

Return a scalarField of the given property on a cell set.

Referenced by heThermo< BasicSolidThermo, MixtureType >::volScalarFieldProperty().

Here is the caller graph for this function:

◆ patchFieldProperty() [1/2]

tmp<scalarField> patchFieldProperty ( PatchFaceMixture  patchFaceMixture,
Method  psiMethod,
const label  patchi,
const Args &...  args 
) const
protected

Return a scalarField of the given property on a patch.

Referenced by heThermo< BasicSolidThermo, MixtureType >::cellSetProperty().

Here is the caller graph for this function:

◆ heBoundaryCorrection()

void heBoundaryCorrection ( volScalarField he)
protected

Correct the enthalpy/internal energy field boundaries.

Definition at line 147 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::patchFieldProperty().

Here is the caller graph for this function:

◆ composition() [1/2]

virtual MixtureType::basicMixtureType& composition ( )
inlinevirtual

Return the composition of the mixture.

Definition at line 137 of file heThermo.H.

◆ composition() [2/2]

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

Return the composition of the mixture.

Definition at line 144 of file heThermo.H.

◆ thermoName()

virtual word thermoName ( ) const
inlinevirtual

Return the name of the thermo physics.

Definition at line 150 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 157 of file heThermo.H.

Referenced by heThermo< BasicSolidThermo, MixtureType >::thermoName().

Here is the caller graph for this function:

◆ isochoric()

virtual bool isochoric ( ) const
inlinevirtual

Return true if the equation of state is isochoric.

i.e. rho = const

Definition at line 164 of file heThermo.H.

Referenced by heThermo< BasicSolidThermo, MixtureType >::thermoName().

Here is the caller graph for this function:

◆ he() [1/5]

virtual volScalarField& he ( )
inlinevirtual

Enthalpy/Internal energy [J/kg].

Non-const access allowed for transport equations

Definition at line 174 of file heThermo.H.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), heThermo< BasicSolidThermo, MixtureType >::thermoName(), and heThermo< BasicSolidThermo, MixtureType >::~heThermo().

Here is the caller graph for this function:

◆ he() [2/5]

virtual const volScalarField& he ( ) const
inlinevirtual

Enthalpy/Internal energy [J/kg].

Definition at line 180 of file heThermo.H.

◆ 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 245 of file heThermo.C.

◆ he() [4/5]

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

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

Definition at line 265 of file heThermo.C.

◆ he() [5/5]

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

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

Definition at line 283 of file heThermo.C.

◆ hs() [1/4]

Foam::tmp< Foam::volScalarField > hs ( ) const
virtual

Sensible enthalpy [J/kg/K].

Definition at line 301 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::hs().

Here is the caller graph for this function:

◆ hs() [2/4]

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

Sensible enthalpy.

for given pressure and temperature [J/kg]

Definition at line 318 of file heThermo.C.

◆ hs() [3/4]

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

Sensible enthalpy for patch [J/kg/K].

Definition at line 356 of file heThermo.C.

◆ hs() [4/4]

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

Sensible enthalpy for cell-set [J/kg].

Definition at line 338 of file heThermo.C.

◆ ha() [1/4]

Foam::tmp< Foam::volScalarField > ha ( ) const
virtual

Absolute enthalpy [J/kg/K].

Definition at line 374 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::ha(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ ha() [2/4]

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

Absolute enthalpy.

for given pressure and temperature [J/kg]

Definition at line 391 of file heThermo.C.

◆ ha() [3/4]

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

Absolute enthalpy for patch [J/kg/K].

Definition at line 429 of file heThermo.C.

◆ ha() [4/4]

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

Absolute enthalpy for cell-set [J/kg].

Definition at line 411 of file heThermo.C.

◆ hc()

Foam::tmp< Foam::volScalarField > hc ( ) const
virtual

Enthalpy of formation [J/kg].

Definition at line 447 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ THE() [1/2]

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

Temperature from enthalpy/internal energy for cell-set.

Definition at line 638 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::CpByCpv(), heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::THE().

Here is the caller graph for this function:

◆ THE() [2/2]

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

Temperature from enthalpy/internal energy for patch.

Definition at line 658 of file heThermo.C.

◆ Cp() [1/2]

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

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

Definition at line 462 of file heThermo.C.

◆ Cp() [2/2]

Foam::tmp< Foam::volScalarField > Cp ( ) const
virtual

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

Definition at line 480 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::hc(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ Cv() [1/2]

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

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

Definition at line 498 of file heThermo.C.

◆ Cv() [2/2]

Foam::tmp< Foam::volScalarField > Cv ( ) const
virtual

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

Definition at line 516 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::Cp(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ gamma() [1/2]

Foam::tmp< Foam::volScalarField > gamma ( ) const
virtual

Gamma = Cp/Cv [].

Definition at line 551 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::Cv(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ gamma() [2/2]

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

Gamma = Cp/Cv for patch [].

Definition at line 533 of file heThermo.C.

◆ Cpv() [1/2]

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

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

Definition at line 568 of file heThermo.C.

◆ Cpv() [2/2]

Foam::tmp< Foam::volScalarField > Cpv ( ) const
virtual

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

Definition at line 586 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::gamma(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ CpByCpv() [1/2]

Foam::tmp< Foam::volScalarField > CpByCpv ( ) const
virtual

Heat capacity ratio [].

Definition at line 621 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::Cpv(), and heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ CpByCpv() [2/2]

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

Heat capacity ratio for patch [].

Definition at line 603 of file heThermo.C.

◆ W() [1/2]

Foam::tmp< Foam::volScalarField > W ( ) const
virtual

Molecular weight [kg/kmol].

Definition at line 678 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::W().

Here is the caller graph for this function:

◆ W() [2/2]

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

Molecular weight for patch [kg/kmol].

Definition at line 693 of file heThermo.C.

◆ kappa() [1/2]

Foam::tmp< Foam::volScalarField > kappa ( ) const
virtual

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

Definition at line 708 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::kappa().

Here is the caller graph for this function:

◆ kappa() [2/2]

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

Thermal diffusivity for temperature of mixture for patch [W/m/K].

Definition at line 720 of file heThermo.C.

◆ alphahe() [1/2]

Foam::tmp< Foam::volScalarField > alphahe ( ) const
virtual

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

Definition at line 735 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller 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 747 of file heThermo.C.

◆ kappaEff() [1/2]

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

Effective thermal turbulent diffusivity for temperature.

of mixture [W/m/K]

Definition at line 762 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::alphahe(), heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::kappaEff().

Here is the caller graph for this function:

◆ kappaEff() [2/2]

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

Effective thermal turbulent diffusivity for temperature.

of mixture for patch [W/m/K]

Definition at line 777 of file heThermo.C.

◆ alphaEff() [1/2]

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

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

Definition at line 795 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::alphaEff(), heThermo< BasicSolidThermo, MixtureType >::he(), and heThermo< BasicSolidThermo, MixtureType >::kappaEff().

Here is the caller graph for this function:

◆ alphaEff() [2/2]

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

Effective thermal turbulent diffusivity of mixture.

for patch [kg/m/s]

Definition at line 810 of file heThermo.C.

◆ read()

bool read ( )
virtual

Read thermophysical properties dictionary.

Definition at line 826 of file heThermo.C.

Referenced by heThermo< BasicSolidThermo, MixtureType >::he().

Here is the caller graph for this function:

◆ volScalarFieldProperty() [2/2]

Foam::tmp<Foam::volScalarField> volScalarFieldProperty ( const word psiName,
const dimensionSet psiDim,
CellMixture  cellMixture,
PatchFaceMixture  patchFaceMixture,
Method  psiMethod,
const Args &...  args 
) const

Definition at line 42 of file heThermo.C.

◆ cellSetProperty() [2/2]

Foam::tmp<Foam::scalarField> cellSetProperty ( CellMixture  cellMixture,
Method  psiMethod,
const labelList cells,
const Args &...  args 
) const

Definition at line 92 of file heThermo.C.

◆ patchFieldProperty() [2/2]

Foam::tmp<Foam::scalarField> patchFieldProperty ( PatchFaceMixture  patchFaceMixture,
Method  psiMethod,
const label  patchi,
const Args &...  args 
) const

Definition at line 119 of file heThermo.C.

Member Data Documentation

◆ he_


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