VariableHardSphere< CloudType > Class Template Reference

Variable Hard Sphere BinaryCollision Model. More...

Inheritance diagram for VariableHardSphere< CloudType >:
[legend]
Collaboration diagram for VariableHardSphere< CloudType >:
[legend]

Public Member Functions

 TypeName ("VariableHardSphere")
 Runtime type information. More...
 
 VariableHardSphere (const dictionary &dict, CloudType &cloud)
 Construct from dictionary. More...
 
virtual ~VariableHardSphere ()
 Destructor. More...
 
virtual bool active () const
 Flag to indicate whether model activates collision model. More...
 
virtual scalar sigmaTcR (const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const
 Return the collision cross section * relative velocity product. More...
 
virtual void collide (typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)
 Apply collision. More...
 
- Public Member Functions inherited from BinaryCollisionModel< CloudType >
 TypeName ("BinaryCollisionModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, BinaryCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 Declare runtime constructor selection table. More...
 
 BinaryCollisionModel (CloudType &owner)
 Construct null from owner. More...
 
 BinaryCollisionModel (const dictionary &dict, CloudType &owner, const word &type)
 Construct from components. More...
 
virtual ~BinaryCollisionModel ()
 Destructor. More...
 
const CloudTypeowner () const
 Return the owner cloud object. More...
 
CloudTypeowner ()
 Return non-const access to the owner cloud object. More...
 
const dictionarydict () const
 Return the dictionary. More...
 
const dictionarycoeffDict () const
 Return the coefficients dictionary. More...
 
virtual bool active () const =0
 Flag to indicate whether model activates collision model. More...
 
virtual scalar sigmaTcR (const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const =0
 Return the collision cross section * relative velocity product. More...
 
virtual void collide (typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)=0
 Apply collision. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryCollisionModel< CloudType >
static autoPtr< BinaryCollisionModel< CloudType > > New (const dictionary &dict, CloudType &owner)
 Selector. More...
 

Detailed Description

template<class CloudType>
class Foam::VariableHardSphere< CloudType >

Variable Hard Sphere BinaryCollision Model.

Definition at line 47 of file VariableHardSphere.H.

Constructor & Destructor Documentation

◆ VariableHardSphere()

VariableHardSphere ( const dictionary dict,
CloudType cloud 
)

Construct from dictionary.

Definition at line 36 of file VariableHardSphere.C.

◆ ~VariableHardSphere()

Destructor.

Definition at line 50 of file VariableHardSphere.C.

Member Function Documentation

◆ TypeName()

TypeName ( "VariableHardSphere< CloudType >"  )

Runtime type information.

◆ active()

bool active
virtual

Flag to indicate whether model activates collision model.

Implements BinaryCollisionModel< CloudType >.

Definition at line 57 of file VariableHardSphere.C.

◆ sigmaTcR()

Foam::scalar sigmaTcR ( const typename CloudType::parcelType pP,
const typename CloudType::parcelType pQ 
) const
virtual

Return the collision cross section * relative velocity product.

Implements BinaryCollisionModel< CloudType >.

Definition at line 64 of file VariableHardSphere.C.

References Foam::exp(), Foam::lgamma(), Foam::mag(), Foam::constant::mathematical::pi(), and Foam::pow().

Here is the call graph for this function:

◆ collide()

void collide ( typename CloudType::parcelType pP,
typename CloudType::parcelType pQ 
)
virtual

Apply collision.

Implements BinaryCollisionModel< CloudType >.

Definition at line 113 of file VariableHardSphere.C.

References Foam::cos(), Foam::mag(), phi, rndGen, Random::sample01(), Foam::sin(), Foam::sqrt(), and Foam::constant::mathematical::twoPi().

Here is the call graph for this function:

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