Go to the documentation of this file.
36 #ifndef DampingModel_H
37 #define DampingModel_H
57 template<
class CloudType>
60 public CloudSubModelBase<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_;
A class for handling words, derived from string.
Base class for collisional damping models.
virtual ~DampingModel()
Destructor.
static autoPtr< DampingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
declareRunTimeSelectionTable(autoPtr, DampingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
TypeName("dampingModel")
Runtime type information.
DampingModel(CloudType &owner)
Construct null from owner.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
virtual autoPtr< DampingModel< CloudType > > clone() const =0
Construct and return a clone.