44 const word& phaseName,
45 const bool referencePhase,
53 IOobject::groupName(
"alpha", phaseName),
69 fluid.subDict(phaseName).
lookup(
"residualAlpha")
71 alphaMax_(fluid.subDict(phaseName).lookupOrDefault(
"alphaMax", 1.0))
118 return residualAlpha_;
130 return diameterModel_().d();
136 return diameterModel_();
142 return diameterModel_();
148 diameterModel_->correct();
194 return diameterModel_->read();
#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.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionSet dimless
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineRunTimeSelectionTable(fvConstraint, dictionary)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)