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 phaseSystem &fluid, const word &phaseName, const label index) | |
virtual | ~MovingPhaseModel () |
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 tmp< fvVectorMatrix > | UEqn () |
Return the momentum equation. More... | |
virtual const surfaceScalarField & | DbyA () const |
Return the phase diffusivity divided by the momentum coefficient. More... | |
virtual void | DbyA (const tmp< surfaceScalarField > &DbyA) |
Set the phase diffusivity divided by the momentum coefficient. More... | |
virtual tmp< volVectorField > | U () const |
Constant access the velocity. More... | |
virtual volVectorField & | U () |
Access the velocity. More... | |
virtual tmp< volVectorField > | DUDt () const |
Return the substantive acceleration. More... | |
virtual const tmp< volScalarField > & | divU () const |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual void | divU (const tmp< volScalarField > &divU) |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi)) More... | |
virtual tmp< volScalarField > | continuityError () const |
Constant access the continuity error. More... | |
virtual tmp< surfaceScalarField > | phi () const |
Constant access the volumetric flux. More... | |
virtual 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< surfaceScalarField > | alphaRhoPhi () const |
Constant access the mass flux of the phase. More... | |
virtual surfaceScalarField & | alphaRhoPhi () |
Access the mass flux of the phase. More... | |
virtual const phaseCompressibleTurbulenceModel & | turbulence () const |
Return the turbulence model. More... | |
Private Member Functions | |
tmp< surfaceScalarField > | phi (const volVectorField &U) const |
Calculate and return the flux field. More... | |
Private Attributes | |
volVectorField | U_ |
Velocity field. More... | |
surfaceScalarField | phi_ |
Flux. More... | |
surfaceScalarField | alphaPhi_ |
Volumetric flux. More... | |
surfaceScalarField | alphaRhoPhi_ |
Mass flux. More... | |
volVectorField | DUDt_ |
Lagrangian acceleration field (needed for virtual-mass) More... | |
tmp< volScalarField > | divU_ |
Dilatation rate. More... | |
autoPtr< phaseCompressibleTurbulenceModel > | turbulence_ |
Turbulence model. More... | |
volScalarField | continuityError_ |
Continuity error. More... | |
tmp< surfaceScalarField > | DbyA_ |
Phase diffusivity divided by the momentum coefficient. More... | |
Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities.
Possible future extensions include separating the turbulent fuctionality into another layer. It should also be possible to replace this layer with a stationary phase model, in order to model packed beds or simple porous media. This would probably require extra functionality, such as returning the inputs into the general pressure equation (A, HbyA, etc ...).
Note that this class does not return the turbulence model, it just provides indirect access to the turbulent data. This is so a layer without turbulence modelling (such as a stationary model) could be substituted.
Definition at line 61 of file MovingPhaseModel.H.
MovingPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const label | index | ||
) |
|
virtual |
Destructor.
|
private |
Calculate and return the flux field.
|
virtual |
Correct the phase properties other than the thermo and turbulence.
|
virtual |
Correct the kinematics.
|
virtual |
Correct the turbulence.
|
virtual |
Correct the energy transport e.g. alphat.
|
virtual |
Return the momentum equation.
|
virtual |
Return the phase diffusivity divided by the momentum coefficient.
|
virtual |
Set the phase diffusivity divided by the momentum coefficient.
|
virtual |
Constant access the velocity.
|
virtual |
Access the velocity.
|
virtual |
Return the substantive acceleration.
|
virtual |
Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
|
virtual |
Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
|
virtual |
Constant access the continuity error.
|
virtual |
Constant access the volumetric flux.
|
virtual |
Access the volumetric flux.
|
virtual |
Constant access the volumetric flux of the phase.
|
virtual |
Access the volumetric flux of the phase.
|
virtual |
Constant access the mass flux of the phase.
|
virtual |
Access the mass flux of the phase.
|
virtual |
Return the turbulence model.
|
private |
Velocity field.
Definition at line 68 of file MovingPhaseModel.H.
|
private |
Flux.
Definition at line 71 of file MovingPhaseModel.H.
|
private |
Volumetric flux.
Definition at line 74 of file MovingPhaseModel.H.
|
private |
Mass flux.
Definition at line 77 of file MovingPhaseModel.H.
|
private |
Lagrangian acceleration field (needed for virtual-mass)
Definition at line 80 of file MovingPhaseModel.H.
|
private |
Dilatation rate.
Definition at line 83 of file MovingPhaseModel.H.
|
private |
Turbulence model.
Definition at line 86 of file MovingPhaseModel.H.
|
private |
Continuity error.
Definition at line 89 of file MovingPhaseModel.H.
|
private |
Phase diffusivity divided by the momentum coefficient.
Used for implicit treatment of the phase pressure and dispersion
Definition at line 93 of file MovingPhaseModel.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.