32template<
class BasePhaseModel>
33template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
35Foam::StationaryPhaseModel<BasePhaseModel>::zeroField
59template<
class BasePhaseModel>
62Foam::StationaryPhaseModel<BasePhaseModel>::zeroVolField
69 return zeroField<Type, fvPatchField, volMesh>(
name, dims, cache);
73template<
class BasePhaseModel>
76Foam::StationaryPhaseModel<BasePhaseModel>::zeroSurfaceField
83 return zeroField<Type, fvsPatchField, surfaceMesh>(
name, dims, cache);
89template<
class BasePhaseModel>
93 const word& phaseName,
97 BasePhaseModel(
fluid, phaseName, index)
103template<
class BasePhaseModel>
110template<
class BasePhaseModel>
117template<
class BasePhaseModel>
122 <<
"Cannot construct a momentum equation for a stationary phase"
129template<
class BasePhaseModel>
134 <<
"Cannot construct a momentum equation for a stationary phase"
141template<
class BasePhaseModel>
145 return zeroVolField<vector>(
"U",
dimVelocity,
true);
149template<
class BasePhaseModel>
154 <<
"Cannot access the velocity of a stationary phase"
161template<
class BasePhaseModel>
169template<
class BasePhaseModel>
174 <<
"Cannot access the flux of a stationary phase"
181template<
class BasePhaseModel>
189template<
class BasePhaseModel>
194 <<
"Cannot access the volumetric flux of a stationary phase"
201template<
class BasePhaseModel>
209template<
class BasePhaseModel>
214 <<
"Cannot access the mass flux of a stationary phase"
221template<
class BasePhaseModel>
229template<
class BasePhaseModel>
237template<
class BasePhaseModel>
245template<
class BasePhaseModel>
253template<
class BasePhaseModel>
261template<
class BasePhaseModel>
269template<
class BasePhaseModel>
277template<
class BasePhaseModel>
284 <<
"Cannot set the dilatation rate of a stationary phase"
289template<
class BasePhaseModel>
297template<
class BasePhaseModel>
301 return this->
thermo().mu();
305template<
class BasePhaseModel>
309 return zeroVolField<scalar>(
"continuityError",
dimViscosity);
313template<
class BasePhaseModel>
317 return this->
thermo().nu();
321template<
class BasePhaseModel>
325 return this->
thermo().kappa();
329template<
class BasePhaseModel>
333 return this->
thermo().kappa(patchi);
337template<
class BasePhaseModel>
341 return this->
thermo().alpha();
345template<
class BasePhaseModel>
349 return this->
thermo().alpha(patchi);
353template<
class BasePhaseModel>
361template<
class BasePhaseModel>
365 return zeroVolField<scalar>(
"pPrime",
dimPressure);
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
static const this_type & null() noexcept
this_type & constCast() const noexcept
Return non-const reference to this field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
virtual tmp< volScalarField > continuityErrorSources() const
Return the continuity error due to any sources.
virtual tmp< fvVectorMatrix > UEqn()
Return the momentum equation.
virtual tmp< surfaceScalarField > DUDtf() const
Return the substantive acceleration on the faces.
virtual tmp< volScalarField > muEff() const
Return the effective dynamic viscosity.
virtual tmp< volScalarField > k() const
Return the turbulent kinetic energy.
StationaryPhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
virtual tmp< volVectorField > U() const
Return the velocity.
virtual tmp< volScalarField > mut() const
Return the turbulent dynamic viscosity.
virtual surfaceScalarField & alphaRhoPhiRef()
Access the mass flux of the phase.
virtual surfaceScalarField & phiRef()
Access the volumetric flux.
virtual tmp< volScalarField > alphaEff() const
Return the effective thermal diffusivity.
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 tmp< volScalarField > continuityErrorFlow() const
Return the continuity error due to the flow field.
virtual tmp< volScalarField > nuEff() const
Return the effective kinematic viscosity.
virtual ~StationaryPhaseModel()
Destructor.
virtual tmp< volScalarField > divU() const
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi)).
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 tmp< volScalarField > nut() const
Return the turbulent kinematic viscosity.
virtual volVectorField & URef()
Access the velocity.
virtual tmp< volVectorField > DUDt() const
Return the substantive acceleration.
virtual tmp< volScalarField > kappaEff() const
Return the effective thermal conductivity.
virtual bool stationary() const
Return whether the phase is stationary.
virtual tmp< volScalarField > continuityError() const
Return the continuity error.
virtual tmp< volScalarField > kappa() const =0
Thermal diffusivity for temperature of mixture [J/m/s/K].
virtual const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic dimensioned Type class.
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
Class to represent a system of phases and model interfacial transfers between them.
virtual tmp< volScalarField > mu() const
Dynamic viscosity of mixture [kg/m/s].
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimPressure
const dimensionSet dimViscosity
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionSet dimDynamicViscosity
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const dimensionSet dimVolume(pow3(dimLength))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
const dimensionSet dimDensity
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
psiReactionThermo & thermo