Go to the documentation of this file.
41 #ifndef DampingModel_H
42 #define DampingModel_H
62 template<
class CloudType>
65 public CloudSubModelBase<CloudType>
143 #define makeDampingModel(CloudType) \
145 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
146 defineNamedTemplateTypeNameAndDebug \
148 Foam::DampingModel<MPPICCloudType>, \
154 defineTemplateRunTimeSelectionTable \
156 DampingModel<MPPICCloudType>, \
162 #define makeDampingModelType(SS, CloudType) \
164 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
165 defineNamedTemplateTypeNameAndDebug \
166 (Foam::DampingModels::SS<MPPICCloudType>, 0); \
168 Foam::DampingModel<MPPICCloudType>:: \
169 adddictionaryConstructorToTable \
170 <Foam::DampingModels::SS<MPPICCloudType>> \
171 add##SS##CloudType##MPPICCloudType##ConstructorToTable_;
A class for handling words, derived from Foam::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 a number of values (eg,...
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
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.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
virtual autoPtr< DampingModel< CloudType > > clone() const =0
Construct and return a clone.