Go to the documentation of this file.
36 #ifndef CollisionModel_H
37 #define CollisionModel_H
53 template<
class CloudType>
56 public CloudSubModelBase<CloudType>
136 #define makeCollisionModel(CloudType) \
138 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
139 defineNamedTemplateTypeNameAndDebug \
141 Foam::CollisionModel<collidingCloudType>, \
146 defineTemplateRunTimeSelectionTable \
148 CollisionModel<collidingCloudType>, \
154 #define makeCollisionModelType(SS, CloudType) \
156 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
157 defineNamedTemplateTypeNameAndDebug(Foam::SS<collidingCloudType>, 0); \
159 Foam::CollisionModel<collidingCloudType>:: \
160 adddictionaryConstructorToTable<Foam::SS<collidingCloudType> > \
161 add##SS##CloudType##collidingCloudType##ConstructorToTable_;
virtual bool controlsWallInteraction() const =0
Indicates whether model determines wall collisions or not,.
A class for handling words, derived from string.
CloudType::parcelType parcelType
Convenience typedef for parcel type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual label nSubCycles() const =0
Return the number of times to subcycle the current.
declareRunTimeSelectionTable(autoPtr, CollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
CollisionModel(CloudType &owner)
Construct null from owner.
virtual ~CollisionModel()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual autoPtr< CollisionModel< CloudType > > clone() const =0
Construct and return a clone.
TypeName("collisionModel")
Runtime type information.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
static autoPtr< CollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Templated collision model class.