FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Basic thermodynamic properties. More...

#include <basicThermophysicalModels/basicThermo.H>


Detailed Description

Basic thermodynamic properties.

Source files

Definition at line 53 of file basicThermo.H.

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 volScalarField &  p ()
 Pressure [Pa].
virtual const volScalarField &  p () const
 Pressure [Pa].
virtual tmp< volScalarField >  rho () const =0
 Density [kg/m^3].
virtual const volScalarField &  psi () const
 Compressibility [s^2/m^2].
virtual volScalarField &  h ()
 Total enthalpy [J/kg].
virtual const volScalarField &  h () const
 Total enthalpy [J/kg].
virtual tmp< scalarField >  h (const scalarField &T, const labelList &cells) const
 Total enthalpy for cell-set [J/kg].
virtual tmp< scalarField >  h (const scalarField &T, const label patchi) const
 Total enthalpy for patch [J/kg].
virtual volScalarField &  hs ()
 Sensible enthalpy [J/kg].
virtual const volScalarField &  hs () const
 Sensible enthalpy [J/kg].
virtual tmp< scalarField >  hs (const scalarField &T, const labelList &cells) const
 Sensible enthalpy for cell-set [J/kg].
virtual tmp< scalarField >  hs (const scalarField &T, const label patchi) const
 Sensible enthalpy for patch [J/kg].
virtual tmp< volScalarField >  hc () const
 Chemical enthalpy [J/kg].
virtual volScalarField &  e ()
 Internal energy [J/kg].
virtual const volScalarField &  e () const
 Internal energy [J/kg].
virtual tmp< scalarField >  e (const scalarField &T, const labelList &cells) const
 Internal energy for cell-set [J/kg].
virtual tmp< scalarField >  e (const scalarField &T, const label patchi) const
 Internal energy for patch [J/kg].
virtual const volScalarField &  T () const
 Temperature [K].
virtual tmp< scalarField >  Cp (const scalarField &T, const label patchi) const
 Heat capacity at constant pressure for patch [J/kg/K].
virtual tmp< volScalarField >  Cp () const
 Heat capacity at constant pressure [J/kg/K].
virtual tmp< scalarField >  Cv (const scalarField &T, const label patchi) const
 Heat capacity at constant volume for patch [J/kg/K].
virtual tmp< volScalarField >  Cv () const
 Heat capacity at constant volume [J/kg/K].
virtual const volScalarField &  mu () const
 Dynamic viscosity of mixture [kg/m/s].
virtual const volScalarField &  alpha () 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].

Constructor & Destructor Documentation

basicThermo ( const basicThermo &    ) [protected]

Construct as copy (not implemented)

basicThermo ( const fvMesh &   mesh  )

Construct from mesh.

Definition at line 147 of file basicThermo.C.

~basicThermo (  ) [virtual]

Destructor.

Definition at line 233 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 46 of file basicThermo.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, and basicThermo::T_.

Foam::wordList eBoundaryTypes (  ) [protected]

Return the internal energy field boundary types by.

interrogating the temperature field boundary types

Definition at line 96 of file basicThermo.C.

References forAll.

void eBoundaryCorrection ( volScalarField &   e  ) [protected]

Correct the internal energy field boundaries.

Definition at line 126 of file basicThermo.C.

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

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

TypeName ( "basicThermo"    )

Runtime type information.

Foam::volScalarField & p (  ) [virtual]

Pressure [Pa].

Non-const access allowed for transport equations

Definition at line 239 of file basicThermo.C.

Referenced by ODEChemistryModel< CompType, ThermoType >::calculate(), ODEChemistryModel< CompType, ThermoType >::solve(), and ODEChemistryModel< CompType, ThermoType >::tc().

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

Pressure [Pa].

Definition at line 245 of file basicThermo.C.

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 251 of file basicThermo.C.

Referenced by basicPsiThermo::rho().

const Foam::volScalarField & h (  ) const [virtual]
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]
const Foam::volScalarField & hs (  ) const [virtual]
Foam::tmp< Foam::scalarField > hs ( const scalarField &   T,
const labelList &   cells  
) const [virtual]

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

Reimplemented in hsPsiThermo< MixtureType >, hsRhoThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.

Definition at line 316 of file basicThermo.C.

References notImplemented.

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

Sensible enthalpy for patch [J/kg].

Reimplemented in hsPsiThermo< MixtureType >, hsRhoThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.

Definition at line 331 of file basicThermo.C.

References notImplemented.

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

Internal energy [J/kg].

Reimplemented in ePsiThermo< MixtureType >.

Definition at line 359 of file basicThermo.C.

References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::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 367 of file basicThermo.C.

References notImplemented.

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 382 of file basicThermo.C.

References notImplemented.

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

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

Definition at line 446 of file basicThermo.C.

Referenced by forces::devRhoReff(), and turbulenceModel::mu().

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

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

Definition at line 452 of file basicThermo.C.

Referenced by turbulenceModel::alpha(), and wallHeatTransferFvPatchScalarField::updateCoeffs().


Member Data Documentation

volScalarField p_ [protected]

Pressure [Pa].

Definition at line 65 of file basicThermo.H.

Referenced by basicPsiThermo::rho(), hhuCombustionThermo::rhob(), and hhuCombustionThermo::rhou().

volScalarField mu_ [protected]

Laminar dynamic viscosity [kg/m/s].

Definition at line 74 of file basicThermo.H.

volScalarField alpha_ [protected]

Laminar thermal diffusuvity [kg/m/s].

Definition at line 77 of file basicThermo.H.


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