41#ifndef CollisionModel_H
42#define CollisionModel_H
58template<
class CloudType>
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_;
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.
TypeName("collisionModel")
Runtime type information.
virtual autoPtr< CollisionModel< CloudType > > clone() const =0
Construct and return a clone.
declareRunTimeSelectionTable(autoPtr, CollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
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.
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,...
const dictionary & dict() const
Return const access to the cloud dictionary.
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.