31 #ifndef DispersionModel_H
32 #define DispersionModel_H
48 template<
class CloudType>
127 #define makeDispersionModel(CloudType) \
129 typedef Foam::CloudType::momentumCloudType momentumCloudType; \
130 defineTemplateTypeNameAndDebug \
131 (Foam::DispersionModel<momentumCloudType>, 0); \
135 defineTemplateRunTimeSelectionTable \
137 DispersionModel<momentumCloudType>, \
142 #define makeDispersionModelType(SS, CloudType) \
144 typedef Foam::CloudType::momentumCloudType momentumCloudType; \
145 defineNamedTemplateTypeNameAndDebug(Foam::SS<momentumCloudType>, 0); \
147 Foam::DispersionModel<momentumCloudType>:: \
148 adddictionaryConstructorToTable<Foam::SS<momentumCloudType>> \
149 add##SS##CloudType##momentumCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
virtual ~DispersionModel()
Destructor.
TypeName("dispersionModel")
Runtime type information.
DispersionModel(CloudType &owner)
Construct null from owner.
static autoPtr< DispersionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual vector update(const scalar dt, const label celli, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)=0
Update (disperse particles)
virtual autoPtr< DispersionModel< CloudType > > clone() const =0
Construct and return a clone.
declareRunTimeSelectionTable(autoPtr, DispersionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
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.