38#ifndef BinaryCollisionModel_H
39#define BinaryCollisionModel_H
54template<
class CloudType>
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_;
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.
virtual bool active() const =0
Flag to indicate whether model activates collision model.
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.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.