Go to the documentation of this file.
71 static const wordList componentHeader4;
74 static const wordList componentHeader7;
80 static word makeThermoName
90 const word& fieldName,
96 template<
class Thermo,
class ThermoConstructTable>
97 static typename ThermoConstructTable::mapped_type
101 ThermoConstructTable& thermoTable,
102 const word& thermoTypeName,
108 template<
class Thermo,
class ThermoConstructTable>
109 static typename ThermoConstructTable::mapped_type
113 ThermoConstructTable& thermoTable
194 const word& phaseName
202 const word& phaseName
210 const word& phaseName,
211 const word& dictionaryName
218 template<
class Thermo>
226 template<
class Thermo>
235 template<
class Thermo>
239 const word& phaseName,
262 const word& phaseName
328 const int nExpectedCmpts
346 bool dpdt() const noexcept
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
wordList heBoundaryTypes()
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > W() const =0
Molecular weight [kg/kmol].
virtual ~basicThermo()
Destructor.
virtual volScalarField & p()
Pressure [Pa].
A class for managing temporary objects.
virtual tmp< volScalarField > Cp() const =0
Heat capacity at constant pressure [J/kg/K].
static const word dictName
virtual bool read()
Read thermophysical properties dictionary.
word phasePropertyName(const word &name) const
volScalarField alpha_
Laminar thermal diffusivity [kg/m/s].
bool dpdt() const noexcept
True if dpdt term should be included in enthalpy equation.
bool TOwner_
Temperature created and stored by this instance.
Abstract base-class for fluid and solid thermodynamic properties.
virtual tmp< volScalarField > gamma() const =0
Gamma = Cp/Cv [].
const word & name() const
virtual tmp< volScalarField > kappaEff(const volScalarField &) const =0
Effective thermal diffusivity for temperature.
virtual bool isochoric() const =0
Return true if the equation of state is isochoric.
static const basicThermo & lookupThermo(const fvPatchScalarField &pf)
virtual tmp< volScalarField > hc() const =0
Chemical enthalpy [J/kg].
bool dpdt_
Include dpdt term in the enthalpy equation?
virtual tmp< scalarField > THE(const scalarField &h, const scalarField &p, const scalarField &T0, const labelList &cells) const =0
Temperature from enthalpy/internal energy for cell-set.
virtual tmp< volScalarField > rho() const =0
Density [kg/m^3].
wordList heBoundaryBaseTypes()
virtual tmp< volScalarField > alphaEff(const volScalarField &alphat) const =0
Effective thermal diffusivity of mixture [kg/m/s].
declareRunTimeSelectionTable(autoPtr, basicThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection table.
virtual void correct()=0
Update properties.
static word phasePropertyName(const word &name, const word &phaseName)
const dimensionedScalar h
Planck constant.
virtual word thermoName() const =0
Return the name of the thermo physics.
virtual tmp< volScalarField > alphahe() const =0
Thermal diffusivity for energy of mixture [kg/m/s].
static Ostream & printThermoNames(Ostream &os, const wordList &cmptNames, const wordList &thermoNames)
Print (filtered) table of thermo names, splits on " ,<>".
bool pOwner_
Pressure created and stored by this instance.
virtual tmp< volScalarField > kappa() const =0
Thermal diffusivity for temperature of mixture [J/m/s/K].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static autoPtr< Thermo > New(const fvMesh &, const word &phaseName=word::null)
Generic New for each of the related thermodynamics packages.
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< volScalarField > CpByCpv() const =0
Heat capacity ratio [].
Mesh data needed to do the Finite Volume discretisation.
void validate(const string &app, const word &) const
Check that the thermodynamics package is consistent.
volScalarField & T_
Temperature [K].
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
const dictionary & thermoDict
volScalarField & p_
Pressure [Pa].
virtual const volScalarField & T() const
Temperature [K].
virtual tmp< volScalarField > Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
static const word null
An empty word.
bool updateT() const noexcept
True if T should be updated.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & phaseName_
Phase-name.
virtual tmp< volScalarField > Cv() const =0
Heat capacity at constant volume [J/kg/K].
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
static wordList splitThermoName(const std::string &thermoName, const int nExpectedCmpts)
Split thermo package name into a list of components names.
virtual tmp< scalarField > rhoEoS(const scalarField &p, const scalarField &T, const labelList &cells) const =0
Density from pressure and temperature from EoS.
basicThermo(const basicThermo &)=delete
No copy construct.
TypeName("basicThermo")
Runtime type information.
virtual bool incompressible() const =0
Return true if the equation of state is incompressible.
word dictName() const
The local dictionary name (final part of scoped name)