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 54 of file StationaryPhaseModel.H.
StationaryPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Definition at line 84 of file StationaryPhaseModel.C.
|
virtual |
Destructor.
Definition at line 97 of file StationaryPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 104 of file StationaryPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 112 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 124 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the velocity.
Definition at line 136 of file StationaryPhaseModel.C.
References Foam::dimVelocity.
|
virtual |
Access the velocity.
Definition at line 144 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the volumetric flux.
Definition at line 156 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVolume.
|
virtual |
Access the volumetric flux.
Definition at line 164 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the volumetric flux of the phase.
Definition at line 176 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVolume.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 184 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the mass flux of the phase.
Definition at line 196 of file StationaryPhaseModel.C.
References Foam::dimMass, and Foam::dimTime.
|
virtual |
Access the mass flux of the phase.
Definition at line 204 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the substantive acceleration.
Definition at line 216 of file StationaryPhaseModel.C.
References Foam::dimTime, and Foam::dimVelocity.
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 224 of file StationaryPhaseModel.C.
References Foam::dimArea, Foam::dimTime, and Foam::dimVelocity.
|
virtual |
Return the continuity error.
Definition at line 232 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the continuity error due to the flow field.
Definition at line 240 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the continuity error due to any sources.
Definition at line 248 of file StationaryPhaseModel.C.
References Foam::dimDensity, and Foam::dimTime.
|
virtual |
Return the phase kinetic energy.
Definition at line 256 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 264 of file StationaryPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 272 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the turbulent dynamic viscosity.
Definition at line 284 of file StationaryPhaseModel.C.
References Foam::dimDynamicViscosity.
|
virtual |
Return the effective dynamic viscosity.
Definition at line 292 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the turbulent kinematic viscosity.
Definition at line 300 of file StationaryPhaseModel.C.
References Foam::dimViscosity.
|
virtual |
Return the effective kinematic viscosity.
Definition at line 308 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the effective thermal conductivity.
Definition at line 316 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 324 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the effective thermal diffusivity.
Definition at line 332 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 340 of file StationaryPhaseModel.C.
References thermo.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 348 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 356 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 29 of file StationaryPhaseModel.C.
References mesh, Foam::name(), timeName, and Foam::Zero.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > zeroVolField | ( | const word & | name, |
const dimensionSet & | dims, | ||
const bool | cache | ||
) | const |
Definition at line 56 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 70 of file StationaryPhaseModel.C.
References Foam::name().