Go to the documentation of this file.
41 #ifndef PackingModel_H
42 #define PackingModel_H
56 class ParticleStressModel;
58 class CorrectionLimitingMethod;
61 class AveragingMethod;
67 template<
class CloudType>
70 public CloudSubModelBase<CloudType>
148 #define makePackingModel(CloudType) \
150 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
151 defineNamedTemplateTypeNameAndDebug \
153 Foam::PackingModel<MPPICCloudType>, \
159 defineTemplateRunTimeSelectionTable \
161 PackingModel<MPPICCloudType>, \
167 #define makePackingModelType(SS, CloudType) \
169 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
170 defineNamedTemplateTypeNameAndDebug \
171 (Foam::PackingModels::SS<MPPICCloudType>, 0); \
173 Foam::PackingModel<MPPICCloudType>:: \
174 adddictionaryConstructorToTable \
175 <Foam::PackingModels::SS<MPPICCloudType>> \
176 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 Foam::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 a number of values (eg,...
static autoPtr< PackingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
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.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
PackingModel(CloudType &owner)
Construct null from owner.