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::kinematicCloudType kinematicCloudType; \ 130 defineTemplateTypeNameAndDebug \ 131 (Foam::DispersionModel<kinematicCloudType>, 0); \ 135 defineTemplateRunTimeSelectionTable \ 137 DispersionModel<kinematicCloudType>, \ 142 #define makeDispersionModelType(SS, CloudType) \ 144 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 145 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 147 Foam::DispersionModel<kinematicCloudType>:: \ 148 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 149 add##SS##CloudType##kinematicCloudType##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.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
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.