Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities. More...
Public Member Functions | |
MovingPhaseModel (const multiphaseInterSystem &fluid, const word &phaseName) | |
virtual | ~MovingPhaseModel ()=default |
Destructor. More... | |
virtual void | correct () |
Correct the phase properties other than the thermo and turbulence. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Constant access the volumetric flux. More... | |
virtual const surfaceScalarField & | phi () |
Access the volumetric flux. More... | |
virtual tmp< surfaceScalarField > | alphaPhi () const |
Constant access the volumetric flux of the phase. More... | |
virtual surfaceScalarField & | alphaPhi () |
Access the volumetric flux of the phase. More... | |
virtual tmp< volVectorField > | U () const |
Access const reference to U. More... | |
virtual tmp< surfaceScalarField > | diffNo () const |
Diffusion number. More... | |
MovingPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index) | |
Construct from phase system and phase name. More... | |
virtual | ~MovingPhaseModel ()=default |
Destructor. More... | |
virtual void | correct () |
Correct the phase properties other than the thermo and turbulence. More... | |
virtual void | correctKinematics () |
Correct the kinematics. More... | |
virtual void | correctTurbulence () |
Correct the turbulence. More... | |
virtual void | correctEnergyTransport () |
Correct the energy transport e.g. alphat. 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... | |
Protected Attributes | |
volVectorField | U_ |
Velocity field. More... | |
surfaceScalarField | phi_ |
Flux. More... | |
surfaceScalarField | alphaRhoPhi_ |
Mass flux. More... | |
tmp< volVectorField > | DUDt_ |
Lagrangian acceleration field (needed for virtual-mass) More... | |
tmp< surfaceScalarField > | DUDtf_ |
Lagrangian acceleration field on the faces (needed for virtual-mass) More... | |
tmp< volScalarField > | divU_ |
Dilatation rate. More... | |
autoPtr< phaseCompressibleTurbulenceModel > | turbulence_ |
Turbulence model. More... | |
volScalarField | continuityErrorFlow_ |
Continuity error due to the flow. More... | |
volScalarField | continuityErrorSources_ |
Continuity error due to any sources. More... | |
tmp< volScalarField > | K_ |
Kinetic Energy. More... | |
Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities.
Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model and can generate the momentum equation. The interface is quite restrictive as it also has to support an equivalent stationary model, which does not store motion fields or a turbulence model.
Possible future extensions include separating the turbulent fuctionality into another layer.
Possible future extensions include separating the turbulent fuctionality into another layer.
Definition at line 51 of file MovingPhaseModel.H.
MovingPhaseModel | ( | const multiphaseInterSystem & | fluid, |
const word & | phaseName | ||
) |
Definition at line 41 of file MovingPhaseModel.C.
|
virtualdefault |
Destructor.
MovingPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
Construct from phase system and phase name.
Definition at line 99 of file MovingPhaseModel.C.
|
virtualdefault |
Destructor.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
Definition at line 70 of file MovingPhaseModel.C.
References correct.
|
virtual |
Constant access the volumetric flux.
Definition at line 78 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux.
Definition at line 86 of file MovingPhaseModel.C.
|
virtual |
Constant access the volumetric flux of the phase.
Definition at line 94 of file MovingPhaseModel.C.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 102 of file MovingPhaseModel.C.
|
virtual |
Access const reference to U.
Definition at line 110 of file MovingPhaseModel.C.
|
virtual |
Diffusion number.
Definition at line 118 of file MovingPhaseModel.C.
References Foam::dimless, Foam::name(), Foam::New(), and Foam::Zero.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
|
virtual |
Correct the kinematics.
Definition at line 205 of file MovingPhaseModel.C.
References Foam::magSqr(), and U.
|
virtual |
Correct the turbulence.
Definition at line 229 of file MovingPhaseModel.C.
References correctTurbulence().
|
virtual |
Correct the energy transport e.g. alphat.
Definition at line 238 of file MovingPhaseModel.C.
|
virtual |
Return whether the phase is stationary.
Definition at line 247 of file MovingPhaseModel.C.
|
virtual |
Return the momentum equation.
Definition at line 255 of file MovingPhaseModel.C.
References Foam::constant::atomic::alpha, Foam::fac::ddt(), Foam::fvc::DDt(), Foam::fac::div(), fluid, MRF, rho, Foam::fam::SuSp(), thermo, and trho.
|
virtual |
Return the momentum equation for the face-based algorithm.
Definition at line 274 of file MovingPhaseModel.C.
References Foam::constant::atomic::alpha, Foam::fvc::DDt(), Foam::fac::div(), fluid, MRF, rho, Sp, Foam::fam::SuSp(), and thermo.
|
virtual |
Return the velocity.
|
virtual |
Access the velocity.
Definition at line 301 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux.
|
virtual |
Access the volumetric flux.
Definition at line 317 of file MovingPhaseModel.C.
|
virtual |
Return the volumetric flux of the phase.
|
virtual |
Access the volumetric flux of the phase.
Definition at line 333 of file MovingPhaseModel.C.
|
virtual |
Return the mass flux of the phase.
Definition at line 341 of file MovingPhaseModel.C.
|
virtual |
Access the mass flux of the phase.
Definition at line 349 of file MovingPhaseModel.C.
|
virtual |
Return the substantive acceleration.
Definition at line 357 of file MovingPhaseModel.C.
References Foam::fac::ddt(), and Foam::fac::div().
|
virtual |
Return the substantive acceleration on the faces.
Definition at line 370 of file MovingPhaseModel.C.
References Foam::byDt().
|
virtual |
Return the continuity error.
Definition at line 383 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to the flow field.
Definition at line 391 of file MovingPhaseModel.C.
|
virtual |
Return the continuity error due to any sources.
Definition at line 399 of file MovingPhaseModel.C.
|
virtual |
Return the phase kinetic energy.
Definition at line 407 of file MovingPhaseModel.C.
References Foam::magSqr(), Foam::name(), Foam::New(), and U.
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 424 of file MovingPhaseModel.C.
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
Definition at line 431 of file MovingPhaseModel.C.
References divU.
|
virtual |
Return the turbulent dynamic viscosity.
Definition at line 439 of file MovingPhaseModel.C.
|
virtual |
Return the effective dynamic viscosity.
Definition at line 447 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinematic viscosity.
Definition at line 455 of file MovingPhaseModel.C.
|
virtual |
Return the effective kinematic viscosity.
Definition at line 463 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity.
Definition at line 471 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 479 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal diffusivity.
Definition at line 487 of file MovingPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 495 of file MovingPhaseModel.C.
|
virtual |
Return the turbulent kinetic energy.
Definition at line 503 of file MovingPhaseModel.C.
|
virtual |
Return the phase-pressure'.
(derivative of phase-pressure w.r.t. phase-fraction)
Definition at line 511 of file MovingPhaseModel.C.
|
protected |
Velocity field.
Definition at line 69 of file MovingPhaseModel.H.
|
protected |
Flux.
Definition at line 74 of file MovingPhaseModel.H.
|
protected |
Mass flux.
Definition at line 84 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field (needed for virtual-mass)
Definition at line 89 of file MovingPhaseModel.H.
|
mutableprotected |
Lagrangian acceleration field on the faces (needed for virtual-mass)
Definition at line 94 of file MovingPhaseModel.H.
|
protected |
Dilatation rate.
Definition at line 99 of file MovingPhaseModel.H.
|
protected |
Turbulence model.
Definition at line 104 of file MovingPhaseModel.H.
|
protected |
Continuity error due to the flow.
Definition at line 109 of file MovingPhaseModel.H.
|
protected |
Continuity error due to any sources.
Definition at line 114 of file MovingPhaseModel.H.
|
mutableprotected |
Kinetic Energy.
Definition at line 119 of file MovingPhaseModel.H.