52 template<
class ParticleType>
55 template<
class ParticleType>
58 template<
class ParticleType>
70 template<
class ParticleType>
88 void checkPatches()
const;
91 void initCloud(
const bool checkClass);
94 void readCloudUniformProperties();
97 void writeCloudUniformProperties()
const;
103 template<
class ParticleT>
137 const bool checkClass =
true 160 const const_iterator
begin()
const 165 const const_iterator
cbegin()
const 170 const const_iterator
end()
const 175 const const_iterator
cend()
const 211 template<
class TrackCloudType>
214 TrackCloudType&
cloud,
215 typename ParticleType::trackingData& td,
216 const scalar trackTime
229 const word& fieldName,
234 template<
class DataType>
242 template<
class DataType>
263 const bool write =
true 276 friend Ostream& operator<< <ParticleType>
ParticleType particleType
Template class for intrusive linked lists.
const const_iterator & cend() const
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write using given format, version and compression.
Cloud(const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
label size() const
Return the number of particles in the cloud.
readOption
Enumeration defining the read options.
const const_iterator end() const
void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
An STL-conforming const_iterator.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static word cloudPropertiesName
Name of cloud properties dictionary.
const const_iterator cbegin() const
IDLList< ParticleType >::iterator iterator
const_iterator cbegin() const
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
Pre-declare SubField and related Field type.
void storeGlobalPositions() const
Call this before a topology change. Stores the particles global.
Intrusive doubly-linked list.
A class for handling words, derived from string.
void clear()
Clear the contents of the list.
A cloud is a collection of lagrangian particles.
streamFormat
Enumeration for the format of data in the stream.
An STL-conforming iterator.
const const_iterator cend() const
Base cloud calls templated on particle type.
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...
Database for solution and other reduced data.
const const_iterator begin() const
void deleteLostParticles()
Remove lost particles from cloud and delete.
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
IDLList< ParticleType >::const_iterator const_iterator
TypeName("Cloud")
Runtime type information.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td, const scalar trackTime)
Move the particles.
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
const dimensionedScalar c
Speed of light in a vacuum.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
const word cloudName(propsDict.lookup("cloudName"))
virtual bool write(const bool write=true) const
Write using setting from DB.
Helper IO class to read and write particle positions.
const polyMesh & pMesh() const
Return the polyMesh reference.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A primitive field of type <T> with automated input and output.
void writePositions() const
Write positions to <cloudName>_positions.obj file.