56template<
class ParticleType>
class Cloud;
57template<
class ParticleType>
class IOPosition;
64template<
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>
287template<
class ParticleType>
Intrusive doubly-linked list.
Base cloud calls templated on particle type.
bool readStoreFile(const IOobject &io, const IOobject &ioNew) const
Helper function to store a cloud field on its registry.
virtual label nParcels() const
Return the number of particles in the cloud.
static word cloudPropertiesName
Name of cloud properties dictionary.
void readFromFiles(objectRegistry &obr, const wordRes &selectFields, const wordRes &excludeFields=wordRes::null()) const
Read from files into objectRegistry.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
void writePositions() const
Write positions to <cloudName>_positions.obj file.
void deleteParticle(ParticleType &p)
Remove particle from cloud and delete.
void deleteLostParticles()
Remove lost particles from cloud and delete.
DynamicList< label > & labels() const
Return temporary addressing.
TypeName("Cloud")
Runtime type information.
virtual void writeFields() const
Write the field data for the cloud of particles Dummy at.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td, const scalar trackTime)
Move the particles.
void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
const polyMesh & pMesh() const
Return the polyMesh reference.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
ParticleType parcelType
Parcels are just particles.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
cloud::geometryType geometryType_
Geometry type.
void storeGlobalPositions() const
Call this before a topology change.
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
void checkFieldFieldIOobject(const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const
Check lagrangian data fieldfield.
ParticleType particleType
A Field of objects of type <T> with automated input and output using a compact storage....
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Generic templated field type.
Forward iterator with non-const access.
label size() const noexcept
The number of elements in table.
Template class for intrusive linked lists.
void clear()
Clear the contents of the list.
A primitive field of type <T> with automated input and output.
Helper IO class to read and write particle coordinates (positions).
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption
Enumeration defining the read options.
The IOstreamOption is a simple container for options an IOstream can normally have.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const iterator & end()
End of list for forward iterators.
const_iterator cbegin() const
Iterator to first item in list with const access.
const const_iterator & cend() const
End of list for forward iterators.
iterator begin()
Iterator to first item in list with non-const access.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A const_iterator for iterating across on values.
A cloud is a registry collection of lagrangian particles.
geometryType
Cloud geometry type (internal or IO representations)
Database for solution data, solver performance and other reduced data.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
const word cloudName(propsDict.get< word >("cloud"))