34template<
class CloudType>
46template<
class CloudType>
60 Info<<
"Constructing cloud functions" <<
endl;
65 for (
const word& modelName :
dict.toc())
93template<
class CloudType>
107template<
class CloudType>
110 const typename parcelType::trackingData&
td
113 for (
auto& cfo : *
this)
120template<
class CloudType>
123 const typename parcelType::trackingData&
td
126 for (
auto& cfo : *
this)
133template<
class CloudType>
138 const point& position0,
139 const typename parcelType::trackingData&
td
142 if (!
td.keepParticle)
144 return td.keepParticle;
147 for (
auto& cfo : *
this)
149 if (!cfo.postMove(
p, dt, position0,
td))
159template<
class CloudType>
164 const typename parcelType::trackingData&
td
167 if (!
td.keepParticle)
169 return td.keepParticle;
172 for (
auto& cfo : *
this)
174 if (!cfo.postPatch(
p,
pp,
td))
184template<
class CloudType>
188 const typename parcelType::trackingData&
td
191 if (!
td.keepParticle)
193 return td.keepParticle;
196 for (
auto& cfo : *
this)
198 if (!cfo.postFace(
p,
td))
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
List of cloud function objects.
const CloudType & owner_
Reference to the owner cloud.
virtual bool postFace(parcelType &p, const typename parcelType::trackingData &td)
Post-face hook.
virtual bool postPatch(parcelType &p, const polyPatch &pp, const typename parcelType::trackingData &td)
Post-patch hook.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
const dictionary dict_
Dictionary.
const dictionary & dict() const
Return the forces dictionary.
const CloudType & owner() const
Return const access to the cloud owner.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
virtual bool postMove(parcelType &p, const scalar dt, const point &position0, const typename parcelType::trackingData &td)
Post-move hook.
CloudFunctionObjectList(CloudType &owner)
Null constructor.
Templated cloud function object base class.
static autoPtr< CloudFunctionObject< CloudType > > New(const dictionary &dict, CloudType &owner, const word &objectType, const word &modelName)
Selector.
label size() const noexcept
The number of elements in list.
particle::trackingData trackingData
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const CloudFunctionObject< CloudType > * set(const label i) const
constexpr PtrList() noexcept
void resize(const label newLen)
label count() const noexcept
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
A patch is a list of labels that address the faces in the global face list.
A class for handling words, derived from Foam::string.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
DSMCCloud< dsmcParcel > CloudType
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
vector point
Point is a vector.