Basic thermodynamic properties. More...
#include <basicThermophysicalModels/basicThermo.H>
Basic thermodynamic properties.
Definition at line 53 of file basicThermo.H.
Inheritance diagram for basicThermo:
Collaboration diagram for basicThermo: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].
| |
| 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.
| 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_.
| void hBoundaryCorrection | ( | volScalarField & | h ) | [protected]
|
Correct the enthalpy field boundaries.
Definition at line 76 of file basicThermo.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and forAll.
Referenced by hhuMixtureThermo< MixtureType >::hhuMixtureThermo(), hPsiMixtureThermo< MixtureType >::hPsiMixtureThermo(), hPsiThermo< MixtureType >::hPsiThermo(), hRhoMixtureThermo< MixtureType >::hRhoMixtureThermo(), hRhoThermo< MixtureType >::hRhoThermo(), hsPsiMixtureThermo< MixtureType >::hsPsiMixtureThermo(), hsPsiThermo< MixtureType >::hsPsiThermo(), hsRhoMixtureThermo< MixtureType >::hsRhoMixtureThermo(), and hsRhoThermo< MixtureType >::hsRhoThermo().
| 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.
| virtual void correct | ( | ) | [pure virtual]
|
Update properties.
Implemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hsRhoThermo< MixtureType >, hCombustionThermo, hhuCombustionThermo, hsCombustionThermo, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, hReactionThermo, hsReactionThermo, hRhoMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.
| 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().
| Foam::volScalarField & h | ( | ) | [virtual]
|
Total enthalpy [J/kg].
Non-const access allowed for transport equations
Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hCombustionThermo, and hReactionThermo.
Definition at line 257 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
Referenced by radiationModel::Sh(), mixedEnthalpyFvPatchScalarField::updateCoeffs(), gradientEnthalpyFvPatchScalarField::updateCoeffs(), and fixedEnthalpyFvPatchScalarField::updateCoeffs().
| const Foam::volScalarField & h | ( | ) | const [virtual]
|
Total enthalpy [J/kg].
Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hCombustionThermo, and hReactionThermo.
Definition at line 264 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
| Foam::tmp< Foam::scalarField > h | ( | const scalarField & | T, |
| const labelList & | cells | ||
| ) | const [virtual]
|
Total enthalpy for cell-set [J/kg].
Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, and hRhoMixtureThermo< MixtureType >.
Definition at line 272 of file basicThermo.C.
References notImplemented.
| Foam::tmp< Foam::scalarField > h | ( | const scalarField & | T, |
| const label | patchi | ||
| ) | const [virtual]
|
Total enthalpy for patch [J/kg].
Reimplemented in hPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, and hRhoMixtureThermo< MixtureType >.
Definition at line 287 of file basicThermo.C.
References notImplemented.
| Foam::volScalarField & hs | ( | ) | [virtual]
|
Sensible enthalpy [J/kg].
Non-const access allowed for transport equations
Reimplemented in hsPsiThermo< MixtureType >, hsRhoThermo< MixtureType >, hsCombustionThermo, and hsReactionThermo.
Definition at line 301 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
Referenced by radiationModel::Shs(), ODEChemistryModel< CompType, ThermoType >::solve(), mixedEnthalpyFvPatchScalarField::updateCoeffs(), gradientEnthalpyFvPatchScalarField::updateCoeffs(), and fixedEnthalpyFvPatchScalarField::updateCoeffs().
| const Foam::volScalarField & hs | ( | ) | const [virtual]
|
Sensible enthalpy [J/kg].
Reimplemented in hsPsiThermo< MixtureType >, hsRhoThermo< MixtureType >, hsCombustionThermo, and hsReactionThermo.
Definition at line 308 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
| 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.
| Foam::tmp< Foam::volScalarField > hc | ( | ) | const [virtual]
|
Chemical enthalpy [J/kg].
Reimplemented in hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, hRhoMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.
Definition at line 345 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
Referenced by ODEChemistryModel< CompType, ThermoType >::solve().
| Foam::volScalarField & e | ( | ) | [virtual]
|
Internal energy [J/kg].
Non-const access allowed for transport equations
Reimplemented in ePsiThermo< MixtureType >.
Definition at line 352 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
Referenced by mixedInternalEnergyFvPatchScalarField::updateCoeffs(), gradientInternalEnergyFvPatchScalarField::updateCoeffs(), and fixedInternalEnergyFvPatchScalarField::updateCoeffs().
| 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.
| const Foam::volScalarField & T | ( | ) | const [virtual]
|
Temperature [K].
Definition at line 396 of file basicThermo.C.
Referenced by ODEChemistryModel< CompType, ThermoType >::calculate(), laminarFlameSpeed::New(), ODEChemistryModel< CompType, ThermoType >::solve(), ODEChemistryModel< CompType, ThermoType >::tc(), wallHeatTransferFvPatchScalarField::updateCoeffs(), mixedInternalEnergyFvPatchScalarField::updateCoeffs(), mixedEnthalpyFvPatchScalarField::updateCoeffs(), gradientInternalEnergyFvPatchScalarField::updateCoeffs(), gradientEnthalpyFvPatchScalarField::updateCoeffs(), fixedInternalEnergyFvPatchScalarField::updateCoeffs(), and fixedEnthalpyFvPatchScalarField::updateCoeffs().
| Foam::tmp< Foam::scalarField > Cp | ( | const scalarField & | T, |
| const label | patchi | ||
| ) | const [virtual]
|
Heat capacity at constant pressure for patch [J/kg/K].
Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hsRhoThermo< MixtureType >, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, hRhoMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.
Definition at line 403 of file basicThermo.C.
References notImplemented.
Referenced by turbulentTemperatureCoupledBaffleFvPatchScalarField::K(), radiationModel::Sh(), radiationModel::Shs(), turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), mixedUnburntEnthalpyFvPatchScalarField::updateCoeffs(), gradientUnburntEnthalpyFvPatchScalarField::updateCoeffs(), wallHeatTransferFvPatchScalarField::updateCoeffs(), mixedEnthalpyFvPatchScalarField::updateCoeffs(), and gradientEnthalpyFvPatchScalarField::updateCoeffs().
| Foam::tmp< Foam::volScalarField > Cp | ( | ) | const [virtual]
|
Heat capacity at constant pressure [J/kg/K].
Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hsRhoThermo< MixtureType >, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, hRhoMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.
Definition at line 417 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
| 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 >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, and hsRhoThermo< MixtureType >.
Definition at line 425 of file basicThermo.C.
References notImplemented.
Referenced by mixedInternalEnergyFvPatchScalarField::updateCoeffs(), and gradientInternalEnergyFvPatchScalarField::updateCoeffs().
| Foam::tmp< Foam::volScalarField > Cv | ( | ) | const [virtual]
|
Heat capacity at constant volume [J/kg/K].
Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, and hsRhoThermo< MixtureType >.
Definition at line 439 of file basicThermo.C.
References notImplemented, and GeometricField< scalar, fvPatchField, volMesh >::null().
| 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().
| bool read | ( | ) | [virtual]
|
Read thermophysicalProperties dictionary.
Reimplemented from regIOobject.
Reimplemented in ePsiThermo< MixtureType >, hPsiThermo< MixtureType >, hsPsiThermo< MixtureType >, hRhoThermo< MixtureType >, hsRhoThermo< MixtureType >, hhuMixtureThermo< MixtureType >, hPsiMixtureThermo< MixtureType >, hsPsiMixtureThermo< MixtureType >, hRhoMixtureThermo< MixtureType >, and hsRhoMixtureThermo< MixtureType >.
Definition at line 458 of file basicThermo.C.
References regIOobject::read().
Referenced by hsRhoMixtureThermo< MixtureType >::read(), hRhoMixtureThermo< MixtureType >::read(), hsPsiMixtureThermo< MixtureType >::read(), hPsiMixtureThermo< MixtureType >::read(), hhuMixtureThermo< MixtureType >::read(), hsRhoThermo< MixtureType >::read(), hRhoThermo< MixtureType >::read(), hsPsiThermo< MixtureType >::read(), hPsiThermo< MixtureType >::read(), and ePsiThermo< MixtureType >::read().
volScalarField p_ [protected]
|
Pressure [Pa].
Definition at line 65 of file basicThermo.H.
Referenced by basicPsiThermo::rho(), hhuCombustionThermo::rhob(), and hhuCombustionThermo::rhou().
volScalarField psi_ [protected]
|
Compressibility [s^2/m^2].
Definition at line 68 of file basicThermo.H.
Referenced by ePsiThermo< MixtureType >::ePsiThermo(), hhuMixtureThermo< MixtureType >::hhuMixtureThermo(), hPsiMixtureThermo< MixtureType >::hPsiMixtureThermo(), hPsiThermo< MixtureType >::hPsiThermo(), hsPsiMixtureThermo< MixtureType >::hsPsiMixtureThermo(), and hsPsiThermo< MixtureType >::hsPsiThermo().
volScalarField T_ [protected]
|
Temperature [K].
Definition at line 71 of file basicThermo.H.
Referenced by ePsiThermo< MixtureType >::ePsiThermo(), basicThermo::hBoundaryTypes(), hhuMixtureThermo< MixtureType >::hhuMixtureThermo(), hPsiMixtureThermo< MixtureType >::hPsiMixtureThermo(), hPsiThermo< MixtureType >::hPsiThermo(), hRhoMixtureThermo< MixtureType >::hRhoMixtureThermo(), hRhoThermo< MixtureType >::hRhoThermo(), hsPsiMixtureThermo< MixtureType >::hsPsiMixtureThermo(), hsPsiThermo< MixtureType >::hsPsiThermo(), hsRhoMixtureThermo< MixtureType >::hsRhoMixtureThermo(), and hsRhoThermo< MixtureType >::hsRhoThermo().
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.