dragModel Class Referenceabstract
Inheritance diagram for dragModel:
[legend]
Collaboration diagram for dragModel:
[legend]

Public Member Functions

 TypeName ("dragModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, dragModel, dictionary,(const dictionary &interfaceDict, const phaseModel &phase1, const phaseModel &phase2),(interfaceDict, phase1, phase2))
 
 dragModel (const dictionary &dict, const phaseModel &phase1, const phaseModel &phase2)
 
virtual ~dragModel ()=default
 Destructor. More...
 
const phaseModelphase1 () const
 
const phaseModelphase2 () const
 
const dimensionedScalarresidualPhaseFraction () const
 
const dimensionedScalarresidualSlip () const
 
virtual tmp< volScalarFieldK (const volScalarField &Ur) const =0
 The drag function K used in the momentum eq. More...
 
 TypeName ("dragModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, dragModel, dictionary,(const dictionary &dict, const phasePair &pair, const bool registerObject),(dict, pair, registerObject))
 
 dragModel (const phasePair &pair, const bool registerObject)
 
 dragModel (const dictionary &dict, const phasePair &pair, const bool registerObject)
 
virtual ~dragModel ()
 Destructor. More...
 
virtual tmp< volScalarFieldCdRe () const =0
 Drag coefficient. More...
 
virtual tmp< volScalarFieldKi () const
 Return the phase-intensive drag coefficient Ki. More...
 
virtual tmp< volScalarFieldK () const
 Return the drag coefficient K. More...
 
virtual tmp< surfaceScalarFieldKf () const
 Return the drag coefficient Kf. More...
 
bool writeData (Ostream &os) const
 Dummy write for regIOobject. More...
 
 TypeName ("dragModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, dragModel, dictionary,(const dictionary &dict, const phasePair &pair, const bool registerObject),(dict, pair, registerObject))
 
 dragModel (const phasePair &pair, const bool registerObject)
 
 dragModel (const dictionary &dict, const phasePair &pair, const bool registerObject)
 
virtual ~dragModel ()
 Destructor. More...
 
virtual tmp< volScalarFieldCdRe () const =0
 Drag coefficient. More...
 
virtual tmp< volScalarFieldKi () const
 Return the phase-intensive drag coefficient Ki. More...
 
virtual tmp< volScalarFieldK () const
 Return the drag coefficient K. More...
 
virtual tmp< surfaceScalarFieldKf () const
 Return the drag coefficient Kf. More...
 
bool writeData (Ostream &os) const
 Dummy write for regIOobject. More...
 

Static Public Member Functions

static autoPtr< dragModelNew (const dictionary &dict, const phaseModel &phase1, const phaseModel &phase2)
 
static autoPtr< dragModelNew (const dictionary &dict, const phasePair &pair)
 
static autoPtr< dragModelNew (const dictionary &dict, const phasePair &pair)
 

Static Public Attributes

static const dimensionSet dimK
 Coefficient dimensions. More...
 

Protected Attributes

const dictionaryinterfaceDict_
 
const phaseModelphase1_
 
const phaseModelphase2_
 
dimensionedScalar residualPhaseFraction_
 
dimensionedScalar residualSlip_
 
const phasePairpair_
 Phase pair. More...
 
autoPtr< swarmCorrectionswarmCorrection_
 Swarm correction. More...
 

Detailed Description

Source files

Source files

Source files

Definition at line 51 of file dragModel.H.

Constructor & Destructor Documentation

◆ dragModel() [1/5]

dragModel ( const dictionary dict,
const phaseModel phase1,
const phaseModel phase2 
)

Definition at line 43 of file dragModel.C.

◆ ~dragModel() [1/3]

~dragModel ( )
virtualdefault

Destructor.

Definition at line 135 of file dragModel.C.

◆ dragModel() [2/5]

dragModel ( const phasePair pair,
const bool  registerObject 
)

Definition at line 50 of file dragModel.C.

◆ dragModel() [3/5]

dragModel ( const dictionary dict,
const phasePair pair,
const bool  registerObject 
)

Definition at line 72 of file dragModel.C.

◆ ~dragModel() [2/3]

virtual ~dragModel ( )
virtual

Destructor.

◆ dragModel() [4/5]

dragModel ( const phasePair pair,
const bool  registerObject 
)

◆ dragModel() [5/5]

dragModel ( const dictionary dict,
const phasePair pair,
const bool  registerObject 
)

◆ ~dragModel() [3/3]

virtual ~dragModel ( )
virtual

Destructor.

Member Function Documentation

◆ TypeName() [1/3]

TypeName ( "dragModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [1/3]

declareRunTimeSelectionTable ( autoPtr  ,
dragModel  ,
dictionary  ,
(const dictionary &interfaceDict, const phaseModel &phase1, const phaseModel &phase2 ,
(interfaceDict, phase1, phase2  
)

◆ New() [1/3]

Foam::autoPtr< Foam::dragModel > New ( const dictionary dict,
const phaseModel phase1,
const phaseModel phase2 
)
static

Definition at line 60 of file dragModel.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, phase1, and phase2.

Referenced by multiphaseSystem::multiphaseSystem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ phase1()

const phaseModel& phase1 ( ) const
inline

Definition at line 111 of file dragModel.H.

References dragModel::phase1_.

Referenced by multiphaseSystem::dragCoeffs().

Here is the caller graph for this function:

◆ phase2()

const phaseModel& phase2 ( ) const
inline

Definition at line 116 of file dragModel.H.

References dragModel::phase2_.

Referenced by multiphaseSystem::dragCoeffs().

Here is the caller graph for this function:

◆ residualPhaseFraction()

const dimensionedScalar& residualPhaseFraction ( ) const
inline

Definition at line 121 of file dragModel.H.

References dragModel::residualPhaseFraction_.

Referenced by multiphaseSystem::dragCoeffs().

Here is the caller graph for this function:

◆ residualSlip()

const dimensionedScalar& residualSlip ( ) const
inline

Definition at line 126 of file dragModel.H.

References dragModel::residualSlip_.

Referenced by multiphaseSystem::dragCoeffs().

Here is the caller graph for this function:

◆ K() [1/3]

virtual tmp<volScalarField> K ( const volScalarField Ur) const
pure virtual

The drag function K used in the momentum eq.

ddt(alpha1*rho1*U1) + ... = ... alpha1*alpha2*K*(U1-U2) ddt(alpha2*rho2*U2) + ... = ... alpha1*alpha2*K*(U2-U1) NB! ***************************** for numerical reasons alpha1 and alpha2 has been extracted from the dragFunction K, so you MUST divide K by alpha1*alpha2 when implementing the drag function NB! *****************************

Implemented in WenYu, GidaspowSchillerNaumann, blended, Ergun, Gibilaro, SyamlalOBrien, GidaspowErgunWenYu, interface, and SchillerNaumann.

Referenced by multiphaseSystem::dragCoeffs().

Here is the caller graph for this function:

◆ TypeName() [2/3]

TypeName ( "dragModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [2/3]

declareRunTimeSelectionTable ( autoPtr  ,
dragModel  ,
dictionary  ,
(const dictionary &dict, const phasePair &pair, const bool registerObject)  ,
(dict, pair, registerObject)   
)

◆ New() [2/3]

Foam::autoPtr< Foam::dragModel > New ( const dictionary dict,
const phasePair pair 
)
static

Definition at line 106 of file dragModel.C.

References Foam::abort(), dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.

Here is the call graph for this function:

◆ CdRe() [1/2]

◆ Ki() [1/2]

Foam::tmp< Foam::volScalarField > Ki ( ) const
virtual

Return the phase-intensive drag coefficient Ki.

used in the momentum equations ddt(alpha1*rho1*U1) + ... = ... alphad*K*(U1-U2) ddt(alpha2*rho2*U2) + ... = ... alphad*K*(U2-U1)

Definition at line 141 of file dragModel.C.

References Foam::sqr().

Here is the call graph for this function:

◆ K() [2/3]

Foam::tmp< Foam::volScalarField > K ( ) const
virtual

Return the drag coefficient K.

used in the momentum equations ddt(alpha1*rho1*U1) + ... = ... K*(U1-U2) ddt(alpha2*rho2*U2) + ... = ... K*(U2-U1)

Reimplemented in AttouFerschneider, segregated, and segregated.

Definition at line 153 of file dragModel.C.

References Foam::max().

Here is the call graph for this function:

◆ Kf() [1/2]

Foam::tmp< Foam::surfaceScalarField > Kf ( ) const
virtual

Return the drag coefficient Kf.

used in the face-momentum equations

Reimplemented in AttouFerschneider, segregated, and segregated.

Definition at line 159 of file dragModel.C.

References Foam::fvc::interpolate(), and Foam::max().

Here is the call graph for this function:

◆ writeData() [1/2]

bool writeData ( Ostream os) const

Dummy write for regIOobject.

Definition at line 170 of file dragModel.C.

References IOstream::good(), and os().

Here is the call graph for this function:

◆ TypeName() [3/3]

TypeName ( "dragModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable() [3/3]

declareRunTimeSelectionTable ( autoPtr  ,
dragModel  ,
dictionary  ,
(const dictionary &dict, const phasePair &pair, const bool registerObject)  ,
(dict, pair, registerObject)   
)

◆ New() [3/3]

static autoPtr<dragModel> New ( const dictionary dict,
const phasePair pair 
)
static

◆ CdRe() [2/2]

◆ Ki() [2/2]

virtual tmp<volScalarField> Ki ( ) const
virtual

Return the phase-intensive drag coefficient Ki.

used in the momentum equations ddt(alpha1*rho1*U1) + ... = ... alphad*K*(U1-U2) ddt(alpha2*rho2*U2) + ... = ... alphad*K*(U2-U1)

◆ K() [3/3]

virtual tmp<volScalarField> K ( ) const
virtual

Return the drag coefficient K.

used in the momentum equations ddt(alpha1*rho1*U1) + ... = ... K*(U1-U2) ddt(alpha2*rho2*U2) + ... = ... K*(U2-U1)

Reimplemented in AttouFerschneider, segregated, and segregated.

◆ Kf() [2/2]

virtual tmp<surfaceScalarField> Kf ( ) const
virtual

Return the drag coefficient Kf.

used in the face-momentum equations

Reimplemented in AttouFerschneider, segregated, and segregated.

◆ writeData() [2/2]

bool writeData ( Ostream os) const

Dummy write for regIOobject.

Member Data Documentation

◆ interfaceDict_

const dictionary& interfaceDict_
protected

Definition at line 57 of file dragModel.H.

◆ phase1_

const phaseModel& phase1_
protected

Definition at line 58 of file dragModel.H.

Referenced by dragModel::phase1().

◆ phase2_

const phaseModel& phase2_
protected

Definition at line 59 of file dragModel.H.

Referenced by dragModel::phase2().

◆ residualPhaseFraction_

dimensionedScalar residualPhaseFraction_
protected

Definition at line 60 of file dragModel.H.

Referenced by dragModel::residualPhaseFraction().

◆ residualSlip_

dimensionedScalar residualSlip_
protected

Definition at line 61 of file dragModel.H.

Referenced by dragModel::residualSlip().

◆ pair_

const phasePair & pair_
protected

Phase pair.

Definition at line 65 of file dragModel.H.

◆ swarmCorrection_

autoPtr< swarmCorrection > swarmCorrection_
protected

Swarm correction.

Definition at line 68 of file dragModel.H.

◆ dimK

static const dimensionSet dimK
static

Coefficient dimensions.

Definition at line 96 of file dragModel.H.


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