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