36 #ifndef DampingModel_H
37 #define DampingModel_H
57 template<
class CloudType>
138 #define makeDampingModel(CloudType) \
140 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
141 defineNamedTemplateTypeNameAndDebug \
143 Foam::DampingModel<MPPICCloudType>, \
149 defineTemplateRunTimeSelectionTable \
151 DampingModel<MPPICCloudType>, \
157 #define makeDampingModelType(SS, CloudType) \
159 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
160 defineNamedTemplateTypeNameAndDebug \
161 (Foam::DampingModels::SS<MPPICCloudType>, 0); \
163 Foam::DampingModel<MPPICCloudType>:: \
164 adddictionaryConstructorToTable \
165 <Foam::DampingModels::SS<MPPICCloudType>> \
166 add##SS##CloudType##MPPICCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Base class for collisional damping models.
virtual autoPtr< DampingModel< CloudType > > clone() const =0
Construct and return a clone.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
virtual ~DampingModel()
Destructor.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
TypeName("dampingModel")
Runtime type information.
DampingModel(CloudType &owner)
Construct null from owner.
static autoPtr< DampingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
declareRunTimeSelectionTable(autoPtr, DampingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
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.
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.