44 const word& phaseName,
45 const bool referencePhase,
84 IOobject::groupName(
"alpha", phaseName),
85 fluid.mesh().time().
name(),
93 IOobject::groupName(
"alpha", phaseName),
103 IOobject::groupName(
"alpha", phaseName),
104 fluid.mesh().time().
name(),
122 fluid.subDict(phaseName).lookup(
"residualAlpha")
124 alphaMax_(fluid.subDict(phaseName).lookupOrDefault(
"alphaMax", 1.0))
171 return residualAlpha_;
183 return diameterModel_().d();
189 return diameterModel_();
195 diameterModel_->correct();
241 return diameterModel_->read(fluid_.subDict(name_));
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricBoundaryField class.
Generic GeometricField class.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Abstract base-class for dispersed-phase particle diameter models.
static autoPtr< diameterModel > New(const dictionary &diameterProperties, const phaseModel &phase)
Select from dictionary and phase.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual void correctUf()
Correct the face velocity for moving meshes.
virtual void correctKinematics()
Correct the kinematics.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
virtual void correctReactions()
Correct the reactions.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual void correctSpecies()
Correct the species concentrations.
virtual void correctThermo()
Correct the thermodynamics.
virtual void correct()
Correct the phase properties.
virtual ~phaseModel()
Destructor.
virtual void predictThermophysicalTransport()
Predict the energy transport.
virtual void correctMomentumTransport()
Correct the momentumTransport.
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
const diameterModel & diameter() const
Return a reference to the diameterModel of the phase.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
virtual void correctThermophysicalTransport()
Correct the energy transport.
label index() const
Return the index of the phase.
const word & keyword() const
Return the name of the phase for use as the keyword in PtrDictionary.
phaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
autoPtr< phaseModel > clone() const
Return clone.
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
const word & name() const
Return the name of this phase.
virtual void predictMomentumTransport()
Predict the momentumTransport.
virtual void correctContinuityError(const volScalarField &source)
Correct the continuity error.
virtual bool read()
Read phase properties dictionary.
Class to represent a system of phases and model interfacial transfers between them.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
defineTypeNameAndDebug(combustionModel, 0)