52 template<
class ParticleType>
55 template<
class ParticleType>
58 template<
class ParticleType>
70 template<
class ParticleType>
85 mutable label nTrackingRescues_;
97 void checkPatches()
const;
100 void initCloud(
const bool checkClass);
103 void calcCellWallFaces()
const;
106 void readCloudUniformProperties();
109 void writeCloudUniformProperties()
const;
115 template<
class ParticleT>
149 const bool checkClass =
true 176 return nTrackingRescues_;
183 if (cloud::debug &&
size() && (nTrackingRescues_ %
size() == 0))
185 Pout<<
" " << nTrackingRescues_
186 <<
" tracking rescues " <<
endl;
205 const const_iterator
begin()
const 210 const const_iterator
cbegin()
const 215 const const_iterator
end()
const 220 const const_iterator
cend()
const 257 template<
class TrackData>
258 void move(TrackData& td,
const scalar trackTime);
270 const word& fieldName,
275 template<
class DataType>
283 template<
class DataType>
317 friend Ostream& operator<< <ParticleType>
ParticleType particleType
Template class for intrusive linked lists.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool valid) const
Write using given format, version and compression.
const const_iterator & cend() const
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
bool hasWallImpactDistance() const
Switch to specify if particles of the cloud can return.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DynamicList< label > & labels() const
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
label nTrackingRescues() const
Return nTrackingRescues.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
Cloud(const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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 trackingRescue() const
Increment the nTrackingRescues counter.
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.
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...
const PackedBoolList & cellHasWallFaces() const
Whether each cell has any wall faces (demand driven data)
Database for solution data, solver performance 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.
prefixOSstream Pout(cout, "Pout")
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"))
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.