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>
const word cloudName(propsDict.lookup("cloudName"))
void clear()
Clear the contents of the list.
void autoMap(TrackData &td, const mapPolyMesh &)
Remap the cells of particles corresponding to the.
const const_iterator & cend() const
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write using given format, version and compression.
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.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Database for solution data, solver performance and other reduced data.
void trackingRescue() const
Increment the nTrackingRescues counter.
IDLList< ParticleType >::const_iterator const_iterator
void move(TrackData &td, const scalar trackTime)
Move the particles.
label size() const
Return number of elements in list.
Intrusive doubly-linked list.
const polyMesh & pMesh() const
Return the polyMesh reference.
const PackedBoolList & cellHasWallFaces() const
Whether each cell has any wall faces (demand driven data)
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
streamFormat
Enumeration for the format of data in the stream.
readOption
Enumeration defining the read options.
Helper IO class to read and write particle positions.
virtual bool hasWallImpactDistance() const
Switch to specify if particles of the cloud can return.
label nTrackingRescues() const
Return nTrackingRescues.
const const_iterator cend() const
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
A cloud is a collection of lagrangian particles.
Pre-declare SubField and related Field type.
compressionType
Enumeration for the format of data in the stream.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
const_iterator cbegin() const
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
Mesh consisting of general polyhedral cells.
const const_iterator cbegin() const
const const_iterator begin() const
virtual void readFields()
Read the field data for the cloud of particles. Dummy at.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
const const_iterator end() const
static word cloudPropertiesName
Name of cloud properties dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar c
Speed of light in a vacuum.
TypeName("Cloud")
Runtime type information.
Base cloud calls templated on particle type.
Cloud(const polyMesh &mesh, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
IDLList< ParticleType >::iterator iterator
ParticleType particleType
DynamicList< label > & labels()
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
prefixOSstream Pout(cout,"Pout")
A primitive field of type <T> with automated input and output.
void writePositions() const
Write positions to <cloudName>_positions.obj file.