31 template<
class BasePhaseModel>
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index)
46 template<
class BasePhaseModel>
53 template<
class BasePhaseModel>
60 template<
class BasePhaseModel>
65 <<
"Cannot construct a momentum equation for a stationary phase"
72 template<
class BasePhaseModel>
77 <<
"Cannot construct a momentum equation for a stationary phase"
84 template<
class BasePhaseModel>
97 template<
class BasePhaseModel>
102 <<
"Cannot access the velocity of a stationary phase"
109 template<
class BasePhaseModel>
114 <<
"Cannot access the velocity of a stationary phase"
121 template<
class BasePhaseModel>
134 template<
class BasePhaseModel>
139 <<
"Cannot access the flux of a stationary phase"
146 template<
class BasePhaseModel>
151 <<
"Cannot access the flux of a stationary phase"
158 template<
class BasePhaseModel>
163 <<
"Cannot access the face velocity of a stationary phase"
171 template<
class BasePhaseModel>
176 <<
"Cannot access the face velocity of a stationary phase"
183 template<
class BasePhaseModel>
188 <<
"Cannot access the face velocity of a stationary phase"
195 template<
class BasePhaseModel>
208 template<
class BasePhaseModel>
213 <<
"Cannot access the volumetric flux of a stationary phase"
220 template<
class BasePhaseModel>
225 <<
"Cannot access the volumetric flux of a stationary phase"
232 template<
class BasePhaseModel>
245 template<
class BasePhaseModel>
250 <<
"Cannot access the mass flux of a stationary phase"
257 template<
class BasePhaseModel>
262 <<
"Cannot access the mass flux of a stationary phase"
269 template<
class BasePhaseModel>
282 template<
class BasePhaseModel>
295 template<
class BasePhaseModel>
308 template<
class BasePhaseModel>
321 template<
class BasePhaseModel>
330 template<
class BasePhaseModel>
337 <<
"Cannot set the dilatation rate of a stationary phase"
342 template<
class BasePhaseModel>
350 template<
class BasePhaseModel>
363 template<
class BasePhaseModel>
376 template<
class BasePhaseModel>
384 alpha.
name() +
'*' + this->thermo().kappa().name(),
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &)
Return a temporary field constructed from name,.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
const word & name() const
Return name.
static word groupName(Name name, const word &group)
virtual tmp< fvVectorMatrix > UEqn()
Return the momentum equation.
virtual tmp< surfaceScalarField > DUDtf() const
Return the substantive acceleration on the faces.
virtual tmp< volScalarField > k() const
Return the turbulent kinetic energy.
virtual tmp< volVectorField > U() const
Return the velocity.
virtual surfaceScalarField & alphaRhoPhiRef()
Access the mass flux of the phase.
virtual const autoPtr< volScalarField > & divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual surfaceScalarField & phiRef()
Access the volumetric flux.
virtual tmp< surfaceScalarField > alphaPhi() const
Return the volumetric flux of the phase.
virtual tmp< volScalarField > K() const
Return the phase kinetic energy.
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
virtual const autoPtr< surfaceVectorField > & Uf() const
Return the face velocity.
virtual surfaceVectorField & UfRef()
Access the face velocity.
virtual ~StationaryPhaseModel()
Destructor.
StationaryPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
virtual surfaceScalarField & alphaPhiRef()
Access the volumetric flux of the phase.
virtual tmp< surfaceScalarField > alphaRhoPhi() const
Return the mass flux of the phase.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux.
virtual tmp< fvVectorMatrix > UfEqn()
Return the momentum equation for the face-based algorithm.
virtual volVectorField & URef()
Access the velocity.
virtual tmp< volVectorField > DUDt() const
Return the substantive acceleration.
virtual bool stationary() const
Return whether the phase is stationary.
virtual tmp< volScalarField > continuityError() const
Return the continuity error.
virtual tmp< scalarField > kappaEff(const label patchi) const
Return the effective thermal conductivity on a patch.
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual const volScalarField & kappa() const =0
Thermal conductivity of mixture [W/m/K].
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 FatalErrorInFunction
Report an error message using Foam::FatalError.
Calculate the laplacian of the given field.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > laplacianCorrection(const VolField< scalar > &gamma, const VolField< Type > &vf)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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 dimPressure
dimensionedSymmTensor sqr(const dimensionedVector &dv)
errorManip< error > abort(error &err)
const dimensionSet dimTime
const dimensionSet dimDensity
const dimensionSet dimVolume
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const dimensionSet dimMass
const dimensionSet dimVelocity
word name(const complex &)
Return a string representation of a complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fluidMulticomponentThermo & thermo