42 #ifndef CloudFunctionObject_H 43 #define CloudFunctionObject_H 62 template<
class CloudType>
117 const word& objectType,
143 const word& objectType,
153 virtual void preEvolve(
const typename parcelType::trackingData& td);
158 const typename parcelType::trackingData& td
166 const point& position0,
202 #define makeCloudFunctionObject(CloudType) \ 204 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 205 defineNamedTemplateTypeNameAndDebug \ 207 Foam::CloudFunctionObject<kinematicCloudType>, \ 212 defineTemplateRunTimeSelectionTable \ 214 CloudFunctionObject<kinematicCloudType>, \ 220 #define makeCloudFunctionObjectType(SS, CloudType) \ 222 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 223 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 225 Foam::CloudFunctionObject<kinematicCloudType>:: \ 226 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 227 add##SS##CloudType##kinematicCloudType##ConstructorToTable_; virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
A class for handling file names.
virtual ~CloudFunctionObject()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
Base class for cloud sub-models.
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 Foam::string.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const fileName & outputDir() const
Return the output path.
virtual void postFace(const parcelType &p, bool &keepParticle)
Post-face hook.
declareRunTimeSelectionTable(autoPtr, CloudFunctionObject, dictionary,(const dictionary &dict, CloudType &owner, const word &modelName),(dict, owner, modelName))
Declare runtime constructor selection table.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
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.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
virtual void postMove(parcelType &p, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
virtual void postPatch(const parcelType &p, const polyPatch &pp, bool &keepParticle)
Post-patch hook.