41 #include "phaseCompressibleTurbulenceModelFwd.H" 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_;
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
label index() const
Return the index of the phase.
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)...
autoPtr< phaseModel > operator()(Istream &is) const
virtual void correctKinematics()
Correct the kinematics.
virtual tmp< volScalarField > kappaEff(const volScalarField &alphat) const =0
Return the effective thermal conductivity.
autoPtr< phaseModel > clone() const
Return clone.
const word & name() const
virtual tmp< volVectorField > DUDt() const =0
Return the substantive acceleration.
tmp< volScalarField > d() const
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
const surfaceScalarField & phi() const
virtual const volScalarField & K() const
Return the phase kinetic energy.
iNew(const volScalarField &p, const volScalarField &T)
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)=0
Return the species fraction equation.
const surfaceScalarField & alphaPhi() const
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual tmp< fvScalarMatrix > heEqn()=0
Return the enthalpy equation.
virtual const phaseCompressibleTurbulenceModel & turbulence() const =0
Return the turbulence model.
const volVectorField & U() const
virtual const tmp< volScalarField > & divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
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 rhoThermo & thermo() const
Return const-access to phase rhoThermo.
const word & keyword() const
virtual bool compressible() const
Return true if the phase is compressible otherwise false.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
void correct()
Correct the laminar viscosity.
virtual const PtrList< volScalarField > & Y() const =0
Constant access the species mass fractions.
const dimensionedScalar & kappa() const
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
const dimensionedScalar & nu() const
Return the laminar viscosity.
virtual tmp< fvVectorMatrix > UEqn()=0
Return the momentum equation.
virtual tmp< surfaceScalarField > alphaRhoPhi() const =0
Constant access the mass flux of the phase.
virtual const surfaceScalarField & DbyA() const
Return the phase diffusivity divided by the momentum coefficient.
Forward declarations of fvMatrix specializations.
ClassName("phaseModel")
Runtime type information.
const dimensionedScalar & rho() const
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...
const phaseSystem & fluid() const
Return the system to which this phase belongs.
Basic thermodynamic properties based on density.
virtual void correctThermo()
Correct the thermodynamics.
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.
declareRunTimeSelectionTable(autoPtr, phaseModel, phaseSystem,(const phaseSystem &fluid, const word &phaseName, const label index),(fluid, phaseName, index))