Go to the documentation of this file.
38 #ifndef BinaryCollisionModel_H
39 #define BinaryCollisionModel_H
54 template<
class CloudType>
55 class BinaryCollisionModel
60 const dictionary& dict_;
66 const dictionary coeffDict_;
81 const dictionary&
dict,
96 const dictionary&
dict,
107 static autoPtr<BinaryCollisionModel<CloudType>>
New
109 const dictionary&
dict,
123 const dictionary&
dict()
const;
132 virtual bool active()
const = 0;
156 #define makeBinaryCollisionModel(CloudType) \
158 defineNamedTemplateTypeNameAndDebug \
160 BinaryCollisionModel<CloudType>, \
164 defineTemplateRunTimeSelectionTable \
166 BinaryCollisionModel<CloudType>, \
171 #define makeBinaryCollisionModelType(SS, CloudType) \
173 defineNamedTemplateTypeNameAndDebug(SS<CloudType>, 0); \
175 BinaryCollisionModel<CloudType>:: \
176 adddictionaryConstructorToTable<SS<CloudType>> \
177 add##SS##CloudType##ConstructorToTable_;
const CloudType & owner() const
Return the owner cloud object.
virtual scalar sigmaTcR(const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const =0
Return the collision cross section * relative velocity product.
virtual bool active() const =0
Flag to indicate whether model activates collision model.
BinaryCollisionModel(CloudType &owner)
Construct null from owner.
DSMCCloud< dsmcParcel > CloudType
declareRunTimeSelectionTable(autoPtr, BinaryCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
TypeName("BinaryCollisionModel")
Runtime type information.
virtual ~BinaryCollisionModel()
Destructor.
Macros to ease declaration of run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dictionary & dict() const
Return the dictionary.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual void collide(typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)=0
Apply collision.
static autoPtr< BinaryCollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const dictionary & coeffDict() const
Return the coefficients dictionary.