41 #ifndef CollisionModel_H 42 #define CollisionModel_H 58 template<
class CloudType>
61 public CloudSubModelBase<CloudType>
81 const dictionary&
dict,
96 const dictionary&
dict,
105 virtual autoPtr<CollisionModel<CloudType>>
clone()
const = 0;
113 static autoPtr<CollisionModel<CloudType>>
New 115 const dictionary&
dict,
137 #define makeCollisionModel(CloudType) \ 139 typedef Foam::CloudType::collidingCloudType collidingCloudType; \ 140 defineNamedTemplateTypeNameAndDebug \ 142 Foam::CollisionModel<collidingCloudType>, \ 147 defineTemplateRunTimeSelectionTable \ 149 CollisionModel<collidingCloudType>, \ 155 #define makeCollisionModelType(SS, CloudType) \ 157 typedef Foam::CloudType::collidingCloudType collidingCloudType; \ 158 defineNamedTemplateTypeNameAndDebug(Foam::SS<collidingCloudType>, 0); \ 160 Foam::CollisionModel<collidingCloudType>:: \ 161 adddictionaryConstructorToTable<Foam::SS<collidingCloudType>> \ 162 add##SS##CloudType##collidingCloudType##ConstructorToTable_; virtual ~CollisionModel()
Destructor.
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
static autoPtr< CollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
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.