42#ifndef CloudFunctionObject_H
43#define CloudFunctionObject_H
62template<
class CloudType>
117 const word& objectType,
143 const word& objectType,
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_;
Templated cloud function object base class.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
fileName writeTimeDir() const
Return the output time path.
virtual ~CloudFunctionObject()=default
Destructor.
declareRunTimeSelectionTable(autoPtr, CloudFunctionObject, dictionary,(const dictionary &dict, CloudType &owner, const word &modelName),(dict, owner, modelName))
Declare runtime constructor selection table.
virtual void postMove(parcelType &p, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
TypeName("cloudFunctionObject")
Runtime type information.
virtual void postPatch(const parcelType &p, const polyPatch &pp, bool &keepParticle)
Post-patch hook.
const fileName & outputDir() const
Return the output path.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
virtual void postFace(const parcelType &p, bool &keepParticle)
Post-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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class used to pass data into container.
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 Foam::string.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.