Loading...
Searching...
No Matches
heThermo< BasicThermo, MixtureType > Class Template Reference

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

#include <heThermo.H>

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

Public Member Functions

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

Protected Member Functions

void heBoundaryCorrection (volScalarField &he)
 Correct the enthalpy/internal energy field boundaries.

Protected Attributes

volScalarField he_
 Energy field.

Detailed Description

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

Enthalpy/Internal energy for a mixture.

Source files

Definition at line 48 of file heThermo.H.

Constructor & Destructor Documentation

◆ heThermo() [1/3]

template<class BasicThermo, class MixtureType>
heThermo ( const fvMesh & mesh,
const word & phaseName )

Construct from mesh.

Definition at line 95 of file heThermo.C.

References Foam::dimEnergy, Foam::dimMass, he_, mesh, and timeName.

◆ heThermo() [2/3]

template<class BasicThermo, class MixtureType>
heThermo ( const fvMesh & mesh,
const dictionary & dict,
const word & phaseName )

Construct from mesh and dictionary.

Definition at line 128 of file heThermo.C.

References mesh.

◆ heThermo() [3/3]

template<class BasicThermo, class MixtureType>
heThermo ( const fvMesh & mesh,
const word & phaseName,
const word & dictionaryName )

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

Definition at line 162 of file heThermo.C.

References Foam::dimEnergy, Foam::dimMass, he_, mesh, and timeName.

◆ ~heThermo()

template<class BasicThermo, class MixtureType>
~heThermo ( )
virtual

Destructor.

Definition at line 199 of file heThermo.C.

Member Function Documentation

◆ heBoundaryCorrection()

template<class BasicThermo, class MixtureType>
void heBoundaryCorrection ( volScalarField & he)
protected

Correct the enthalpy/internal energy field boundaries.

Definition at line 29 of file heThermo.C.

References forAll, h, Foam::isA(), and Foam::refCast().

Here is the call graph for this function:

◆ composition() [1/2]

template<class BasicThermo, class MixtureType>
virtual MixtureType::basicMixtureType & composition ( )
inlinevirtual

Return the composition of the mixture.

Definition at line 140 of file heThermo.H.

◆ composition() [2/2]

template<class BasicThermo, class MixtureType>
virtual const MixtureType::basicMixtureType & composition ( ) const
inlinevirtual

Return the composition of the mixture.

Definition at line 149 of file heThermo.H.

◆ thermoName()

template<class BasicThermo, class MixtureType>
virtual word thermoName ( ) const
inlinevirtual

Return the name of the thermo physics.

Definition at line 157 of file heThermo.H.

◆ incompressible()

template<class BasicThermo, class MixtureType>
virtual bool incompressible ( ) const
inlinevirtual

Return true if the equation of state is incompressible.

i.e. rho != f(p)

Definition at line 167 of file heThermo.H.

◆ isochoric()

template<class BasicThermo, class MixtureType>
virtual bool isochoric ( ) const
inlinevirtual

Return true if the equation of state is isochoric.

i.e. rho = const

Definition at line 177 of file heThermo.H.

◆ he() [1/5]

template<class BasicThermo, class MixtureType>
virtual volScalarField & he ( )
inlinevirtual

Enthalpy/Internal energy [J/kg].

Non-const access allowed for transport equations

Definition at line 190 of file heThermo.H.

Referenced by he(), he(), and he().

Here is the caller graph for this function:

◆ he() [2/5]

template<class BasicThermo, class MixtureType>
virtual const volScalarField & he ( ) const
inlinevirtual

Enthalpy/Internal energy [J/kg].

Definition at line 198 of file heThermo.H.

◆ he() [3/5]

template<class BasicThermo, class MixtureType>
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 206 of file heThermo.C.

References forAll, he(), he_, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, p, pp(), and Foam::T().

Here is the call graph for this function:

◆ he() [4/5]

template<class BasicThermo, class MixtureType>
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 253 of file heThermo.C.

References cells, forAll, he(), tmp< T >::New(), p, and Foam::T().

Here is the call graph for this function:

◆ he() [5/5]

template<class BasicThermo, class MixtureType>
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 273 of file heThermo.C.

References forAll, he(), tmp< T >::New(), p, and Foam::T().

Here is the call graph for this function:

◆ hc()

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > hc ( ) const
virtual

Chemical enthalpy [J/kg].

Definition at line 295 of file heThermo.C.

References mesh, and GeometricField< scalar, fvPatchField, volMesh >::New().

Here is the call graph for this function:

◆ THE() [1/2]

template<class BasicThermo, class MixtureType>
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 689 of file heThermo.C.

References cells, forAll, h, tmp< T >::New(), p, Foam::T(), and T0.

Here is the call graph for this function:

◆ THE() [2/2]

template<class BasicThermo, class MixtureType>
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 711 of file heThermo.C.

References forAll, h, tmp< T >::New(), p, Foam::T(), and T0.

Here is the call graph for this function:

◆ Cp() [1/3]

template<class BasicThermo, class MixtureType>
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 332 of file heThermo.C.

References Foam::cp(), forAll, tmp< T >::New(), p, Foam::T(), and tCp.

Here is the call graph for this function:

◆ Cp() [2/3]

