Public Member Functions | List of all members
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...
 

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 ( const phaseSystem fluid,
const word phaseName,
const label  index 
)
virtual ~MovingPhaseModel ( )
virtual

Destructor.

Member Function Documentation

virtual void correct ( )
virtual

Correct the phase properties other than the thermo and turbulence.

virtual void correctKinematics ( )
virtual

Correct the kinematics.

virtual void correctTurbulence ( )
virtual

Correct the turbulence.

virtual void correctEnergyTransport ( )
virtual

Correct the energy transport e.g. alphat.

virtual tmp<fvVectorMatrix> UEqn ( )
virtual

Return the momentum equation.

virtual const surfaceScalarField& DbyA ( ) const
virtual

Return the phase diffusivity divided by the momentum coefficient.

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

Set the phase diffusivity divided by the momentum coefficient.

virtual tmp<volVectorField> U ( ) const
virtual

Constant access the velocity.

virtual volVectorField& U ( )
virtual

Access the velocity.

virtual tmp<volVectorField> DUDt ( ) const
virtual

Return the substantive acceleration.

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

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

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

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

virtual tmp<volScalarField> continuityError ( ) const
virtual

Constant access the continuity error.

virtual tmp<surfaceScalarField> phi ( ) const
virtual

Constant access the volumetric flux.

virtual surfaceScalarField& phi ( )
virtual

Access the volumetric flux.

virtual tmp<surfaceScalarField> alphaPhi ( ) const
virtual

Constant access the volumetric flux of the phase.

virtual surfaceScalarField& alphaPhi ( )
virtual

Access the volumetric flux of the phase.

virtual tmp<surfaceScalarField> alphaRhoPhi ( ) const
virtual

Constant access the mass flux of the phase.

virtual surfaceScalarField& alphaRhoPhi ( )
virtual

Access the mass flux of the phase.

virtual const phaseCompressibleTurbulenceModel& turbulence ( ) const
virtual

Return the turbulence model.


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