52 template<
class ParticleType>
55 template<
class ParticleType>
58 template<
class ParticleType>
70 template<
class ParticleType>
95 mutable label timeIndex_;
101 void initCloud(
const bool checkClass);
104 void readCloudUniformProperties();
107 void writeCloudUniformProperties()
const;
120 void storeRays()
const;
126 template<
class ParticleT>
158 const bool checkClass =
true
175 return patchNbrProc_;
182 return patchNbrProcPatch_;
188 return patchNonConformalCyclicPatches_;
262 template<
class TrackCloudType>
265 TrackCloudType&
cloud,
266 typename ParticleType::trackingData& td
287 const word& fieldName,
292 template<
class DataType>
300 template<
class DataType>
321 const bool write =
true
334 friend Ostream& operator<< <ParticleType>
Intrusive doubly-linked list.
Base cloud calls templated on particle type.
IDLList< ParticleType >::const_iterator const_iterator
void changeTimeStep()
Change the particles' state from the end of the previous time.
static word cloudPropertiesName
Name of cloud properties dictionary.
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
bool cpuLoad() const
Return true to cache per-cell CPU load.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
void writePositions() const
Write positions to <cloudName>_positions.obj file.
const labelListList & patchNonConformalCyclicPatches() const
Return map from patch index to connected non-conformal cyclics.
const polyMesh & pMesh() const
Return the polyMesh reference.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
const labelList & patchNbrProcPatch() const
Map from patch index to the corresponding patch index on the.
void deleteLostParticles()
Remove lost particles from cloud and delete.
const const_iterator cend() const
IDLList< ParticleType >::value_type value_type
IDLList< ParticleType >::iterator iterator
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write using given format, version and compression.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
label size() const
Return the number of particles in the cloud.
const const_iterator end() const
Cloud(const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
const labelList & patchNbrProc() const
Map from patch index to the neighbouring processor index.
const const_iterator begin() const
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >> &data) const
Check lagrangian data fieldfield.
void storeGlobalPositions() const
Call this before a topology change. Stores the particles global.
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td)
Move the particles.
const const_iterator cbegin() const
ParticleType particleType
A Field of objects of type <Type> with automated input and output using a compact storage....
Pre-declare SubField and related Field type.
Template class for intrusive linked lists.
void clear()
Clear the contents of the list.
A primitive field of type <Type> with automated input and output.
Helper IO class to read and write particle positions.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
readOption
Enumeration defining the read options.
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An STL-conforming const_iterator.
An STL-conforming iterator.
T value_type
Type of values the DLList contains.
const_iterator cbegin() const
const const_iterator & cend() const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for handling words, derived from string.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word cloudName(propsDict.lookup("cloudName"))