36 #ifndef CloudFunctionObject_H
37 #define CloudFunctionObject_H
56 template<
class CloudType>
106 const word& objectType,
132 const word& objectType,
152 const point& position0,
186 #define makeCloudFunctionObject(CloudType) \
188 typedef Foam::CloudType::momentumCloudType CloudType##momentumCloudType; \
190 defineNamedTemplateTypeNameAndDebug \
192 Foam::CloudFunctionObject<CloudType##momentumCloudType>, \
198 defineTemplateRunTimeSelectionTable \
200 CloudFunctionObject<CloudType##momentumCloudType>, \
206 #define makeCloudFunctionObjectType(SS, CloudType) \
208 typedef Foam::CloudType::momentumCloudType CloudType##momentumCloudType; \
210 defineNamedTemplateTypeNameAndDebug \
212 Foam::SS<CloudType##momentumCloudType>, \
216 Foam::CloudFunctionObject<CloudType##momentumCloudType>:: \
217 adddictionaryConstructorToTable<Foam::SS<CloudType##momentumCloudType>>\
218 add##SS##CloudType##momentumCloudType##ConstructorToTable_;
Templated cloud function object base class.
virtual void postEvolve()
Post-evolve hook.
fileName writeTimeDir() const
Return the output time path.
declareRunTimeSelectionTable(autoPtr, CloudFunctionObject, dictionary,(const dictionary &dict, CloudType &owner, const word &modelName),(dict, owner, modelName))
Declare runtime constructor selection table.
virtual void postMove(typename CloudType::parcelType &p, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
CloudFunctionObject(CloudType &owner)
Construct null from owner.
TypeName("cloudFunctionObject")
Runtime type information.
virtual ~CloudFunctionObject()
Destructor.
const fileName & outputDir() const
Return the output path.
virtual void postFace(const typename CloudType::parcelType &p)
Post-face hook.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
virtual void preEvolve()
Pre-evolve hook.
virtual void postPatch(const typename CloudType::parcelType &p, const polyPatch &pp)
Post-patch hook.
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
virtual void preFace(const typename CloudType::parcelType &p)
Pre-face hook.
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling file names.
A patch is a list of labels that address the faces in the global face list.
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
A class for handling words, derived from string.
Macros to ease declaration of run-time selection tables.