37 #ifndef DispersionModel_H 38 #define DispersionModel_H 54 template<
class CloudType>
57 public CloudSubModelBase<CloudType>
73 const dictionary&
dict,
88 const dictionary&
dict,
97 virtual autoPtr<DispersionModel<CloudType>>
clone()
const = 0;
105 static autoPtr<DispersionModel<CloudType>>
New 107 const dictionary&
dict,
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_; DSMCCloud< dsmcParcel > CloudType
static autoPtr< DispersionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
declareRunTimeSelectionTable(autoPtr, DispersionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual ~DispersionModel()
Destructor.
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.
virtual autoPtr< DispersionModel< CloudType > > clone() const =0
Construct and return a clone.
virtual vector update(const scalar dt, const label celli, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)=0
Update (disperse particles)
DispersionModel(CloudType &owner)
Construct null from owner.
Macros to ease declaration of run-time selection tables.
TypeName("dispersionModel")
Runtime type information.