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 lagrangian averaging methods.
const CloudType & owner() const
Return const access to the owner cloud.
CloudSubModelBase(CloudType &owner)
Construct null from owner cloud.
Base class for correction limiting methods.
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.
Base class for inter-particle stress models.
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.
DSMCCloud< dsmcParcel > CloudType
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.