OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

basicThermo Class Reference

Basic thermodynamic properties. More...

Inheritance diagram for basicThermo:
Collaboration diagram for basicThermo:

List of all members.


Public Member Functions

 TypeName ("basicThermo")
 Runtime type information.
 basicThermo (const fvMesh &)
 Construct from mesh.
virtual ~basicThermo ()
 Destructor.
virtual void correct ()=0
 Update properties.
virtual volScalarFieldp ()
 Pressure [Pa].
virtual const volScalarFieldp () const
 Pressure [Pa].
virtual tmp< volScalarFieldrho () const =0
 Density [kg/m^3].
virtual const volScalarFieldpsi () const
 Compressibility [s^2/m^2].
virtual volScalarFieldh ()
 Enthalpy [J/kg].
virtual const volScalarFieldh () const
 Enthalpy [J/kg].
virtual tmp< scalarFieldh (const scalarField &T, const labelList &cells) const
 Enthalpy for cell-set [J/kg].
virtual tmp< scalarFieldh (const scalarField &T, const label patchi) const
 Enthalpy for patch [J/kg].
virtual volScalarFielde ()
 Internal energy [J/kg].
virtual const volScalarFielde () const
 Internal energy [J/kg].
virtual tmp< scalarFielde (const scalarField &T, const labelList &cells) const
 Internal energy for cell-set [J/kg].
virtual tmp< scalarFielde (const scalarField &T, const label patchi) const
 Internal energy for patch [J/kg].
virtual const volScalarFieldT () const
 Temperature [K].
virtual tmp< scalarFieldCp (const scalarField &T, const label patchi) const
 Heat capacity at constant pressure for patch [J/kg/K].
virtual tmp< volScalarFieldCp () const
 Heat capacity at constant pressure [J/kg/K].
virtual tmp< scalarFieldCv (const scalarField &T, const label patchi) const
 Heat capacity at constant volume for patch [J/kg/K].
virtual tmp< volScalarFieldCv () const
 Heat capacity at constant volume [J/kg/K].
virtual const volScalarFieldmu () const
 Dynamic viscosity of mixture [kg/m/s].
virtual const volScalarFieldalpha () const
 Thermal diffusivity for enthalpy of mixture [kg/m/s].
virtual bool read ()
 Read thermophysicalProperties dictionary.

Protected Member Functions

wordList hBoundaryTypes ()
 Return the enthalpy field boundary types by interrogating the.
void hBoundaryCorrection (volScalarField &h)
 Correct the enthalpy field boundaries.
wordList eBoundaryTypes ()
 Return the internal energy field boundary types by.
void eBoundaryCorrection (volScalarField &e)
 Correct the internal energy field boundaries.
 basicThermo (const basicThermo &)
 Construct as copy (not implemented).

Protected Attributes

volScalarField p_
 Pressure [Pa].
volScalarField psi_
 Compressibility [s^2/m^2].
volScalarField T_
 Temperature [K].
volScalarField mu_
 Laminar dynamic viscosity [kg/m/s].
volScalarField alpha_
 Laminar thermal diffusuvity [kg/m/s].

Detailed Description

Basic thermodynamic properties.

Source files

Definition at line 48 of file basicThermo.H.


Constructor & Destructor Documentation

basicThermo ( const basicThermo  )  [protected]

Construct as copy (not implemented).

basicThermo ( const fvMesh mesh  ) 

Construct from mesh.

Definition at line 139 of file basicThermo.C.

~basicThermo (  )  [virtual]

Destructor.

Definition at line 225 of file basicThermo.C.


Member Function Documentation

Foam::wordList hBoundaryTypes (  )  [protected]

Return the enthalpy field boundary types by interrogating the.

temperature field boundary types

Definition at line 38 of file basicThermo.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

void hBoundaryCorrection ( volScalarField h  )  [protected]

Correct the enthalpy field boundaries.

Definition at line 68 of file basicThermo.C.

Referenced by hhuMixtureThermo< MixtureType >::hhuMixtureThermo().

Here is the caller graph for this function:

Foam::wordList eBoundaryTypes (  )  [protected]

Return the internal energy field boundary types by.

