Class which represents a stationary (and therefore probably solid) phase. Generates, but does not store, zero velocity and flux field and turbulent qauantities. Throws an error when non-const access is requested to the motion fields or when the momentum equation is requested. Usage must must protect against such calls. More...
Public Member Functions | |
StationaryPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index) | |
virtual | ~StationaryPhaseModel () |
Destructor. More... | |
virtual bool | stationary () const |
Return whether the phase is stationary. More... | |
virtual tmp< fvVectorMatrix > | UEqn () |
Return the momentum equation. More... | |
virtual tmp< fvVectorMatrix > | UfEqn () |
Return the momentum equation for the face-based algorithm. More... | |
virtual tmp< volVectorField > | U () const |
Return the velocity. More... | |
virtual volVectorField & | URef () |
Access the velocity. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Return the volumetric flux. More... | |
virtual surfaceScalarField & | phiRef () |
Access the volumetric flux. More... | |
virtual tmp< surfaceScalarField > | alphaPhi () const |
Return the volumetric flux of the phase. More... | |
virtual surfaceScalarField & | alphaPhiRef () |
Access the volumetric flux of the phase. More... | |
virtual tmp< surfaceScalarField > | alphaRhoPhi () const |
Return the mass flux of the phase. More... | |
virtual surfaceScalarField & | alphaRhoPhiRef () |
Access the mass flux of the phase. More... | |
virtual tmp< volVectorField > | DUDt () const |
Return the substantive acceleration. More... | |
virtual tmp< surfaceScalarField > | DUDtf () const |
Return the substantive acceleration on the faces. More... | |
virtual tmp< volScalarField > | continuityError () const |
Return the continuity error. More... | |
virtual tmp< volScalarField > | continuityErrorFlow () const |
Return the continuity error due to the flow field. More... | |
virtual tmp< volScalarField > | continuityErrorSources () const |
Return the continuity error due to any sources. More... | |
virtual tmp< volScalarField > | K () const |
Return the phase kinetic energy. More... | |
virtual tmp< volScalarField > | divU () const |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual void | divU (tmp< volScalarField > divU) |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual tmp< volScalarField > | mut () const |
Return the turbulent dynamic viscosity. More... | |
virtual tmp< volScalarField > | muEff () const |
Return the effective dynamic viscosity. More... | |
virtual tmp< volScalarField > | nut () const |
Return the turbulent kinematic viscosity. More... | |
virtual tmp< volScalarField > | nuEff () const |
Return the effective kinematic viscosity. More... | |
virtual tmp< volScalarField > | kappaEff () const |
Return the effective thermal conductivity. More... | |
virtual tmp< scalarField > | kappaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< volScalarField > | alphaEff () const |
Return the effective thermal diffusivity. More... | |
virtual tmp< scalarField > | alphaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< volScalarField > | k () const |
Return the turbulent kinetic energy. More... | |
virtual tmp< volScalarField > | pPrime () const |
Return the phase-pressure'. More... | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
Foam::tmp< Foam::GeometricField< Type, PatchField, GeoMesh > > | zeroField (const word &name, const dimensionSet &dims, const bool cache) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | zeroVolField (const word &name, const dimensionSet &dims, const bool cache) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > | zeroSurfaceField (const word &name, const dimensionSet &dims, const bool cache) const |
Class which represents a stationary (and therefore probably solid) phase. Generates, but does not store, zero velocity and flux field and turbulent qauantities. Throws an error when non-const access is requested to the motion fields or when the momentum equation is requested. Usage must must protect against such calls.
Definition at line 58 of file StationaryPhaseModel.H.
StationaryPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Definition at line 90 of file StationaryPhaseModel.C.
|
virtual |
Destructor.
Definition at line 104 of file StationaryPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 111 of file StationaryPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 119 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 131 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the velocity.
Definition at line 143 of file StationaryPhaseModel.C.
References Foam::dimVelocity.
|
virtual |
Access the velocity.
Definition at line 151 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< vector, fvPatchField, volMesh >::null().
|
virtual |
Return the volumetric flux.
Definition at line 163 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVolume.
|
virtual |
Access the volumetric flux.
Definition at line 171 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< scalar, fvsPatchField, surfaceMesh >::null().
|
virtual |
Return the volumetric flux of the phase.
Definition at line 183 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVolume.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 191 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< scalar, fvsPatchField, surfaceMesh >::null().
|
virtual |
Return the mass flux of the phase.
Definition at line 203 of file StationaryPhaseModel.C.
References Foam::dimMass, and Foam::dimTime.
|
virtual |
Access the mass flux of the phase.
Definition at line 211 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< scalar, fvsPatchField, surfaceMesh >::null().
|
virtual |
Return the substantive acceleration.
Definition at line 223 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVelocity.
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 231 of file StationaryPhaseModel.C.
References Foam::dimArea, Foam::dimTime, and Foam::dimVelocity.
|
virtual |
Return the continuity error.
Definition at line 239 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the continuity error due to the flow field.
Definition at line 247 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the continuity error due to any sources.
Definition at line 255 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the phase kinetic energy.
Definition at line 263 of file StationaryPhaseModel.C.
References Foam::dimVelocity, and Foam::sqr().
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 271 of file StationaryPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 278 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the turbulent dynamic viscosity.
Definition at line 291 of file StationaryPhaseModel.C.
References Foam::dimDynamicViscosity.
|
virtual |
Return the effective dynamic viscosity.
Definition at line 299 of file StationaryPhaseModel.C.
|
virtual |
Return the turbulent kinematic viscosity.
Definition at line 307 of file StationaryPhaseModel.C.
References Foam::dimViscosity.
|
virtual |
Return the effective kinematic viscosity.
Definition at line 315 of file StationaryPhaseModel.C.
|
virtual |
Return the effective thermal conductivity.
Definition at line 323 of file StationaryPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 331 of file StationaryPhaseModel.C.
|
virtual |
Return the effective thermal diffusivity.
Definition at line 339 of file StationaryPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 347 of file StationaryPhaseModel.C.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 355 of file StationaryPhaseModel.C.
References Foam::dimVelocity, and Foam::sqr().
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 363 of file StationaryPhaseModel.C.
References Foam::dimPressure.
Foam::tmp< Foam::GeometricField< Type, PatchField, GeoMesh > > zeroField | ( | const word & | name, |
const dimensionSet & | dims, | ||
const bool | cache | ||
) | const |
Definition at line 35 of file StationaryPhaseModel.C.
References mesh, Foam::name(), and timeName.
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > zeroVolField | ( | const word & | name, |
const dimensionSet & | dims, | ||
const bool | cache | ||
) | const |
Definition at line 62 of file StationaryPhaseModel.C.
References Foam::name().
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > zeroSurfaceField | ( | const word & | name, |
const dimensionSet & | dims, | ||
const bool | cache | ||
) | const |
Definition at line 76 of file StationaryPhaseModel.C.
References Foam::name().