42#ifndef IsotropyModel_H
43#define IsotropyModel_H
63template<
class CloudType>
138#define makeIsotropyModel(CloudType) \
140 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
141 defineNamedTemplateTypeNameAndDebug \
143 Foam::IsotropyModel<kinematicCloudType>, \
149 defineTemplateRunTimeSelectionTable \
151 IsotropyModel<kinematicCloudType>, \
157#define makeIsotropyModelType(SS, CloudType) \
159 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
160 defineNamedTemplateTypeNameAndDebug \
161 (Foam::IsotropyModels::SS<kinematicCloudType>, 0); \
163 Foam::IsotropyModel<kinematicCloudType>:: \
164 adddictionaryConstructorToTable \
165 <Foam::IsotropyModels::SS<kinematicCloudType>> \
166 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
171#define makeIsotropyModelMPPIC(CloudType) \
173 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
174 defineNamedTemplateTypeNameAndDebug \
175 (Foam::IsotropyModel<MPPICCloudType>, 0); \
179 defineTemplateRunTimeSelectionTable \
181 IsotropyModel<MPPICCloudType>, \
187#define makeIsotropyModelTypeMPPIC(SS, CloudType) \
189 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
190 defineNamedTemplateTypeNameAndDebug \
191 (Foam::IsotropyModels::SS<MPPICCloudType>, 0); \
193 Foam::IsotropyModel<MPPICCloudType>:: \
194 adddictionaryConstructorToTable \
195 <Foam::IsotropyModels::SS<MPPICCloudType>> \
196 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.
Base class for collisional return-to-isotropy models.
TypeName("isotropyModel")
Runtime type information.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
declareRunTimeSelectionTable(autoPtr, IsotropyModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual void calculate()=0
Member Functions.
static autoPtr< IsotropyModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual ~IsotropyModel()
Destructor.
virtual autoPtr< IsotropyModel< CloudType > > clone() const =0
Construct and return a clone.
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.