52 template<
class ParticleType>
55 template<
class ParticleType>
58 template<
class ParticleType>
70 template<
class ParticleType>
85 mutable label nTrackingRescues_;
94 void checkPatches()
const;
97 void initCloud(
const bool checkClass);
100 void calcCellWallFaces()
const;
103 void readCloudUniformProperties();
106 void writeCloudUniformProperties()
const;
112 template<
class ParticleT>
152 const bool checkClass =
true 162 const bool checkClass =
true 189 return nTrackingRescues_;
196 if (cloud::debug &&
size() && (nTrackingRescues_ %
size() == 0))
198 Pout<<
" " << nTrackingRescues_
199 <<
" tracking rescues " <<
endl;
218 const const_iterator
begin()
const 223 const const_iterator
cbegin()
const 228 const const_iterator
end()
const 233 const const_iterator
cend()
const 267 template<
class TrackData>
268 void move(TrackData& td,
const scalar trackTime);
272 template<
class TrackData>
281 const word& fieldName,
286 template<
class DataType>
294 template<
class DataType>
327 friend Ostream& operator<< <ParticleType>
ParticleType particleType
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 checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
DynamicList< label > & labels()
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
const_iterator cbegin() const
const const_iterator & cend() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word cloudName(propsDict.lookup("cloudName"))
label nTrackingRescues() const
Return nTrackingRescues.
label size() const
Return number of elements in list.
readOption
Enumeration defining the read options.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static word cloudPropertiesName
Name of cloud properties dictionary.
const const_iterator end() const
const const_iterator cend() const
IDLList< ParticleType >::iterator iterator
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write using given format, version and compression.
Cloud(const polyMesh &mesh, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
void autoMap(TrackData &td, const mapPolyMesh &)
Remap the cells of particles corresponding to the.
Pre-declare SubField and related Field type.
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.
Base cloud calls templated on particle type.
void move(TrackData &td, const scalar trackTime)
Move the particles.
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...
prefixOSstream Pout(cout,"Pout")
const const_iterator cbegin() const
const const_iterator begin() const
Database for solution data, solver performance and other reduced data.
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
Intrusive doubly-linked list.
virtual void readFields()
Read the field data for the cloud of particles. Dummy at.
IDLList< ParticleType >::const_iterator const_iterator
TypeName("Cloud")
Runtime type information.
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.
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.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
virtual bool hasWallImpactDistance() const
Switch to specify if particles of the cloud can return.
const PackedBoolList & cellHasWallFaces() const
Whether each cell has any wall faces (demand driven data)
Helper IO class to read and write particle positions.
void trackingRescue() const
Increment the nTrackingRescues counter.
const polyMesh & pMesh() const
Return the polyMesh reference.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.
void writePositions() const
Write positions to <cloudName>_positions.obj file.