36 #ifndef CollisionModel_H
37 #define CollisionModel_H
53 template<
class CloudType>
132 #define makeCollisionModel(CloudType) \
134 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
135 defineNamedTemplateTypeNameAndDebug \
137 Foam::CollisionModel<collidingCloudType>, \
142 defineTemplateRunTimeSelectionTable \
144 CollisionModel<collidingCloudType>, \
150 #define makeCollisionModelType(SS, CloudType) \
152 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
153 defineNamedTemplateTypeNameAndDebug(Foam::SS<collidingCloudType>, 0); \
155 Foam::CollisionModel<collidingCloudType>:: \
156 adddictionaryConstructorToTable<Foam::SS<collidingCloudType>> \
157 add##SS##CloudType##collidingCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated collision model class.
virtual ~CollisionModel()
Destructor.
virtual label nSubCycles() const =0
Return the number of times to subcycle the current.
virtual autoPtr< CollisionModel< CloudType > > clone() const =0
Construct and return a clone.
TypeName("collisionModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, CollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
CollisionModel(CloudType &owner)
Construct null from owner.
static autoPtr< CollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.