26 #include "phaseModel.H" 43 const phaseSystem& fluid,
44 const word& phaseName,
45 const bool referencePhase,
56 IOobject::groupName(
"alpha", phaseName),
69 IOobject::groupName(
"alpha", phaseName),
86 fluid.subDict(phaseName).
lookup(
"residualAlpha")
88 alphaMax_(fluid.subDict(phaseName).lookupOrDefault(
"alphaMax", 1.0))
97 return autoPtr<phaseModel>(
nullptr);
135 return residualAlpha_;
147 return diameterModel_().d();
153 return diameterModel_;
159 diameterModel_->correct();
197 return diameterModel_->read(fluid_.subDict(name_));
203 surfaceScalarField::Boundary& alphaPhiBf = alphaPhi.boundaryFieldRef();
204 const volScalarField::Boundary& alphaBf = boundaryField();
205 const surfaceScalarField::Boundary& phiBf =
phi()().boundaryField();
211 if (!alphaPhip.coupled())
fvsPatchField< scalar > fvsPatchScalarField
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
label index() const
Return the index of the phase.
#define forAll(list, i)
Loop across all elements in list.
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 surfaceScalarField & phi() const
Return the volumetric flux.
virtual void correctKinematics()
Correct the kinematics.
autoPtr< phaseModel > clone() const
Return clone.
const word & name() const
const dimensionSet dimless
static autoPtr< diameterModel > New(const dictionary &diameterProperties, const phaseModel &phase)
Select from dictionary and phase.
Generic dimensioned Type class.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
virtual void correctSpecies()
Correct the species concentrations.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual ~phaseModel()
Destructor.
stressControl lookup("compactNormalStress") >> compactNormalStress
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.
virtual void correctUf()
Correct the face velocity for moving meshes.
const word & keyword() const
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
fvModels source(alpha1, mixture.thermo1().rho())
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
const autoPtr< diameterModel > & dPtr() const
Return const-reference to diameterModel of the phase.
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...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void correctEnergyTransport()
Correct the energy transport.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void correctTurbulence()
Correct the turbulence.
virtual void correctReactions()
Correct the reactions.
virtual void correctContinuityError(const volScalarField &source)
Correct the continuity error.