54 IOobject::groupName(
"alpha", phaseName),
81 Info<<
"Selecting phaseModel for "
82 << phaseName <<
": " << modelType <<
endl;
84 auto* ctorPtr = multiphaseInterSystemConstructorTable(modelType);
93 *multiphaseInterSystemConstructorTablePtr_
97 return ctorPtr(
fluid, phaseName);
131 return thermo().rho(patchI);
188 return thermo().gamma(
p,
T, patchI);
211 return thermo().CpByCpv();
222 return thermo().CpByCpv(
p,
T, patchI);
235 return thermo().alpha(patchI);
248 return thermo().kappa(patchI);
255 return thermo().alphahe();
262 return thermo().alphahe(patchI);
272 kappaEff.ref().rename(
"kappaEff" + name_);
283 return (
kappa(patchI) + kappat);
315 return thermo().mu(patchi);
328 return thermo().nu(patchi);
const Mesh & mesh() const noexcept
Return const reference to mesh.
tmp< GeometricField< scalar, fvPatchField, volMesh > > T() const
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void correct()
Correct the mixture thermos.
static autoPtr< phaseModel > New(const multiphaseInterSystem &fluid, const word &phaseName)
tmp< volScalarField > Cp() const
Return phase Cp.
virtual void correct()
Correct phase thermo.
phaseModel(const multiphaseInterSystem &fluid, const word &phaseName)
Construct from multiphaseInterSystem and phaseName.
tmp< volScalarField > kappaEff(const volScalarField &) const
Effective thermal diffusivity for temperature of phase [J/m/s/K].
tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
tmp< volScalarField > alphaEff(const volScalarField &alphat) const
Effective thermal diffusivity of phase [kg/m/s].
virtual tmp< volScalarField > mu() const
Return the mixture dymanic viscosity.
virtual tmp< volScalarField > nu() const
Return the mixture kinematic viscosity.
const multiphaseInterSystem & fluid() const
Return the system to which this phase belongs.
tmp< volScalarField > CpByCpv() const
Heat capacity ratio for phase [].
virtual void correctTurbulence()
Correct the turbulence.
tmp< volScalarField > hc() const
Chemical enthalpy for phase [J/kg].
tmp< volScalarField > gamma() const
Gamma = Cp/Cv of phase[].
tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of phase [J/m/s/K].
tmp< volScalarField > rho() const
Return the phase density.
const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
tmp< volScalarField > Cv() const
Return Cv of the phase.
virtual bool read()
Read phase properties dictionary.
tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume for phase [J/kg/K].
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & Cp
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
psiReactionThermo & thermo