31 #ifndef DispersionModel_H 32 #define DispersionModel_H 48 template<
class CloudType>
51 public CloudSubModelBase<CloudType>
67 const dictionary&
dict,
82 const dictionary& dict,
91 virtual autoPtr<DispersionModel<CloudType>>
clone()
const = 0;
99 static autoPtr<DispersionModel<CloudType>>
New 101 const dictionary& dict,
127 #define makeDispersionModel(CloudType) \ 129 typedef Foam::CloudType::momentumCloudType momentumCloudType; \ 130 defineTemplateTypeNameAndDebug \ 131 (Foam::DispersionModel<momentumCloudType>, 0); \ 135 defineTemplateRunTimeSelectionTable \ 137 DispersionModel<momentumCloudType>, \ 142 #define makeDispersionModelType(SS, CloudType) \ 144 typedef Foam::CloudType::momentumCloudType momentumCloudType; \ 145 defineNamedTemplateTypeNameAndDebug(Foam::SS<momentumCloudType>, 0); \ 147 Foam::DispersionModel<momentumCloudType>:: \ 148 adddictionaryConstructorToTable<Foam::SS<momentumCloudType>> \ 149 add##SS##CloudType##momentumCloudType##ConstructorToTable_; intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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))
Vector< scalar > vector
A scalar version of the templated Vector.
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.
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)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
DispersionModel(CloudType &owner)
Construct null from owner.
Macros to ease declaration of run-time selection tables.
TypeName("dispersionModel")
Runtime type information.