Go to the documentation of this file.
30 #include "phaseSystem.H"
31 #include "diameterModel.H"
47 const word& phaseName,
55 IOobject::groupName(
"alpha", phaseName),
56 fluid.mesh().time().timeName(),
58 IOobject::READ_IF_PRESENT,
72 fluid.subDict(phaseName)
74 alphaMax_(
fluid.subDict(phaseName).getOrDefault<scalar>(
"alphaMax", 1))
121 return residualAlpha_;
133 return diameterModel_().d();
139 return diameterModel_;
145 diameterModel_->correct();
167 return diameterModel_->read(fluid_.subDict(name_));
174 const volScalarField::Boundary& alphaBf = boundaryField();
175 const surfaceScalarField::Boundary& phiBf =
phi()().boundaryField();
177 forAll(alphaPhiBf, patchi)
183 alphaPhip = phiBf[patchi]*alphaBf[patchi];
virtual void correctTurbulence()
Correct the turbulence.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
label index() const
Return the index of the phase.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void correctEnergyTransport()
Correct the energy transport.
const word & keyword() const
Return the name of the phase for use as the keyword in PtrDictionary.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void correct()
Correct the phase properties.
#define forAll(list, i)
Loop across all elements in list.
virtual ~phaseModel()
Destructor.
virtual void correctThermo()
Correct the thermodynamics.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const autoPtr< diameterModel > & dPtr() const
Return const-reference to diameterModel of the phase.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const word & name() const
Return the name of this phase.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void correctInflowOutflow(surfaceScalarField &alphaPhi) const
Ensure that the flux at inflow/outflow BCs is preserved.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
virtual bool read()
Read phase properties dictionary.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
Class to represent a system of phases and model interfacial transfers between them.
autoPtr< phaseModel > clone() const
Return clone.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual bool coupled() const
Return true if this patch field is coupled.
defineTypeNameAndDebug(combustionModel, 0)
virtual void correctKinematics()
Correct the kinematics.
phaseModel(const phaseSystem &fluid, const word &phaseName, const label index)