36 #ifndef BinaryCollisionModel_H 37 #define BinaryCollisionModel_H 52 template<
class CloudType>
53 class BinaryCollisionModel
58 const dictionary& dict_;
64 const dictionary coeffDict_;
79 const dictionary&
dict,
94 const dictionary& dict,
105 static autoPtr<BinaryCollisionModel<CloudType>>
New 107 const dictionary& dict,
121 const dictionary&
dict()
const;
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_; const dictionary & coeffDict() const
Return the coefficients dictionary.
DSMCCloud< dsmcParcel > CloudType
BinaryCollisionModel(CloudType &owner)
Construct null from owner.
virtual scalar sigmaTcR(const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const =0
Return the collision cross section * relative velocity product.
declareRunTimeSelectionTable(autoPtr, BinaryCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
static autoPtr< BinaryCollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual ~BinaryCollisionModel()
Destructor.
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.
TypeName("BinaryCollisionModel")
Runtime type information.
const dictionary & dict() const
Return the dictionary.
virtual void collide(typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)=0
Apply collision.
const CloudType & owner() const
Return the owner cloud object.