template<class BasicThermo, class MixtureType>
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 354 of file heThermo.C.

References cells, tmp< T >::New(), p, Foam::T(), and tCp.

Here is the call graph for this function:

◆ Cp() [3/3]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > Cp ( ) const
virtual

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

Definition at line 376 of file heThermo.C.

References mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and tCp.

Here is the call graph for this function:

◆ Cv() [1/2]

template<class BasicThermo, class MixtureType>
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 416 of file heThermo.C.

References forAll, tmp< T >::New(), p, Foam::T(), and tCv.

Here is the call graph for this function:

◆ rhoEoS()

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::scalarField > rhoEoS ( const scalarField & p,
const scalarField & T,
const labelList & cells ) const
virtual

Density from pressure and temperature.

Definition at line 438 of file heThermo.C.

References cells, forAll, tmp< T >::New(), p, rho, and Foam::T().

Here is the call graph for this function:

◆ Cv() [2/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > Cv ( ) const
virtual

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

Definition at line 460 of file heThermo.C.

References Cv, Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and tCv.

Here is the call graph for this function:

◆ gamma() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > gamma ( ) const
virtual

Gamma = Cp/Cv [].

Definition at line 518 of file heThermo.C.

References Foam::dimless, forAll, gamma(), mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and pp().

Referenced by gamma(), and gamma().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gamma() [2/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::scalarField > gamma ( const scalarField & p,
const scalarField & T,
const label patchi ) const
virtual

Gamma = Cp/Cv for patch [].

Definition at line 496 of file heThermo.C.

References forAll, gamma(), tmp< T >::New(), p, and Foam::T().

Here is the call graph for this function:

◆ Cpv() [1/2]

template<class BasicThermo, class MixtureType>
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 560 of file heThermo.C.

References Cpv(), forAll, tmp< T >::New(), p, and Foam::T().

Referenced by Cpv(), and Cpv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cpv() [2/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > Cpv ( ) const
virtual

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

Definition at line 582 of file heThermo.C.

References Cpv(), Foam::dimEnergy, Foam::dimMass, Foam::dimTemperature, forAll, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and pp().

Here is the call graph for this function:

◆ CpByCpv() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > CpByCpv ( ) const
virtual

Heat capacity ratio [].

Definition at line 643 of file heThermo.C.

References CpByCpv(), Foam::dimless, forAll, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and pp().

Referenced by alphaEff(), alphaEff(), alphahe(), alphahe(), CpByCpv(), and CpByCpv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CpByCpv() [2/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::scalarField > CpByCpv ( const scalarField & p,
const scalarField & T,
const label patchi ) const
virtual

Heat capacity ratio for patch [].

Definition at line 621 of file heThermo.C.

References CpByCpv(), forAll, tmp< T >::New(), p, and Foam::T().

Here is the call graph for this function:

◆ W()

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > W ( ) const
virtual

Molecular weight [kg/kmol].

Definition at line 737 of file heThermo.C.

References Foam::dimMass, Foam::dimMoles, forAll, mesh, GeometricField< scalar, fvPatchField, volMesh >::New(), IOobjectOption::NO_REGISTER, and W().

Referenced by W().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kappa() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > kappa ( ) const
virtual

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

Definition at line 776 of file heThermo.C.

References Cp, and kappa().

Referenced by kappa().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kappa() [2/2]

template<class BasicThermo, class MixtureType>
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 785 of file heThermo.C.

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

Here is the call graph for this function:

◆ alphahe() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > alphahe ( ) const
virtual

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

Definition at line 802 of file heThermo.C.

References alphaEff(), alphaEff(), and CpByCpv().

Here is the call graph for this function:

◆ alphahe() [2/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::scalarField > alphahe ( const label patchi) const
virtual

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

Definition at line 812 of file heThermo.C.

References CpByCpv().

Here is the call graph for this function:

◆ kappaEff() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > kappaEff ( const volScalarField & alphat) const
virtual

Effective thermal diffusivity for temperature.

of mixture [J/m/s/K]

Definition at line 827 of file heThermo.C.

References Cp, kappaEff(), and kappaEff.

Referenced by kappaEff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kappaEff() [2/2]

template<class BasicThermo, class MixtureType>
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 840 of file heThermo.C.

References Cp.

◆ alphaEff() [1/2]

template<class BasicThermo, class MixtureType>
Foam::tmp< Foam::volScalarField > alphaEff ( const volScalarField & alphat) const
virtual

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

Definition at line 862 of file heThermo.C.

References alphaEff(), alphaEff(), and CpByCpv().

Referenced by alphaEff(), and alphahe().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alphaEff() [2/2]

template<class BasicThermo, class MixtureType>
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 875 of file heThermo.C.

References CpByCpv().

Here is the call graph for this function:

◆ read()

template<class BasicThermo, class MixtureType>
bool read ( )
virtual

Read thermophysical properties dictionary.

Definition at line 896 of file heThermo.C.

Member Data Documentation

◆ he_

template<class BasicThermo, class MixtureType>
volScalarField he_
protected

Energy field.

Definition at line 60 of file heThermo.H.

Referenced by he(), heThermo(), and heThermo().


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/basic/heThermo/heThermo.H
  • src/thermophysicalModels/basic/heThermo/heThermo.C