Public Member Functions | Private Member Functions | Private Attributes
MovingPhaseModel< BasePhaseModel > Class Template Reference

Class which represents a moving fluid phase. Holds the velocity, fluxes and turbulence model. Provides access to the turbulent quantities. More...

Inheritance diagram for MovingPhaseModel< BasePhaseModel >:
Inheritance graph
[legend]
Collaboration diagram for MovingPhaseModel< BasePhaseModel >:
Collaboration graph
[legend]

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< fvVectorMatrixUEqn ()
 Return the momentum equation. More...
 
virtual const surfaceScalarFieldDbyA () 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< volVectorFieldU () const
 Constant access the velocity. More...
 
virtual volVectorFieldU ()
 Access the velocity. More...
 
virtual tmp< volVectorFieldDUDt () 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< volScalarFieldcontinuityError () const
 Constant access the continuity error. More...
 
virtual tmp< surfaceScalarFieldphi () const
 Constant access the volumetric flux. More...
 
virtual surfaceScalarFieldphi ()
 Access the volumetric flux. More...
 
virtual tmp< surfaceScalarFieldalphaPhi () const
 Constant access the volumetric flux of the phase. More...
 
virtual surfaceScalarFieldalphaPhi ()
 Access the volumetric flux of the phase. More...
 
virtual tmp< surfaceScalarFieldalphaRhoPhi () const
 Constant access the mass flux of the phase. More...
 
virtual surfaceScalarFieldalphaRhoPhi ()
 Access the mass flux of the phase. More...
 
virtual const phaseCompressibleTurbulenceModelturbulence () const
 Return the turbulence model. More...
 

Private Member Functions

tmp< surfaceScalarFieldphi (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< volScalarFielddivU_
 Dilatation rate. More...
 
autoPtr< phaseCompressibleTurbulenceModelturbulence_
 Turbulence model. More...
 
volScalarField continuityError_
 Continuity error. More...
 
tmp< surfaceScalarFieldDbyA_
 Phase diffusivity divided by the momentum coefficient. More...
 

Detailed Description

template<class BasePhaseModel>
class Foam::MovingPhaseModel< BasePhaseModel >

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.

Source files

Definition at line 61 of file MovingPhaseModel.H.

Constructor & Destructor Documentation

◆ MovingPhaseModel()

MovingPhaseModel ( const phaseSystem fluid,
const word phaseName,
const label  index 
)

◆ ~MovingPhaseModel()

virtual ~MovingPhaseModel ( )
virtual

Destructor.

Member Function Documentation

◆ phi() [1/3]

tmp<surfaceScalarField> phi ( const volVectorField U) const
private

Calculate and return the flux field.

◆ correct()

virtual void correct ( )
virtual

Correct the phase properties other than the thermo and turbulence.

◆ correctKinematics()

virtual void correctKinematics ( )
virtual

Correct the kinematics.

◆ correctTurbulence()

virtual void correctTurbulence ( )
virtual

Correct the turbulence.

◆ correctEnergyTransport()

virtual void correctEnergyTransport ( )
virtual

Correct the energy transport e.g. alphat.

◆ UEqn()

virtual tmp<fvVectorMatrix> UEqn ( )
virtual

Return the momentum equation.

◆ DbyA() [1/2]

virtual const surfaceScalarField& DbyA ( ) const
virtual

Return the phase diffusivity divided by the momentum coefficient.

◆ DbyA() [2/2]

virtual void DbyA ( const tmp< surfaceScalarField > &  DbyA)
virtual

Set the phase diffusivity divided by the momentum coefficient.

◆ U() [1/2]

virtual tmp<volVectorField> U ( ) const
virtual

Constant access the velocity.

◆ U() [2/2]

virtual volVectorField& U ( )
virtual

Access the velocity.

◆ DUDt()

virtual tmp<volVectorField> DUDt ( ) const
virtual

Return the substantive acceleration.

◆ divU() [1/2]

virtual const tmp<volScalarField>& divU ( ) const
virtual

Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))

◆ divU() [2/2]

virtual void divU ( const tmp< volScalarField > &  divU)
virtual

Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))

◆ continuityError()

virtual tmp<volScalarField> continuityError ( ) const
virtual

Constant access the continuity error.

◆ phi() [2/3]

virtual tmp<surfaceScalarField> phi ( ) const
virtual

Constant access the volumetric flux.

◆ phi() [3/3]

virtual surfaceScalarField& phi ( )
virtual

Access the volumetric flux.

◆ alphaPhi() [1/2]

virtual tmp<surfaceScalarField> alphaPhi ( ) const
virtual

Constant access the volumetric flux of the phase.

◆ alphaPhi() [2/2]

virtual surfaceScalarField& alphaPhi ( )
virtual

Access the volumetric flux of the phase.

◆ alphaRhoPhi() [1/2]

virtual tmp<surfaceScalarField> alphaRhoPhi ( ) const
virtual

Constant access the mass flux of the phase.

◆ alphaRhoPhi() [2/2]

virtual surfaceScalarField& alphaRhoPhi ( )
virtual

Access the mass flux of the phase.

◆ turbulence()

virtual const phaseCompressibleTurbulenceModel& turbulence ( ) const
virtual

Return the turbulence model.

Field Documentation

◆ U_

volVectorField U_
private

Velocity field.

Definition at line 68 of file MovingPhaseModel.H.

◆ phi_

surfaceScalarField phi_
private

Flux.

Definition at line 71 of file MovingPhaseModel.H.

◆ alphaPhi_

surfaceScalarField alphaPhi_
private

Volumetric flux.

Definition at line 74 of file MovingPhaseModel.H.

◆ alphaRhoPhi_

surfaceScalarField alphaRhoPhi_
private

Mass flux.

Definition at line 77 of file MovingPhaseModel.H.

◆ DUDt_

volVectorField DUDt_
private

Lagrangian acceleration field (needed for virtual-mass)

Definition at line 80 of file MovingPhaseModel.H.

◆ divU_

tmp<volScalarField> divU_
private

Dilatation rate.

Definition at line 83 of file MovingPhaseModel.H.

◆ turbulence_

Turbulence model.

Definition at line 86 of file MovingPhaseModel.H.

◆ continuityError_

volScalarField continuityError_
private

Continuity error.

Definition at line 89 of file MovingPhaseModel.H.

◆ DbyA_

tmp<surfaceScalarField> DbyA_
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.


The documentation for this class was generated from the following file: