Base cloud calls templated on particle type. More...
Public Types | |
| typedef ParticleType | particleType |
| typedef ParticleType | parcelType |
| Parcels are just particles. More... | |
Public Member Functions | |
| TypeName ("Cloud") | |
| Runtime type information. More... | |
| Cloud (const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles) | |
| Construct from mesh and a list of particles. More... | |
| Cloud (const polyMesh &pMesh, const word &cloudName, const bool checkClass=true) | |
| Construct from mesh by reading from file with given cloud instance. More... | |
| const polyMesh & | pMesh () const |
| Return the polyMesh reference. More... | |
| virtual label | nParcels () const |
| Return the number of particles in the cloud. More... | |
| DynamicList< label > & | labels () const |
| Return temporary addressing. More... | |
| void | addParticle (ParticleType *pPtr) |
| Transfer particle to cloud. More... | |
| void | deleteParticle (ParticleType &p) |
| Remove particle from cloud and delete. More... | |
| void | deleteLostParticles () |
| Remove lost particles from cloud and delete. More... | |
| void | cloudReset (const Cloud< ParticleType > &c) |
| Reset the particles. More... | |
| template<class TrackCloudType > | |
| void | move (TrackCloudType &cloud, typename ParticleType::trackingData &td, const scalar trackTime) |
| Move the particles. More... | |
| void | autoMap (const mapPolyMesh &) |
| Remap the cells of particles corresponding to the. More... | |
| IOobject | fieldIOobject (const word &fieldName, const IOobject::readOption r) const |
| Helper to construct IOobject for field and current time. More... | |
| template<class DataType > | |
| void | checkFieldIOobject (const Cloud< ParticleType > &c, const IOField< DataType > &data) const |
| Check lagrangian data field. More... | |
| template<class DataType > | |
| void | checkFieldFieldIOobject (const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const |
| Check lagrangian data fieldfield. More... | |
| virtual void | writeFields () const |
| Write the field data for the cloud of particles Dummy at. More... | |
| virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
| Write using stream options. More... | |
| void | writePositions () const |
| Write positions to <cloudName>_positions.obj file. More... | |
| void | storeGlobalPositions () const |
| Call this before a topology change. More... | |
Static Public Attributes | |
| static word | cloudPropertiesName |
| Name of cloud properties dictionary. More... | |
Protected Attributes | |
| cloud::geometryType | geometryType_ |
| Geometry type. More... | |
Friends | |
| class | particle |
| template<class ParticleT > | |
| class | IOPosition |
Base cloud calls templated on particle type.
| typedef ParticleType particleType |
| typedef ParticleType parcelType |
| TypeName | ( | "Cloud< ParticleType >" | ) |
Runtime type information.
|
inline |
|
inlinevirtual |
Return the number of particles in the cloud.
Reimplemented in KinematicCloud< CloudType >, KinematicCloud< Foam::DSMCCloud >, and KinematicCloud< Cloud< basicKinematicCollidingParcel > >.
Definition at line 163 of file Cloud.H.
Referenced by KinematicCloud< Cloud< basicKinematicCollidingParcel > >::nParcels().
|
inline |
| void addParticle | ( | ParticleType * | pPtr | ) |
Transfer particle to cloud.
Definition at line 103 of file Cloud.C.
Referenced by streamLine::track(), and wallBoundedStreamLine::track().
| void deleteParticle | ( | ParticleType & | p | ) |
Remove particle from cloud and delete.
Definition at line 110 of file Cloud.C.
Referenced by InflationInjection< CloudType >::parcelsToInject().
| void deleteLostParticles | ( | ) |
| void cloudReset | ( | const Cloud< ParticleType > & | c | ) |
| void move | ( | TrackCloudType & | cloud, |
| typename ParticleType::trackingData & | td, | ||
| const scalar | trackTime | ||
| ) |
Move the particles.
Definition at line 146 of file Cloud.C.
Referenced by moleculeCloud::evolve(), DSMCCloud< ParcelType >::evolve(), solidParticleCloud::move(), streamLine::track(), and wallBoundedStreamLine::track().
| void autoMap | ( | const mapPolyMesh & | mapper | ) |
Remap the cells of particles corresponding to the.
mesh topology change
Definition at line 344 of file Cloud.C.
Referenced by DSMCCloud< ParcelType >::autoMap().
| Foam::IOobject fieldIOobject | ( | const word & | fieldName, |
| const IOobject::readOption | r | ||
| ) | const |
Helper to construct IOobject for field and current time.
Definition at line 188 of file CloudIO.C.
Referenced by molecule::readFields(), and molecule::writeFields().
Check lagrangian data field.
Definition at line 208 of file CloudIO.C.
Referenced by molecule::readFields().
| void checkFieldFieldIOobject | ( | const Cloud< ParticleType > & | c, |
| const CompactIOField< Field< DataType >, DataType > & | data | ||
| ) | const |
|
virtual |
Write the field data for the cloud of particles Dummy at.
this level.
Reimplemented in ReactingCloud< CloudType >, ReactingCloud< Foam::DSMCCloud >, ReactingMultiphaseCloud< CloudType >, ReactingMultiphaseCloud< Foam::DSMCCloud >, ReactingHeterogeneousCloud< CloudType >, and ReactingHeterogeneousCloud< Foam::DSMCCloud >.
|
virtual |
Write using stream options.
Only writes the cloud file if the Cloud isn't empty
Reimplemented in unmappedPassivePositionParticleCloud.
| void writePositions | ( | ) | const |
| void storeGlobalPositions | ( | ) | const |
|
friend |
|
protected |
|
static |