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... | |
template<class Type > | |
bool | readStoreFile (const IOobject &io, const IOobject &ioNew) const |
Helper function to store a cloud field on its registry. More... | |
void | readFromFiles (objectRegistry &obr, const wordRes &selectFields) const |
Read from files into objectRegistry. 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 >, and KinematicCloud< Cloud< basicKinematicCollidingParcel > >.
Definition at line 164 of file Cloud.H.
Referenced by KinematicCloud< Cloud< basicKinematicCollidingParcel > >::nParcels().
|
inline |
void addParticle | ( | ParticleType * | pPtr | ) |
Transfer particle to cloud.
Definition at line 104 of file Cloud.C.
Referenced by streamLine::track(), and wallBoundedStreamLine::track().
void deleteParticle | ( | ParticleType & | p | ) |
Remove particle from cloud and delete.
Definition at line 111 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 147 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 345 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 192 of file CloudIO.C.
Referenced by molecule::readFields(), and molecule::writeFields().
Check lagrangian data field.
Definition at line 212 of file CloudIO.C.
Referenced by molecule::readFields().
void checkFieldFieldIOobject | ( | const Cloud< ParticleType > & | c, |
const CompactIOField< Field< DataType >, DataType > & | data | ||
) | const |
void readFromFiles | ( | objectRegistry & | obr, |
const wordRes & | selectFields | ||
) | const |
Read from files into objectRegistry.
|
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 |