Go to the documentation of this file.
56 template<
class ParticleType>
class Cloud;
64 template<
class ParticleType>
88 void checkPatches()
const;
91 void initCloud(
const bool checkClass);
94 void calcCellWallFaces()
const;
97 void readCloudUniformProperties();
100 void writeCloudUniformProperties()
const;
112 template<
class ParticleT>
147 const bool checkClass =
true
206 template<
class TrackCloudType>
209 TrackCloudType&
cloud,
210 typename ParticleType::trackingData& td,
211 const scalar trackTime
224 const word& fieldName,
229 template<
class DataType>
237 template<
class DataType>
286 template<
class ParticleType>
287 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.
bool readStoreFile(const IOobject &io, const IOobject &ioNew) const
Helper function to store a cloud field on its registry.
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.
Registry of regIOobjects.
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.
void readFromFiles(objectRegistry &obr, const wordRes &selectFields) const
Read from files into objectRegistry.
Template class for intrusive linked lists.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td, const scalar trackTime)
Move the particles.
OBJstream os(runTime.globalPath()/outputName)
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.
A List of wordRe with additional matching capabilities.
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.