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>
138 <<
"Cannot access the face velocity of a stationary phase" 141 return tmp<Foam::surfaceVectorField>();
145 template<
class BasePhaseModel>
150 <<
"Cannot access the face velocity of a stationary phase" 157 template<
class BasePhaseModel>
170 template<
class BasePhaseModel>
175 <<
"Cannot access the volumetric flux of a stationary phase" 182 template<
class BasePhaseModel>
195 template<
class BasePhaseModel>
200 <<
"Cannot access the mass flux of a stationary phase" 207 template<
class BasePhaseModel>
220 template<
class BasePhaseModel>
233 template<
class BasePhaseModel>
246 template<
class BasePhaseModel>
259 template<
class BasePhaseModel>
263 return tmp<volScalarField>();
267 template<
class BasePhaseModel>
270 tmp<volScalarField>
divU 274 <<
"Cannot set the dilatation rate of a stationary phase" 279 template<
class BasePhaseModel>
283 return this->
thermo().kappa(patchi);
287 template<
class BasePhaseModel>
300 template<
class BasePhaseModel>
313 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.
fluidReactionThermo & thermo
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)
const dimensionSet dimPressure
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< vector >> &)
Return a temporary field constructed from name,.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
virtual tmp< surfaceScalarField > DUDtf() const
Return the substantive acceleration on the faces.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
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 dimTime
virtual tmp< scalarField > kappaEff(const label patchi) const
Return the effective thermal conductivity on a patch.
virtual tmp< surfaceVectorField > Uf() const
Return the face velocity.
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 dimDensity
errorManip< error > abort(error &err)
const dimensionSet dimVelocity
virtual tmp< volScalarField > k() const
Return the turbulent kinetic energy.
tmp< volScalarField > divU
const dimensionSet dimMass
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.
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.
virtual volVectorField & URef()
Access the velocity.
const dimensionSet dimVolume
virtual tmp< volScalarField > K() const
Return the phase kinetic energy.
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 surfaceVectorField & UfRef()
Access the face velocity.
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.