Go to the documentation of this file.
43 #include "phaseCompressibleTurbulenceModelFwd.H"
66 const phaseSystem& fluid_;
82 autoPtr<diameterModel> diameterModel_;
99 const phaseSystem&
fluid,
100 const word& phaseName,
111 const phaseSystem&
fluid,
112 const word& phaseName,
117 autoPtr<phaseModel>
clone()
const;
122 static autoPtr<phaseModel>
New
124 const phaseSystem&
fluid,
125 const word& phaseName,
133 const phaseSystem& fluid_;
134 mutable label indexCounter_;
244 virtual bool pure()
const = 0;
virtual tmp< volScalarField > mu() const
Return the mixture dymanic viscosity.
virtual tmp< surfaceScalarField > DUDtf() const =0
Return the substantive acceleration on the faces.
virtual void correctTurbulence()
Correct the turbulence.
virtual bool compressible() const =0
Return true if the phase is compressible otherwise false.
label index() const
Return the index of the phase.
virtual tmp< fvScalarMatrix > heEqn()=0
Return the enthalpy equation.
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > k() const =0
Return the turbulent kinetic energy.
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)=0
Return the species fraction equation.
const dimensionedScalar & kappa() const
A class for managing temporary objects.
virtual tmp< volScalarField > kappaEff() const =0
Effective thermal turbulent diffusivity for temperature.
tmp< volScalarField > d() const
const surfaceScalarField & alphaPhi() const
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
virtual void correctEnergyTransport()
Correct the energy transport.
const word & keyword() const
virtual tmp< volScalarField > continuityErrorFlow() const =0
Return the continuity error due to the flow field.
void correct()
Correct the phase properties.
Forward declarations of fvMatrix specializations.
virtual const rhoThermo & thermo() const =0
Access const to phase thermo.
virtual tmp< fvVectorMatrix > UEqn()=0
Return the momentum equation.
virtual volVectorField & URef()=0
Access the velocity.
virtual const PtrList< volScalarField > & Y() const =0
Constant access the species mass fractions.
virtual tmp< volScalarField > divU() const =0
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
declareRunTimeSelectionTable(autoPtr, phaseModel, phaseSystem,(const phaseSystem &fluid, const word &phaseName),(fluid, phaseName))
virtual ~phaseModel()
Destructor.
virtual rhoThermo & thermoRef()=0
Access the thermophysical model.
virtual void correctThermo()
Correct the thermodynamics.
Basic thermodynamic properties based on density.
phaseModel(const word &phaseName, const dictionary &phaseDict, const fvMesh &mesh)
virtual tmp< surfaceScalarField > alphaRhoPhi() const =0
Return the mass flux of the phase.
virtual tmp< volScalarField > continuityErrorSources() const =0
Return the continuity error due to any sources.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual tmp< volScalarField > nuEff() const =0
Return the effective kinematic viscosity.
autoPtr< phaseModel > operator()(Istream &is) const
ClassName("phaseModel")
Runtime type information.
const dimensionedScalar & nu() const
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual bool isothermal() const =0
Return whether the phase is isothermal.
virtual PtrList< volScalarField > & YRef()=0
Access the species mass fractions.
virtual const UPtrList< volScalarField > & YActive() const =0
Return the active species mass fractions.
const autoPtr< diameterModel > & dPtr() const
Return const-reference to diameterModel of the phase.
const surfaceScalarField & phi() const
const word & name() const
virtual tmp< volScalarField > mut() const =0
Return the turbulent dynamic viscosity.
virtual surfaceScalarField & phiRef()=0
Access the volumetric flux.
const volVectorField & U() const
virtual tmp< fvVectorMatrix > UfEqn()=0
Return the momentum equation for the face-based algorithm.
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
Macros to ease declaration of run-time selection tables.
virtual surfaceScalarField & alphaRhoPhiRef()=0
Access the mass flux of the phase.
virtual bool read()
Read phase properties dictionary.
virtual tmp< volScalarField > continuityError() const =0
Return the continuity error.
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].
virtual bool pure() const =0
Return whether the phase is pure (i.e., not multi-component)
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 surfaceScalarField & alphaPhiRef()=0
Access the volumetric flux of the phase.
virtual tmp< volScalarField > K() const =0
Return the phase kinetic energy.
virtual tmp< volScalarField > pPrime() const =0
Return the phase-pressure'.
autoPtr< phaseModel > clone() const
Return clone.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual tmp< volScalarField > muEff() const =0
Return the effective dynamic viscosity.
virtual UPtrList< volScalarField > & YActiveRef()=0
Access the active species mass fractions.
virtual bool stationary() const =0
Return whether the phase is stationary.
virtual void correctKinematics()
Correct the kinematics.
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName)
virtual tmp< volVectorField > DUDt() const =0
Return the substantive acceleration.
virtual tmp< volScalarField > nut() const =0
Return the turbulent kinematic viscosity.