57class ParticleStressModel;
59class CorrectionLimitingMethod;
68template<
class CloudType>
149#define makePackingModel(CloudType) \
151 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
152 defineNamedTemplateTypeNameAndDebug \
154 Foam::PackingModel<kinematicCloudType>, \
160 defineTemplateRunTimeSelectionTable \
162 PackingModel<kinematicCloudType>, \
168#define makePackingModelType(SS, CloudType) \
170 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
171 defineNamedTemplateTypeNameAndDebug \
172 (Foam::PackingModels::SS<kinematicCloudType>, 0); \
174 Foam::PackingModel<kinematicCloudType>:: \
175 adddictionaryConstructorToTable \
176 <Foam::PackingModels::SS<kinematicCloudType>> \
177 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
182#define makePackingModelMPPIC(CloudType) \
184 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
185 defineNamedTemplateTypeNameAndDebug \
187 Foam::PackingModel<MPPICCloudType>, \
193 defineTemplateRunTimeSelectionTable \
195 PackingModel<MPPICCloudType>, \
201#define makePackingModelTypeMPPIC(SS, CloudType) \
203 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
204 defineNamedTemplateTypeNameAndDebug \
205 (Foam::PackingModels::SS<MPPICCloudType>, 0); \
207 Foam::PackingModel<MPPICCloudType>:: \
208 adddictionaryConstructorToTable \
209 <Foam::PackingModels::SS<MPPICCloudType>> \
210 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.
declareRunTimeSelectionTable(autoPtr, PackingModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~PackingModel()
Destructor.
TypeName("packingModel")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.