Go to the documentation of this file.
55 template<
class ParticleType>
class Cloud;
63 template<
class ParticleType>
87 void checkPatches()
const;
90 void initCloud(
const bool checkClass);
93 void calcCellWallFaces()
const;
96 void readCloudUniformProperties();
99 void writeCloudUniformProperties()
const;
111 template<
class ParticleT>
146 const bool checkClass =
true
205 template<
class TrackCloudType>
208 TrackCloudType&
cloud,
209 typename ParticleType::trackingData& td,
210 const scalar trackTime
223 const word& fieldName,
228 template<
class DataType>
236 template<
class DataType>
270 template<
class ParticleType>
271 Ostream&
operator<<(Ostream& os,
const Cloud<ParticleType>&
c);
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::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.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
virtual label nParcels() const
Return the number of particles in the cloud.
A Field of objects of type <T> with automated input and output using a compact storage....
ParticleType parcelType
Parcels are just particles.
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.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Generic templated field type.
DynamicList< label > & labels() const
Return temporary addressing.
void storeGlobalPositions() const
Call this before a topology change.
void deleteParticle(ParticleType &p)
Remove particle from cloud and delete.
geometryType
Cloud geometry type (internal or IO representations)
The IOstreamOption is a simple container for options an IOstream can normally have.
void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
static word cloudPropertiesName
Name of cloud properties dictionary.
Helper IO class to read and write particle coordinates (positions).
void deleteLostParticles()
Remove lost particles from cloud and delete.
Template class for intrusive linked lists.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td, const scalar trackTime)
Move the particles.
ParticleType particleType
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cloud is a registry collection of lagrangian particles.
cloud::geometryType geometryType_
Geometry type.
const polyMesh & pMesh() const
Return the polyMesh reference.
Base cloud calls templated on particle type.
Cloud(const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles)
Construct from mesh and a list of particles.
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.
Database for solution data, solver performance and other reduced data.
Intrusive doubly-linked list.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.