44 const word& phaseName,
45 const bool referencePhase,
56 IOobject::groupName(
"alpha", phaseName),
57 fluid.mesh().time().
name(),
69 IOobject::groupName(
"alpha", phaseName),
70 fluid.mesh().time().
name(),
86 fluid.subDict(phaseName).lookup(
"residualAlpha")
88 alphaMax_(fluid.subDict(phaseName).lookupOrDefault(
"alphaMax", 1.0))
135 return residualAlpha_;
147 return diameterModel_().d();
153 return diameterModel_;
159 diameterModel_->correct();
205 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...
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)
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)
const autoPtr< diameterModel > & dPtr() const
Return const-reference to diameterModel of the phase.
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.
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.
const dimensionSet dimless
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.