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