Go to the documentation of this file.
29 #include "phaseSystem.H"
51 IOobject::groupName(
"alpha", phaseName),
52 fluid.mesh().time().timeName(),
54 IOobject::READ_IF_PRESENT,
78 Info<<
"Selecting phaseModel for "
79 << phaseName <<
": " << modelType <<
endl;
81 auto* ctorPtr = phaseSystemConstructorTable(modelType);
90 *phaseSystemConstructorTablePtr_
94 return ctorPtr(
fluid, phaseName);
263 kappaEff.ref().rename(
"kappaEff" + name_);
274 return (
kappa(patchI) + kappat);
virtual tmp< volScalarField > mu() const
Return the mixture dymanic viscosity.
virtual void correctTurbulence()
Correct the turbulence.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tmp< volScalarField > Cv() const
Return Cv of the phase.
A class for handling words, derived from Foam::string.
const dimensionedScalar & kappa() const
A class for managing temporary objects.
virtual tmp< volScalarField > kappaEff() const =0
Effective thermal turbulent diffusivity for temperature.
static constexpr const zero Zero
Global zero (0)
virtual tmp< volScalarField > Cp() const =0
Heat capacity at constant pressure [J/kg/K].
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
psiReactionThermo & thermo
void correct()
Correct the phase properties.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual tmp< volScalarField > gamma() const =0
Gamma = Cp/Cv [].
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
virtual tmp< volScalarField > hc() const =0
Chemical enthalpy [J/kg].
virtual tmp< volScalarField > rho() const
Density [kg/m^3] - uses current value of pressure.
const dimensionedScalar & Cp() const
phaseModel(const word &phaseName, const dictionary &phaseDict, const fvMesh &mesh)
tmp< volScalarField > CpByCpv() const
Heat capacity ratio for phase [].
virtual void correct()=0
Update properties.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual tmp< volScalarField > alphahe() const =0
Thermal diffusivity for energy of mixture [kg/m/s].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume for phase [J/kg/K].
const dimensionedScalar & nu() const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
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,...
virtual tmp< volScalarField > CpByCpv() const =0
Heat capacity ratio [].
tmp< volScalarField > gamma() const
Gamma = Cp/Cv of phase[].
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual tmp< volScalarField > mu() const
Dynamic viscosity of mixture [kg/m/s].
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
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 volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
virtual bool read()
Read phase properties dictionary.
virtual tmp< volScalarField > Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
tmp< volScalarField > hc() const
Chemical enthalpy for phase [J/kg].
const volScalarField & Cp
const phaseSystem & fluid() const
Return the system to which this phase belongs.
virtual tmp< volScalarField > alphaEff() const =0
Effective thermal turbulent diffusivity of mixture [kg/m/s].
tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
Class to represent a system of phases and model interfacial transfers between them.
const dimensionedScalar & rho() const
virtual tmp< volScalarField > Cv() const =0
Heat capacity at constant volume [J/kg/K].
defineTypeNameAndDebug(combustionModel, 0)
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName)
const dimensionSet dimless
Dimensionless.