interrogating the temperature field boundary types

Definition at line 88 of file basicThermo.C.

void eBoundaryCorrection ( volScalarField e  )  [protected]

Correct the internal energy field boundaries.

Definition at line 118 of file basicThermo.C.

TypeName ( "basicThermo"   ) 

Runtime type information.

Foam::volScalarField & p (  )  [virtual]

Pressure [Pa].

Non-const access allowed for transport equations

Definition at line 231 of file basicThermo.C.

const Foam::volScalarField & p (  )  const [virtual]

Pressure [Pa].

Definition at line 237 of file basicThermo.C.

References basicThermo::p_.

virtual tmp<volScalarField> rho (  )  const [pure virtual]

Density [kg/m^3].

Implemented in basicPsiThermo, and basicRhoThermo.

const Foam::volScalarField & psi (  )  const [virtual]

Compressibility [s^2/m^2].

Definition at line 243 of file basicThermo.C.

Referenced by basicPsiThermo::rho().

Here is the caller graph for this function:

Foam::volScalarField & h (  )  [virtual]

Enthalpy [J/kg].

Non-const access allowed for transport equations

Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hCombustionThermo, and hReactionThermo.

Definition at line 249 of file basicThermo.C.

const Foam::volScalarField & h (  )  const [virtual]

Enthalpy [J/kg].

Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hCombustionThermo, and hReactionThermo.

Definition at line 256 of file basicThermo.C.

References notImplemented, and dictionary::null.

Foam::tmp< Foam::scalarField > h ( const scalarField T,
const labelList cells 
) const [virtual]

Foam::tmp< Foam::scalarField > h ( const scalarField T,
const label  patchi 
) const [virtual]

Foam::volScalarField & e (  )  [virtual]

Internal energy [J/kg].

Non-const access allowed for transport equations

Reimplemented in ePsiThermo< MixtureType >.

Definition at line 293 of file basicThermo.C.

const Foam::volScalarField & e (  )  const [virtual]

Internal energy [J/kg].

Reimplemented in ePsiThermo< MixtureType >.

Definition at line 300 of file basicThermo.C.

References notImplemented, and dictionary::null.

Foam::tmp< Foam::scalarField > e ( const scalarField T,
const labelList cells 
) const [virtual]

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

Reimplemented in ePsiThermo< MixtureType >.

Definition at line 308 of file basicThermo.C.

References notImplemented, and dictionary::null.

Foam::tmp< Foam::scalarField > e ( const scalarField T,
const label  patchi 
) const [virtual]

Internal energy for patch [J/kg].

Reimplemented in ePsiThermo< MixtureType >.

Definition at line 323 of file basicThermo.C.

const Foam::volScalarField & T (  )  const [virtual]

Temperature [K].

Definition at line 337 of file basicThermo.C.

Referenced by laminarFlameSpeed::New().

Here is the caller graph for this function:

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

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

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

Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, and hRhoThermo< MixtureType >.

Definition at line 366 of file basicThermo.C.

References notImplemented, and dictionary::null.

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

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

Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, and hRhoThermo< MixtureType >.

Definition at line 380 of file basicThermo.C.

const Foam::volScalarField & mu (  )  const [virtual]

Dynamic viscosity of mixture [kg/m/s].

Definition at line 387 of file basicThermo.C.

References notImplemented, and dictionary::null.

Referenced by turbulenceModel::alpha().

Here is the caller graph for this function:

const Foam::volScalarField & alpha (  )  const [virtual]

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

Definition at line 393 of file basicThermo.C.

bool read (  )  [virtual]


Member Data Documentation

volScalarField p_ [protected]

Pressure [Pa].

Definition at line 60 of file basicThermo.H.

Referenced by basicThermo::p(), and basicPsiThermo::rho().

volScalarField psi_ [protected]

Compressibility [s^2/m^2].

Definition at line 63 of file basicThermo.H.

volScalarField mu_ [protected]

Laminar dynamic viscosity [kg/m/s].

Definition at line 69 of file basicThermo.H.

volScalarField alpha_ [protected]

Laminar thermal diffusuvity [kg/m/s].

Definition at line 72 of file basicThermo.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd