42 #ifndef IsotropyModel_H 43 #define IsotropyModel_H 63 template<
class CloudType>
66 public CloudSubModelBase<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_;
A list of keyword definitions, which are a keyword followed by a number of values (eg...
IsotropyModel(CloudType &owner)
Construct null from owner.
virtual void calculate()=0
Member Functions.
virtual autoPtr< IsotropyModel< CloudType > > clone() const =0
Construct and return a clone.
const dictionary & dict() const
Return const access to the cloud dictionary.
const CloudType & owner() const
Return const access to the owner cloud.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
declareRunTimeSelectionTable(autoPtr, IsotropyModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~IsotropyModel()
Destructor.
A class for handling words, derived from Foam::string.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
Base class for collisional return-to-isotropy models.
TypeName("isotropyModel")
Runtime type information.
static autoPtr< IsotropyModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
Templated base class for dsmc cloud.