Go to the documentation of this file.
36 #ifndef BinaryCollisionModel_H
37 #define BinaryCollisionModel_H
52 template<
class CloudType>
53 class BinaryCollisionModel
130 virtual bool active()
const = 0;
154 #define makeBinaryCollisionModel(CloudType) \
156 defineNamedTemplateTypeNameAndDebug \
158 BinaryCollisionModel<CloudType>, \
162 defineTemplateRunTimeSelectionTable \
164 BinaryCollisionModel<CloudType>, \
169 #define makeBinaryCollisionModelType(SS, CloudType) \
171 defineNamedTemplateTypeNameAndDebug(SS<CloudType>, 0); \
173 BinaryCollisionModel<CloudType>:: \
174 adddictionaryConstructorToTable<SS<CloudType> > \
175 add##SS##CloudType##ConstructorToTable_;
const CloudType & owner() const
Return the owner cloud object.
A class for handling words, derived from string.
virtual scalar sigmaTcR(const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const =0
Return the collision cross section * relative velocity product.
Templated DSMC particle collision class.
virtual bool active() const =0
Flag to indicate whether model activates collision model.
BinaryCollisionModel(CloudType &owner)
Construct null from owner.
const dictionary & dict_
The cloud dictionary.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
declareRunTimeSelectionTable(autoPtr, BinaryCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
TypeName("BinaryCollisionModel")
Runtime type information.
virtual ~BinaryCollisionModel()
Destructor.
Macros to ease declaration of run-time selection tables.
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
static autoPtr< BinaryCollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const dictionary coeffDict_
The coefficients dictionary.
const dictionary & coeffDict() const
Return the coefficients dictionary.