Go to the documentation of this file.
52 template<
class ParticleType>
55 template<
class ParticleType>
58 template<
class ParticleType>
70 template<
class ParticleType>
112 template<
class ParticleT>
152 const bool checkClass =
true
162 const bool checkClass =
true
199 <<
" tracking rescues " <<
endl;
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>
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
void calcCellWallFaces() const
Find all cells which have wall faces.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void initCloud(const bool checkClass)
Initialise cloud on IO constructor.
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
A class for handling words, derived from string.
A primitive field of type <T> with automated input and output.
TypeName("Cloud")
Runtime type information.
void writePositions() const
Write positions to <cloudName>_positions.obj file.
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.
autoPtr< PackedBoolList > cellWallFacesPtr_
Does the cell have wall faces.
IDLList< ParticleType >::iterator iterator
Ostream & endl(Ostream &os)
Add newline and flush stream.
A Field of objects of type <T> with automated input and output using a compact storage....
void trackingRescue() const
Increment the nTrackingRescues counter.
DynamicList< label > & labels()
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
Mesh consisting of general polyhedral cells.
DynamicList< label > labels_
Temporary storage for addressing. Used in findTris.
virtual 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.
Intrusive doubly-linked list.
Pre-declare SubField and related Field type.
void writeCloudUniformProperties() const
Write cloud properties dictionary.
const const_iterator begin() const
void deleteParticle(ParticleType &)
Remove particle from cloud and delete.
const PackedBoolList & cellHasWallFaces() const
Whether each cell has any wall faces (demand driven data)
const const_iterator end() const
static word cloudPropertiesName
Name of cloud properties dictionary.
virtual void readFields()
Read the field data for the cloud of particles. Dummy at.
Helper IO class to read and write particle positions.
void clear()
Clear the contents of the list.
label nTrackingRescues() const
Return nTrackingRescues.
ParticleType particleType
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
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.
const polyMesh & pMesh() const
Return the polyMesh reference.
IDLList< ParticleType >::const_iterator const_iterator
const polyMesh & polyMesh_
prefixOSstream Pout(cout, "Pout")
Base cloud calls templated on particle type.
Cloud(const polyMesh &mesh, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
const word cloudName(propsDict.lookup("cloudName"))
void autoMap(TrackData &td, const mapPolyMesh &)
Remap the cells of particles corresponding to the.
const const_iterator cbegin() const
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
readOption
Enumeration defining the read options.
label nTrackingRescues_
Count of how many tracking rescue corrections have been.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write using given format, version and compression.
void readCloudUniformProperties()
Read cloud properties dictionary.
void checkPatches() const
Check patches.
const const_iterator cend() const
Database for solution data, solver performance and other reduced data.
void move(TrackData &td, const scalar trackTime)
Move the particles.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
streamFormat
Enumeration for the format of data in the stream.