35 namespace multiphaseInter
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);
phaseModel(const multiphaseInterSystem &fluid, const word &phaseName)
Construct from multiphaseInterSystem and phaseName.
const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tmp< volScalarField > kappaEff(const volScalarField &) const
Effective thermal diffusivity for temperature of phase [J/m/s/K].
static autoPtr< phaseModel > New(const multiphaseInterSystem &fluid, const word &phaseName)
tmp< volScalarField > alphaEff(const volScalarField &alphat) const
Effective thermal diffusivity of phase [kg/m/s].
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
Dimensionless.
tmp< volScalarField > Cv() const
Return Cv of the phase.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
virtual tmp< volScalarField > mu() const
Return the mixture dymanic viscosity.
psiReactionThermo & thermo
tmp< volScalarField > hc() const
Chemical enthalpy for phase [J/kg].
tmp< volScalarField > gamma() const
Gamma = Cp/Cv of phase[].
A class for handling words, derived from Foam::string.
tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume for phase [J/kg/K].
virtual void correctTurbulence()
Correct the turbulence.
tmp< volScalarField > Cp() const
Return phase Cp.
virtual void correct()
Correct phase thermo.
defineTypeNameAndDebug(interfaceCompositionModel, 0)
const volScalarField & Cp
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
tmp< volScalarField > rho() const
Return the phase density.
const multiphaseInterSystem & fluid() const
Return the system to which this phase belongs.
tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
virtual bool read()
Read phase properties dictionary.
virtual tmp< volScalarField > nu() const
Return the mixture kinematic viscosity.
messageStream Info
Information stream (stdout output on master, null elsewhere)
defineRunTimeSelectionTable(interfaceCompositionModel, dictionary)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
tmp< volScalarField > CpByCpv() const
Heat capacity ratio for phase [].
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of phase [J/m/s/K].
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)