30 template<
class BasePhaseModel>
33 const phaseSystem&
fluid,
34 const word& phaseName,
35 const bool referencePhase,
39 BasePhaseModel(fluid, phaseName, referencePhase, index)
45 template<
class BasePhaseModel>
52 template<
class BasePhaseModel>
59 template<
class BasePhaseModel>
64 <<
"Cannot construct a momentum equation for a stationary phase" 67 return tmp<fvVectorMatrix>();
71 template<
class BasePhaseModel>
76 <<
"Cannot construct a momentum equation for a stationary phase" 79 return tmp<fvVectorMatrix>();
83 template<
class BasePhaseModel>
96 template<
class BasePhaseModel>
101 <<
"Cannot access the velocity of a stationary phase" 108 template<
class BasePhaseModel>
121 template<
class BasePhaseModel>
126 <<
"Cannot access the flux of a stationary phase" 133 template<
class BasePhaseModel>
146 template<
class BasePhaseModel>
151 <<
"Cannot access the volumetric flux of a stationary phase" 158 template<
class BasePhaseModel>
171 template<
class BasePhaseModel>
176 <<
"Cannot access the mass flux of a stationary phase" 183 template<
class BasePhaseModel>
196 template<
class BasePhaseModel>
209 template<
class BasePhaseModel>
222 template<
class BasePhaseModel>
235 template<
class BasePhaseModel>
239 return tmp<volScalarField>();
243 template<
class BasePhaseModel>
246 tmp<volScalarField>
divU 250 <<
"Cannot set the dilatation rate of a stationary phase" 255 template<
class BasePhaseModel>
259 return this->
thermo().kappa(patchi);
263 template<
class BasePhaseModel>
276 template<
class BasePhaseModel>
289 template<
class BasePhaseModel>
virtual tmp< surfaceScalarField > alphaPhi() const
Return the volumetric flux of the phase.
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 surfaceScalarField & phiRef()
Access the volumetric flux.
virtual tmp< fvVectorMatrix > UEqn()
Return the momentum equation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual tmp< fvVectorMatrix > UfEqn()
Return the momentum equation for the face-based algorithm.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< vector >> &)
Return a temporary field constructed from name,.
virtual tmp< surfaceScalarField > DUDtf() const
Return the substantive acceleration on the faces.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
rhoReactionThermo & thermo
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual tmp< volScalarField > divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual tmp< volVectorField > U() const
Return the velocity.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimVolume(pow3(dimLength))
virtual tmp< scalarField > kappaEff(const label patchi) const
Return the effective thermal conductivity on a patch.
static word groupName(Name name, const word &group)
virtual tmp< surfaceScalarField > alphaRhoPhi() const
Return the mass flux of the phase.
virtual surfaceScalarField & alphaRhoPhiRef()
Access the mass flux of the phase.
const dimensionSet dimPressure
virtual tmp< volScalarField > k() const
Return the turbulent kinetic energy.
word name(const complex &)
Return a string representation of a complex.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
const dimensionSet dimDensity
static const GeometricField< vector, fvPatchField, volMesh > & null()
Return a null geometric field.
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
StationaryPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual surfaceScalarField & alphaPhiRef()
Access the volumetric flux of the phase.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual volVectorField & URef()
Access the velocity.
virtual tmp< volScalarField > K() const
Return the phase kinetic energy.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
virtual tmp< volScalarField > continuityError() const
Return the continuity error.
virtual ~StationaryPhaseModel()
Destructor.
virtual bool stationary() const
Return whether the phase is stationary.
virtual tmp< volVectorField > DUDt() const
Return the substantive acceleration.
const dimensionSet dimVelocity