basicThermo::implementation Class Reference
Inheritance diagram for basicThermo::implementation:
Collaboration diagram for basicThermo::implementation:

Public Member Functions

 implementation (const dictionary &, const fvMesh &, const word &)
 Construct from dictionary, mesh and phase name. More...
 
 implementation (const implementation &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~implementation ()
 Destructor. More...
 
virtual const fvMeshmesh () const
 Return const access to the mesh. More...
 
virtual const wordphaseName () const
 Phase name. More...
 
virtual Switch dpdt () const
 Should the dpdt term be included in the enthalpy equation. More...
 
virtual const volScalarFieldT () const
 Temperature [K]. More...
 
virtual volScalarFieldT ()
 Temperature [K]. More...
 
virtual const volScalarFieldkappa () const
 Thermal conductivity of mixture [W/m/K]. More...
 
virtual void read (const dictionary &)
 Read thermophysical properties dictionary. More...
 
void operator= (const implementation &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from basicThermo
 TypeName ("basicThermo")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, basicThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
 Declare run-time constructor selection table. More...
 
virtual ~basicThermo ()
 Destructor. More...
 
virtual const IOdictionaryproperties () const =0
 Properties dictionary. More...
 
virtual IOdictionaryproperties ()=0
 Non-const access the properties dictionary. More...
 
word phasePropertyName (const word &name) const
 Name of a property for a given phase. More...
 
void validate (const string &app, const word &) const
 Check that the thermodynamics package is consistent. More...
 
void validate (const string &app, const word &, const word &) const
 Check that the thermodynamics package is consistent. More...
 
virtual void correct ()=0
 Update properties. More...
 
virtual word thermoName () const =0
 Name of the thermo physics. More...
 
virtual bool incompressible () const =0
 Return true if the equation of state is incompressible. More...
 
virtual bool isochoric () const =0
 Return true if the equation of state is isochoric. More...
 
virtual tmp< volScalarFieldW () const =0
 Molecular weight [kg/kmol]. More...
 
virtual tmp< scalarFieldW (const label patchi) const =0
 Molecular weight for patch [kg/kmol]. More...
 
virtual const volScalarFieldhe () const =0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual volScalarFieldhe ()=0
 Enthalpy/Internal energy [J/kg]. More...
 
virtual const volScalarFieldCp () const =0
 Heat capacity at constant pressure [J/kg/K]. More...
 
virtual const volScalarFieldCv () const =0
 Heat capacity at constant volume [J/kg/K]. More...
 
virtual const volScalarFieldCpv () const =0
 Heat capacity at constant pressure/volume [J/kg/K]. More...
 
virtual tmp< volScalarFieldrho () const =0
 Density [kg/m^3]. More...
 
virtual tmp< scalarFieldrho (const label patchi) const =0
 Density for patch [kg/m^3]. More...
 
virtual tmp< volScalarFieldhe (const volScalarField &p, const volScalarField &T) const =0
 Enthalpy/Internal energy. More...
 
virtual tmp< scalarFieldhe (const scalarField &T, const labelList &cells) const =0
 Enthalpy/Internal energy for cell-set [J/kg]. More...
 
virtual tmp< scalarFieldhe (const scalarField &T, const label patchi) const =0
 Enthalpy/Internal energy for patch [J/kg]. More...
 
virtual tmp< scalarFieldhe (const scalarField &T, const fvSource &source) const =0
 Enthalpy/Internal energy for source [J/kg]. More...
 
virtual tmp< volScalarFieldhs () const =0
 Sensible enthalpy [J/kg]. More...
 
virtual tmp< volScalarFieldhs (const volScalarField &p, const volScalarField &T) const =0
 Sensible enthalpy. More...
 
virtual tmp< scalarFieldhs (const scalarField &T, const labelList &cells) const =0
 Sensible enthalpy for cell-set [J/kg]. More...
 
virtual tmp< scalarFieldhs (const scalarField &T, const label patchi) const =0
 Sensible enthalpy for patch [J/kg]. More...
 
virtual tmp< volScalarFieldha () const =0
 Absolute enthalpy [J/kg]. More...
 
virtual tmp< volScalarFieldha (const volScalarField &p, const volScalarField &T) const =0
 Absolute enthalpy. More...
 
virtual tmp< scalarFieldha (const scalarField &T, const labelList &cells) const =0
 Absolute enthalpy for cell-set [J/kg]. More...
 
virtual tmp< scalarFieldha (const scalarField &T, const label patchi) const =0
 Absolute enthalpy for patch [J/kg]. More...
 
virtual tmp< scalarFieldCp (const scalarField &T, const label patchi) const =0
 Heat capacity at constant pressure for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldCv (const scalarField &T, const label patchi) const =0
 Heat capacity at constant volume for patch [J/kg/K]. More...
 
virtual tmp< scalarFieldCpv (const scalarField &T, const label patchi) const =0
 Heat capacity at constant pressure/volume for patch [J/kg/K]. More...
 
tmp< volScalarFieldgamma () const
 Gamma = Cp/Cv []. More...
 
tmp< scalarFieldgamma (const scalarField &T, const label patchi) const
 Gamma = Cp/Cv for patch []. More...
 
virtual tmp< volScalarFieldThe (const volScalarField &h, const volScalarField &p, const volScalarField &T0) const =0
 Temperature from enthalpy/internal energy. More...
 
virtual tmp< scalarFieldThe (const scalarField &h, const scalarField &T0, const labelList &cells) const =0
 Temperature from enthalpy/internal energy for cell-set. More...
 
virtual tmp< scalarFieldThe (const scalarField &h, const scalarField &T0, const label patchi) const =0
 Temperature from enthalpy/internal energy for patch. More...
 
template<class FieldType >
const Foam::basicThermolookupThermo (const FieldType &f)
 
template<class Thermo >
Foam::autoPtr< Thermo > New (const fvMesh &mesh, const word &phaseName)
 

Protected Attributes

const wordphaseName_
 Phase-name. More...
 
volScalarField T_
 Temperature [K]. More...
 
volScalarField kappa_
 Thermal conductivity [W/m/K]. More...
 
Switch dpdt_
 Should the dpdt term be included in the enthalpy equation. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from basicThermo
static word phasePropertyName (const word &name, const word &phaseName)
 Name of a property for a given phase. More...
 
template<class FieldType >
static const basicThermolookupThermo (const FieldType &f)
 Lookup the thermo associated with the given field. More...
 
static wordList splitThermoName (const word &thermoName, const int nCmpt)
 Split name of thermo package into a list of the components names. More...
 
static List< Pair< word > > thermoNameComponents (const word &thermoName)
 Split name of thermo package into a list of named components names. More...
 
template<class Thermo >
static autoPtr< Thermo > New (const fvMesh &, const word &phaseName=word::null)
 Generic New for each of the related thermodynamics packages. More...
 
static autoPtr< basicThermoNew (const fvMesh &, const word &phaseName=word::null)
 Specialisation of the Generic New for basicThermo. More...
 
- Protected Member Functions inherited from basicThermo
wordList heBoundaryTypes ()
 Enthalpy/internal energy field boundary types. More...
 
wordList heBoundaryBaseTypes ()
 Enthalpy/internal energy field boundary base types. More...
 
HashTable< wordheSourcesTypes ()
 Enthalpy/internal energy field sources types. More...
 
- Static Protected Member Functions inherited from basicThermo
static volScalarFieldlookupOrConstruct (const fvMesh &mesh, const char *name)
 Lookup and the named field, or construct it as MUST-READ if it is. More...
 
template<class Thermo , class Table >
static Table::iterator lookupCstrIter (const dictionary &thermoTypeDict, Table *tablePtr, const int nCmpt, const char *cmptNames[], const word &thermoTypeName)
 Get the constructor iterator for the given thermo dictionary and. More...
 
template<class Thermo , class Table >
static Table::iterator lookupCstrIter (const dictionary &thermoDict, Table *tablePtr)
 Get the constructor iterator for the given thermo dictionary and. More...
 

Detailed Description

Definition at line 446 of file basicThermo.H.

Constructor & Destructor Documentation

◆ implementation() [1/2]

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

Construct from dictionary, mesh and phase name.

Definition at line 241 of file basicThermo.C.

◆ implementation() [2/2]

implementation ( const implementation )
delete

Disallow default bitwise copy construction.

◆ ~implementation()

~implementation ( )
virtual

Destructor.

Definition at line 301 of file basicThermo.C.

Member Function Documentation

◆ mesh()

virtual const fvMesh& mesh ( ) const
inlinevirtual

Return const access to the mesh.

Implements basicThermo.

Definition at line 496 of file basicThermo.H.

Referenced by constSolidThermo::readProperty().

Here is the caller graph for this function:

◆ phaseName()

virtual const word& phaseName ( ) const
inlinevirtual

Phase name.

Implements basicThermo.

Definition at line 502 of file basicThermo.H.

References basicThermo::implementation::phaseName_.

◆ dpdt()

virtual Switch dpdt ( ) const
inlinevirtual

Should the dpdt term be included in the enthalpy equation.

Implements basicThermo.

Reimplemented in solidThermo::composite.

Definition at line 508 of file basicThermo.H.

References basicThermo::implementation::dpdt_.

◆ T() [1/2]

const Foam::volScalarField & T ( ) const
virtual

Temperature [K].

Implements basicThermo.

Definition at line 363 of file basicThermo.C.

◆ T() [2/2]

Foam::volScalarField & T ( )
virtual

Temperature [K].

Non-const access allowed for transport equations

Implements basicThermo.

Definition at line 369 of file basicThermo.C.

◆ kappa()

const Foam::volScalarField & kappa ( ) const
virtual

Thermal conductivity of mixture [W/m/K].

Implements basicThermo.

Reimplemented in constAnisoSolidThermo.

Definition at line 375 of file basicThermo.C.

◆ read()

void read ( const dictionary )
virtual

Read thermophysical properties dictionary.

Definition at line 381 of file basicThermo.C.

◆ operator=()

void operator= ( const implementation )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ phaseName_

const word& phaseName_
protected

Phase-name.

Definition at line 461 of file basicThermo.H.

Referenced by basicThermo::implementation::phaseName().

◆ T_

volScalarField T_
protected

Temperature [K].

Definition at line 467 of file basicThermo.H.

◆ kappa_

volScalarField kappa_
protected

Thermal conductivity [W/m/K].

Definition at line 470 of file basicThermo.H.

Referenced by constAnisoSolidThermo::constAnisoSolidThermo(), and constSolidThermo::constSolidThermo().

◆ dpdt_

Switch dpdt_
protected

Should the dpdt term be included in the enthalpy equation.

Definition at line 474 of file basicThermo.H.

Referenced by basicThermo::implementation::dpdt().


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