Go to the documentation of this file.
36 #ifndef CloudFunctionObject_H
37 #define CloudFunctionObject_H
56 template<
class CloudType>
106 const word& objectType,
132 const word& objectType,
153 const point& position0,
162 const scalar trackFraction,
192 #define makeCloudFunctionObject(CloudType) \
194 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
195 defineNamedTemplateTypeNameAndDebug \
197 Foam::CloudFunctionObject<kinematicCloudType>, \
202 defineTemplateRunTimeSelectionTable \
204 CloudFunctionObject<kinematicCloudType>, \
210 #define makeCloudFunctionObjectType(SS, CloudType) \
212 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
213 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
215 Foam::CloudFunctionObject<kinematicCloudType>:: \
216 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType> > \
217 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
A class for handling words, derived from string.
A class for handling file names.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
fileName outputDir_
Output path.
CloudFunctionObject(CloudType &owner)
Construct null from owner.
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
virtual ~CloudFunctionObject()
Destructor.
const word & modelName() const
Return const access to the name of the sub-model.
virtual void write()
Write post-processing info.
fileName outputTimeDir() const
Return the output time path.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dictionary & dict() const
Return const access to the cloud dictionary.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
virtual void postPatch(const typename CloudType::parcelType &p, const polyPatch &pp, const scalar trackFraction, const tetIndices &testIs, bool &keepParticle)
Post-patch hook.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void postEvolve()
Post-evolve hook.
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual void postFace(const typename CloudType::parcelType &p, const label faceI, bool &keepParticle)
Post-face hook.
Macros to ease declaration of run-time selection tables.
Templated cloud function object base class.
virtual void postMove(typename CloudType::parcelType &p, const label cellI, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
TypeName("cloudFunctionObject")
Runtime type information.
virtual void preEvolve()
Pre-evolve hook.
declareRunTimeSelectionTable(autoPtr, CloudFunctionObject, dictionary,(const dictionary &dict, CloudType &owner, const word &modelName),(dict, owner, modelName))
Declare runtime constructor selection table.
const fileName & outputDir() const
Return the output path.