PairModel< CloudType > Class Template Referenceabstract

Templated pair interaction class. More...

Inheritance diagram for PairModel< CloudType >:
[legend]

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 55 of file PairModel.H.

Constructor & Destructor Documentation

◆ PairModel() [1/2]

PairModel ( CloudType owner)

Construct null from cloud owner.

Definition at line 34 of file PairModel.C.

◆ PairModel() [2/2]

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

Construct from components.

Definition at line 47 of file PairModel.C.

◆ ~PairModel()

~PairModel
virtual

Destructor.

Definition at line 67 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 96 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 35 of file PairModelNew.C.

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

Here is the call graph for this function:

◆ owner()

const CloudType & owner

Return the owner cloud object.

Definition at line 75 of file PairModel.C.

Referenced by PairSpringSliderDashpot< CloudType >::PairSpringSliderDashpot().

Here is the caller graph for this function:

◆ dict()

const Foam::dictionary & dict

Return the dictionary.

Definition at line 82 of file PairModel.C.

◆ coeffDict()

const Foam::dictionary & coeffDict

Return the coefficients dictionary.

Definition at line 89 of file PairModel.C.

Referenced by PairSpringSliderDashpot< CloudType >::PairSpringSliderDashpot().

Here is the caller graph for this function:

◆ controlsTimestep()

virtual bool controlsTimestep ( ) const
pure virtual

Whether the PairModel has a timestep limit that will.

require subCycling

Implemented in NoPair< CloudType >, and PairSpringSliderDashpot< 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 NoPair< CloudType >, and PairSpringSliderDashpot< CloudType >.

◆ evaluatePair()

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

Calculate the pair interaction between parcels.

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


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