Go to the documentation of this file.
26 #include "phaseModel.H"
28 #include "diameterModel.H"
43 const phaseSystem&
fluid,
44 const word& phaseName,
52 IOobject::groupName(
"alpha", phaseName),
55 IOobject::READ_IF_PRESENT,
71 alphaMax_(
fluid.subDict(phaseName).lookupOrDefault(
"alphaMax", 1.0))
80 return autoPtr<phaseModel>(NULL);
118 return residualAlpha_;
130 return diameterModel_().d();
136 diameterModel_->correct();
158 return diameterModel_->read(fluid_.subDict(name_));
171 static tmp<Foam::volScalarField> divU_(NULL);
179 <<
"Attempt to set the dilatation rate of an incompressible phase"
200 <<
"Attempt to set the dilatation rate of an incompressible phase"
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for handling words, derived from string.
virtual const tmp< volScalarField > & divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
A class for managing temporary objects.
virtual ~phaseModel()
Destructor.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual bool read()
Read phase properties dictionary.
virtual const volScalarField & K() const
Return the phase kinetic energy.
virtual void correctTurbulence()
Correct the turbulence.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar alphaMax() const
Return the maximum phase-fraction (e.g. packing limit)
label index() const
Return the index of the phase.
tmp< volScalarField > d() const
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void correctKinematics()
Correct the kinematics.
phaseModel(const word &phaseName, const volScalarField &p, const volScalarField &T)
Construct from components.
virtual const surfaceScalarField & DbyA() const
Return the phase diffusivity divided by the momentum coefficient.
autoPtr< phaseModel > clone() const
Return clone.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
virtual void correctThermo()
Correct the thermodynamics.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const word & name() const
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Generic dimensioned Type class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word & keyword() const
volScalarField divU(fvc::div(fvc::absolute(phi, U)))
virtual void correctEnergyTransport()
Correct the energy transport e.g. alphat.
virtual bool compressible() const
Return true if the phase is compressible otherwise false.
static autoPtr< diameterModel > New(const dictionary &dict, const phaseModel &phase)
Class to represent a system of phases and model interfacial transfers between them.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
stressControl lookup("compactNormalStress") >> compactNormalStress