Class which represents a stationary (and therefore probably solid) phase. Generates, but does not store, zero velocity and flux field and turbulent quantities. 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 bool referencePhase, 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 const volVectorField & | URef () const |
Access the velocity. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Return the volumetric flux. More... | |
virtual surfaceScalarField & | phiRef () |
Access the volumetric flux. More... | |
virtual const surfaceScalarField & | phiRef () const |
Access the volumetric flux. More... | |
virtual const autoPtr< surfaceVectorField > & | Uf () const |
Return the face velocity. More... | |
virtual surfaceVectorField & | UfRef () |
Access the face velocity. More... | |
virtual const surfaceVectorField & | UfRef () const |
Access the face velocity. 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 const surfaceScalarField & | alphaPhiRef () const |
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 const surfaceScalarField & | alphaRhoPhiRef () const |
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 > | K () const |
Return the phase kinetic energy. More... | |
virtual const autoPtr< 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< scalarField > | kappaEff (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... | |
virtual tmp< fvScalarMatrix > | divq (volScalarField &he) const |
Return the source term for the energy equation. More... | |
Class which represents a stationary (and therefore probably solid) phase. Generates, but does not store, zero velocity and flux field and turbulent quantities. 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 56 of file StationaryPhaseModel.H.
StationaryPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const bool | referencePhase, | ||
const label | index | ||
) |
Definition at line 32 of file StationaryPhaseModel.C.
|
virtual |
Destructor.
Definition at line 47 of file StationaryPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 54 of file StationaryPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 62 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 74 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the velocity.
Definition at line 86 of file StationaryPhaseModel.C.
References Foam::dimVelocity, IOobject::groupName(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::Zero.
|
virtual |
Access the velocity.
Definition at line 99 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the velocity.
Definition at line 111 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the volumetric flux.
Definition at line 123 of file StationaryPhaseModel.C.
References Foam::dimTime, Foam::dimVolume, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Access the volumetric flux.
Definition at line 136 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the volumetric flux.
Definition at line 148 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the face velocity.
Required for moving mesh cases
Definition at line 160 of file StationaryPhaseModel.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 173 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the face velocity.
Required for moving mesh cases
Definition at line 185 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the volumetric flux of the phase.
Definition at line 197 of file StationaryPhaseModel.C.
References Foam::dimTime, Foam::dimVolume, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Access the volumetric flux of the phase.
Definition at line 210 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the volumetric flux of the phase.
Definition at line 222 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the mass flux of the phase.
Definition at line 234 of file StationaryPhaseModel.C.
References Foam::dimMass, Foam::dimTime, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Access the mass flux of the phase.
Definition at line 247 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Access the mass flux of the phase.
Definition at line 259 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and GeometricField< Type, PatchField, GeoMesh >::null().
|
virtual |
Return the substantive acceleration.
Definition at line 271 of file StationaryPhaseModel.C.
References Foam::dimTime, Foam::dimVelocity, IOobject::groupName(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::Zero.
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 284 of file StationaryPhaseModel.C.
References Foam::dimTime, Foam::dimVolume, IOobject::groupName(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::sqr().
|
virtual |
Return the continuity error.
Definition at line 297 of file StationaryPhaseModel.C.
References Foam::dimDensity, Foam::dimTime, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Return the phase kinetic energy.
Definition at line 310 of file StationaryPhaseModel.C.
References Foam::dimVelocity, IOobject::groupName(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::sqr().
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 323 of file StationaryPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 331 of file StationaryPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 344 of file StationaryPhaseModel.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), basicThermo::kappa(), patchi, and thermo.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 352 of file StationaryPhaseModel.C.
References Foam::dimVelocity, IOobject::groupName(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::sqr().
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 365 of file StationaryPhaseModel.C.
References Foam::dimPressure, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Return the source term for the energy equation.
Definition at line 378 of file StationaryPhaseModel.C.
References alpha(), he(), Foam::fvc::interpolate(), Foam::fvc::laplacian(), Foam::fvm::laplacianCorrection(), IOobject::name(), Foam::T(), and thermo.