56template<
class ParticleType>
class Cloud;
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>
155 const bool checkClass =
true
179 DynamicList<label>&
labels()
const
214 template<
class TrackCloudType>
217 TrackCloudType&
cloud,
218 typename ParticleType::trackingData&
td,
219 const scalar trackTime
230 template<
class DataType>
238 template<
class DataType>
273 const bool writeOnProc
291 const
word& fieldName,
302template<
class ParticleType>
303Ostream&
operator<<(Ostream&
os,
const Cloud<ParticleType>& c);
Intrusive doubly-linked list.
const word cloudName(propsDict.get< word >("cloud"))
Base cloud calls templated on particle type.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
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.
IOobject fieldIOobject(const word &fieldName, IOobjectOption::readOption rOpt=IOobjectOption::NO_READ) const
Helper to construct IOobject for field and current time.
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.
Cloud(const polyMesh &mesh, const Foam::zero, const word &cloudName)
Construct without particles.
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.
ParticleType parcelType
Parcels are just particles.
void cloudReset(const Cloud< ParticleType > &c)
Reset the particles.
const polyMesh & pMesh() const noexcept
Return the polyMesh reference.
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 > > &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 primitive const node iterator (bidirectional).
A primitive non-const node iterator.
label size() const noexcept
The number of elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A primitive field of type <T> with automated input and output.
Helper IO class to read and write particle coordinates (positions).
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
readOption
Enumeration defining read preferences.
@ NO_READ
Nothing to be read.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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 cbegin() const
const const_iterator & cend() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cloud is a registry collection of lagrangian particles.
geometryType
Cloud geometry type (internal or IO representations).
cloud(const cloud &)=delete
No copy construct.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Registry of regIOobjects.
IOobject newIOobject(const word &name, IOobjectOption ioOpt) const
Create an IOobject at the current time instance (timeName) with the specified options.
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
static const wordRes & null() noexcept
Return a null wordRes (reference to a nullObject). Behaves like a empty wordRes.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
ILList< DLListBase, T > IDLList
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
#define FOAM_DEPRECATED_FOR(since, replacement)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.