36 #ifndef BinaryCollisionModel_H
37 #define BinaryCollisionModel_H
52 template<
class CloudType>
151 #define makeBinaryCollisionModel(CloudType) \
153 defineNamedTemplateTypeNameAndDebug \
155 BinaryCollisionModel<CloudType>, \
159 defineTemplateRunTimeSelectionTable \
161 BinaryCollisionModel<CloudType>, \
166 #define makeBinaryCollisionModelType(SS, CloudType) \
168 defineNamedTemplateTypeNameAndDebug(SS<CloudType>, 0); \
170 BinaryCollisionModel<CloudType>:: \
171 adddictionaryConstructorToTable<SS<CloudType>> \
172 add##SS##CloudType##ConstructorToTable_;
Templated DSMC particle collision class.
TypeName("BinaryCollisionModel")
Runtime type information.
virtual scalar sigmaTcR(const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const =0
Return the collision cross section * relative velocity product.
static autoPtr< BinaryCollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const dictionary & coeffDict() const
Return the coefficients dictionary.
virtual ~BinaryCollisionModel()
Destructor.
const dictionary & dict() const
Return the dictionary.
const CloudType & owner() const
Return the owner cloud object.
declareRunTimeSelectionTable(autoPtr, BinaryCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
BinaryCollisionModel(CloudType &owner)
Construct null from owner.
virtual void collide(typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)=0
Apply collision.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.