driftModel Class Referenceabstract

Base class for drift models. More...

Inheritance diagram for driftModel:
Collaboration diagram for driftModel:

Classes

class  iNew
 Class used for the read-construction of. More...
 

Public Member Functions

 TypeName ("driftModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, driftModel, dictionary,(const populationBalanceModel &popBal, const dictionary &dict),(popBal, dict))
 
 driftModel (const populationBalanceModel &popBal, const dictionary &dict)
 
autoPtr< driftModelclone () const
 
virtual ~driftModel ()
 Destructor. More...
 
const populationBalanceModelpopBal () const
 Return reference to the populationBalanceModel. More...
 
const dictionarydict () const
 Return reference to model dictionary. More...
 
virtual void precompute ()
 Precompute diameter independent expressions. More...
 
virtual void addToDriftRate (volScalarField &driftRate, const label i)=0
 Add to driftRate. More...
 

Static Public Member Functions

static autoPtr< driftModelNew (const word &type, const populationBalanceModel &popBal, const dictionary &dict)
 

Protected Attributes

const populationBalanceModelpopBal_
 Reference to the populationBalanceModel. More...
 
const dictionary dict_
 Model dictionary. More...
 

Detailed Description

Base class for drift models.

See also
Foam::diameterModels::populationBalanceModel
Source files

Definition at line 53 of file driftModel.H.

Constructor & Destructor Documentation

◆ driftModel()

driftModel ( const populationBalanceModel popBal,
const dictionary dict 
)

Definition at line 73 of file driftModel.C.

◆ ~driftModel()

virtual ~driftModel ( )
inlinevirtual

Destructor.

Definition at line 135 of file driftModel.H.

Member Function Documentation

◆ TypeName()

TypeName ( "driftModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
driftModel  ,
dictionary  ,
(const populationBalanceModel &popBal, const dictionary &dict ,
(popBal, dict  
)

◆ clone()

autoPtr<driftModel> clone ( ) const
inline

Definition at line 117 of file driftModel.H.

References NotImplemented.

◆ New()

Foam::autoPtr< Foam::diameterModels::driftModel > New ( const word type,
const populationBalanceModel popBal,
const dictionary dict 
)
static

Definition at line 44 of file driftModel.C.

References driftModel::dict(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, IOobject::name(), Foam::nl, driftModel::popBal(), and Foam::type().

Referenced by driftModel::iNew::operator()().

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

◆ popBal()

const populationBalanceModel& popBal ( ) const
inline

Return reference to the populationBalanceModel.

Definition at line 142 of file driftModel.H.

References driftModel::popBal_.

Referenced by driftModel::New().

Here is the caller graph for this function:

◆ dict()

const dictionary& dict ( ) const
inline

Return reference to model dictionary.

Definition at line 148 of file driftModel.H.

References driftModel::dict_.

Referenced by fractal::addDrift(), driftModel::New(), and driftModel::iNew::operator()().

Here is the caller graph for this function:

◆ precompute()

void precompute ( )
virtual

Precompute diameter independent expressions.

Reimplemented in phaseChange.

Definition at line 86 of file driftModel.C.

◆ addToDriftRate()

virtual void addToDriftRate ( volScalarField driftRate,
const label  i 
)
pure virtual

Add to driftRate.

Implemented in phaseChange, densityChangeDrift, and constantDrift.

Member Data Documentation

◆ popBal_

const populationBalanceModel& popBal_
protected

Reference to the populationBalanceModel.

Definition at line 60 of file driftModel.H.

Referenced by phaseChange::phaseChange(), and driftModel::popBal().

◆ dict_

const dictionary dict_
protected

Model dictionary.

Definition at line 63 of file driftModel.H.

Referenced by driftModel::dict().


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