36 #ifndef CollisionModel_H 37 #define CollisionModel_H 53 template<
class CloudType>
56 public CloudSubModelBase<CloudType>
76 const dictionary&
dict,
91 const dictionary& dict,
100 virtual autoPtr<CollisionModel<CloudType>>
clone()
const = 0;
108 static autoPtr<CollisionModel<CloudType>>
New 110 const dictionary& dict,
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_; virtual ~CollisionModel()
Destructor.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DSMCCloud< dsmcParcel > CloudType
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.
const dictionary & dict() const
Return const access to the cloud dictionary.
const CloudType & owner() const
Return const access to the owner cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
static autoPtr< CollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual label nSubCycles() const =0
Return the number of times to subcycle the current.
Macros to ease declaration of run-time selection tables.
CollisionModel(CloudType &owner)
Construct null from owner.