36 #ifndef IsotropyModel_H
37 #define IsotropyModel_H
57 template<
class CloudType>
132 #define makeIsotropyModel(CloudType) \
134 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
135 defineNamedTemplateTypeNameAndDebug \
137 Foam::IsotropyModel<MPPICCloudType>, \
143 defineTemplateRunTimeSelectionTable \
145 IsotropyModel<MPPICCloudType>, \
151 #define makeIsotropyModelType(SS, CloudType) \
153 typedef Foam::CloudType::MPPICCloudType MPPICCloudType; \
154 defineNamedTemplateTypeNameAndDebug \
155 (Foam::IsotropyModels::SS<MPPICCloudType>, 0); \
157 Foam::IsotropyModel<MPPICCloudType>:: \
158 adddictionaryConstructorToTable \
159 <Foam::IsotropyModels::SS<MPPICCloudType>> \
160 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.
virtual autoPtr< IsotropyModel< CloudType > > clone() const =0
Construct and return a clone.
TypeName("isotropyModel")
Runtime type information.
IsotropyModel(CloudType &owner)
Construct null from owner.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.