37#ifndef DispersionModel_H
38#define DispersionModel_H
54template<
class CloudType>
133#define makeDispersionModel(CloudType) \
135 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
136 defineTemplateTypeNameAndDebug \
137 (Foam::DispersionModel<kinematicCloudType>, 0); \
141 defineTemplateRunTimeSelectionTable \
143 DispersionModel<kinematicCloudType>, \
148#define makeDispersionModelType(SS, CloudType) \
150 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
151 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
153 Foam::DispersionModel<kinematicCloudType>:: \
154 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \
155 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
Base class for dispersion modelling.
virtual ~DispersionModel()
Destructor.
TypeName("dispersionModel")
Runtime type information.
static autoPtr< DispersionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual vector update(const scalar dt, const label celli, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)=0
Update (disperse particles)
virtual autoPtr< DispersionModel< CloudType > > clone() const =0
Construct and return a clone.
declareRunTimeSelectionTable(autoPtr, DispersionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
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.