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_; declareRunTimeSelectionTable(autoPtr, DampingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
A list of keyword definitions, which are a keyword followed by any number of values (e...
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
const dictionary & dict() const
Return const access to the cloud dictionary.
const CloudType & owner() const
Return const access to the owner cloud.
A class for handling words, derived from string.
virtual autoPtr< DampingModel< CloudType > > clone() const =0
Construct and return a clone.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
static autoPtr< DampingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
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.
virtual ~DampingModel()
Destructor.
Templated base class for dsmc cloud.
TypeName("dampingModel")
Runtime type information.
Base class for collisional damping models.