PairModel< CloudType > Class Template Referenceabstract

Templated pair interaction class. More...

Inheritance diagram for PairModel< CloudType >:

Public Member Functions

 TypeName ("pairModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, PairModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 Declare runtime constructor selection table. More...
 
 PairModel (CloudType &owner)
 Construct null from cloud owner. More...
 
 PairModel (const dictionary &dict, CloudType &owner, const word &type)
 Construct from components. More...
 
virtual ~PairModel ()
 Destructor. More...
 
const CloudTypeowner () const
 Return the owner cloud object. More...
 
const dictionarydict () const
 Return the dictionary. More...
 
const dictionarycoeffDict () const
 Return the coefficients dictionary. More...
 
virtual bool controlsTimestep () const =0
 Whether the PairModel has a timestep limit that will. More...
 
virtual label nSubCycles () const =0
 For PairModels that control the timestep, calculate the. More...
 
virtual void evaluatePair (typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const =0
 Calculate the pair interaction between parcels. More...
 

Static Public Member Functions

static autoPtr< PairModel< CloudType > > New (const dictionary &dict, CloudType &owner)
 Selector. More...
 

Protected Member Functions

scalar forceCoeff (typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const
 Return the force coefficient based on the forceRampTime_. More...
 

Detailed Description

template<class CloudType>
class Foam::PairModel< CloudType >

Templated pair interaction class.

Source files

Definition at line 49 of file PairCollision.H.

Constructor & Destructor Documentation

◆ PairModel() [1/2]

PairModel ( CloudType owner)

Construct null from cloud owner.

Definition at line 28 of file PairModel.C.

◆ PairModel() [2/2]

PairModel ( const dictionary dict,
CloudType owner,
const word type 
)

Construct from components.

Definition at line 41 of file PairModel.C.

◆ ~PairModel()

~PairModel ( )
virtual

Destructor.

Definition at line 60 of file PairModel.C.

Member Function Documentation

◆ forceCoeff()

Foam::scalar forceCoeff ( typename CloudType::parcelType pA,
typename CloudType::parcelType pB 
) const
protected

Return the force coefficient based on the forceRampTime_.

Definition at line 90 of file PairModel.C.

◆ TypeName()

TypeName ( "pairModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
PairModel< CloudType ,
dictionary  ,
(const dictionary &dict, CloudType &owner ,
(dict, owner  
)

Declare runtime constructor selection table.

◆ New()

Foam::autoPtr< Foam::PairModel< CloudType > > New ( const dictionary dict,
CloudType owner 
)
static

Selector.

Definition at line 29 of file PairModelNew.C.

◆ owner()

const CloudType & owner ( ) const

Return the owner cloud object.

Definition at line 68 of file PairModel.C.

◆ dict()

const Foam::dictionary & dict ( ) const

Return the dictionary.

Definition at line 75 of file PairModel.C.

◆ coeffDict()

const Foam::dictionary & coeffDict ( ) const

Return the coefficients dictionary.

Definition at line 82 of file PairModel.C.

◆ controlsTimestep()

virtual bool controlsTimestep ( ) const
pure virtual

Whether the PairModel has a timestep limit that will.

require subCycling

Implemented in PairSpringSliderDashpot< CloudType >, and NoPair< CloudType >.

◆ nSubCycles()

virtual label nSubCycles ( ) const
pure virtual

For PairModels that control the timestep, calculate the.

number of subCycles needed to satisfy the minimum allowable timestep

Implemented in PairSpringSliderDashpot< CloudType >, and NoPair< CloudType >.

◆ evaluatePair()

virtual void evaluatePair ( typename CloudType::parcelType pA,
typename CloudType::parcelType pB 
) const
pure virtual

Calculate the pair interaction between parcels.

Implemented in PairSpringSliderDashpot< CloudType >, and NoPair< CloudType >.


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