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_; virtual bool active() const =0
Flag to indicate whether model activates collision model.
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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.
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.