Go to the documentation of this file.
36 #ifndef PackingModel_H
37 #define PackingModel_H
51 class ParticleStressModel;
53 class CorrectionLimitingMethod;
56 class AveragingMethod;
62 template<
class CloudType>
65 public CloudSubModelBase<CloudType>
143 #define makePackingModel(CloudType) \
145 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
146 defineNamedTemplateTypeNameAndDebug \
148 Foam::PackingModel<MPPICCloudType>, \
154 defineTemplateRunTimeSelectionTable \
156 PackingModel<MPPICCloudType>, \
162 #define makePackingModelType(SS, CloudType) \
164 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
165 defineNamedTemplateTypeNameAndDebug \
166 (Foam::PackingModels::SS<MPPICCloudType>, 0); \
168 Foam::PackingModel<MPPICCloudType>:: \
169 adddictionaryConstructorToTable \
170 <Foam::PackingModels::SS<MPPICCloudType> > \
171 add##SS##CloudType##MPPICCloudType##ConstructorToTable_;
virtual autoPtr< PackingModel< CloudType > > clone() const =0
Construct and return a clone.
autoPtr< ParticleStressModel > particleStressModel_
Protected data.
A class for handling words, derived from string.
virtual ~PackingModel()
Destructor.
Templated base class for dsmc cloud.
Base class for packing models.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< PackingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, PackingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
Macros to ease declaration of run-time selection tables.
TypeName("packingModel")
Runtime type information.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
PackingModel(CloudType &owner)
Construct null from owner.