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 momentumCloudType; \
189 defineNamedTemplateTypeNameAndDebug \
191 Foam::CloudFunctionObject<momentumCloudType>, \
196 defineTemplateRunTimeSelectionTable \
198 CloudFunctionObject<momentumCloudType>, \
204 #define makeCloudFunctionObjectType(SS, CloudType) \
206 typedef Foam::CloudType::momentumCloudType momentumCloudType; \
207 defineNamedTemplateTypeNameAndDebug(Foam::SS<momentumCloudType>, 0); \
209 Foam::CloudFunctionObject<momentumCloudType>:: \
210 adddictionaryConstructorToTable<Foam::SS<momentumCloudType>> \
211 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 keyword definitions, which are a keyword followed by any number of values (e....
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.