63 const phaseSystem& fluid_;
79 autoPtr<diameterModel> diameterModel_;
96 const phaseSystem&
fluid,
97 const word& phaseName,
100 (fluid, phaseName, index)
108 const phaseSystem& fluid,
109 const word& phaseName,
114 autoPtr<phaseModel>
clone()
const;
119 static autoPtr<phaseModel>
New 121 const phaseSystem& fluid,
122 const word& phaseName,
130 const phaseSystem& fluid_;
131 mutable label indexCounter_;
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName, const label index)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual tmp< volScalarField > continuityError() const =0
Constant access the continuity error.
virtual tmp< volScalarField > alpha() const =0
Return the laminar thermal diffusivity for enthalpy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual void correctKinematics()
Correct the kinematics.
virtual tmp< volScalarField > kappaEff(const volScalarField &alphat) const =0
Return the effective thermal conductivity.
virtual tmp< volVectorField > DUDt() const =0
Return the substantive acceleration.
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
iNew(const volScalarField &p, const volScalarField &T)
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)=0
Return the species fraction equation.
autoPtr< phaseModel > clone() const
Return clone.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual tmp< fvScalarMatrix > heEqn()=0
Return the enthalpy equation.
virtual const phaseCompressibleTurbulenceModel & turbulence() const =0
Return the turbulence model.
virtual tmp< volScalarField > alphaEff(const volScalarField &alphat) const =0
Return the effective thermal diffusivity for enthalpy.
virtual ~phaseModel()
Destructor.
virtual tmp< volScalarField > mu() const =0
Return the laminar dynamic viscosity.
virtual bool read()
Read phase properties dictionary.
Class to represent a system of phases and model interfacial transfers between them.
A class for handling words, derived from string.
const dimensionedScalar & rho() const
const word & keyword() const
const dimensionedScalar & nu() const
Return the laminar viscosity.
void correct()
Correct the laminar viscosity.
virtual const PtrList< volScalarField > & Y() const =0
Constant access the species mass fractions.
const volVectorField & U() const
virtual tmp< fvVectorMatrix > UEqn()=0
Return the momentum equation.
tmp< volScalarField > d() const
autoPtr< phaseModel > operator()(Istream &is) const
virtual tmp< surfaceScalarField > alphaRhoPhi() const =0
Constant access the mass flux of the phase.
const word & name() const
virtual const tmp< volScalarField > & divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Forward declarations of fvMatrix specializations.
const rhoThermo & thermo() const
Return const-access to phase rhoThermo.
ClassName("phaseModel")
Runtime type information.
label index() const
Return the index of the phase.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual const surfaceScalarField & DbyA() const
Return the phase diffusivity divided by the momentum coefficient.
Basic thermodynamic properties based on density.
virtual void correctThermo()
Correct the thermodynamics.
const surfaceScalarField & alphaPhi() const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
virtual void correctEnergyTransport()
Correct the energy transport e.g. alphat.
virtual void correctTurbulence()
Correct the turbulence.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
declareRunTimeSelectionTable(autoPtr, phaseModel, phaseSystem,(const phaseSystem &fluid, const word &phaseName, const label index),(fluid, phaseName, index))
virtual bool compressible() const
Return true if the phase is compressible otherwise false.
const surfaceScalarField & phi() const
virtual const volScalarField & K() const
Return the phase kinetic energy.
const dimensionedScalar & kappa() const
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)