36 #ifndef PackingModel_H
37 #define PackingModel_H
51 class ParticleStressModel;
53 class CorrectionLimitingMethod;
56 class AveragingMethod;
62 template<
class 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_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Base class for packing models.
virtual autoPtr< PackingModel< CloudType > > clone() const =0
Construct and return a clone.
autoPtr< ParticleStressModel > particleStressModel_
Protected data.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const =0
Calculate the velocity correction.
static autoPtr< PackingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
PackingModel(CloudType &owner)
Construct null from owner.
declareRunTimeSelectionTable(autoPtr, PackingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~PackingModel()
Destructor.
TypeName("packingModel")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.