#include <lagrangian/Cloud.H>
Definition at line 68 of file Cloud.H.
Inheritance diagram for Cloud< ParticleType >:
Collaboration diagram for Cloud< ParticleType >:Public Types | |
| typedef ParticleType | particleType |
| typedef IDLList< ParticleType > ::iterator | iterator |
| typedef IDLList< ParticleType > ::const_iterator | const_iterator |
Public Member Functions | |
| TypeName ("Cloud") | |
| Runtime type information.
| |
| Cloud (const polyMesh &mesh, const IDLList< ParticleType > &particles) | |
| Construct from mesh and a list of particles.
| |
| Cloud (const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles) | |
| Construct from mesh, cloud name, and a list of particles.
| |
| Cloud (const polyMesh &mesh, const bool checkClass=true) | |
| Construct from mesh by reading from file.
| |
| Cloud (const polyMesh &pMesh, const word &cloudName, const bool checkClass=true) | |
| Construct from mesh by reading from file with given cloud instance.
| |
| const polyMesh & | pMesh () const |
| Return the polyMesh reference.
| |
| bool | internalFace (const label facei) const |
| Is this global face an internal face?
| |
| bool | boundaryFace (const label facei) const |
| Is this global face a boundary face?
| |
| label | facePatch (const label facei) const |
| Which patch is this global face on.
| |
| label | patchFace (const label patchi, const label facei) const |
| Which face of this patch is this global face.
| |
| label | size () const |
| Return number of elements in table.
| |
| const const_iterator | begin () const |
| const_iterator set to the beginning of the HashTable
| |
| const const_iterator | cbegin () const |
| const_iterator set to the beginning of the HashTable
| |
| const const_iterator | end () const |
| const_iterator set to beyond the end of the HashTable
| |
| const const_iterator | cend () const |
| const_iterator set to beyond the end of the HashTable
| |
| iterator | begin () |
| iterator set to the begining of the HashTable
| |
| iterator | end () |
| iterator set to beyond the end of the HashTable
| |
| void | clear () |
| Clear the contents of the list.
| |
| label | getNewParticleID () const |
| Get unique particle creation id.
| |
| void | addParticle (ParticleType *pPtr) |
| Transfer particle to cloud.
| |
| void | deleteParticle (ParticleType &) |
| Remove particle from cloud and delete.
| |
| template<class TrackingData > | |
| void | move (TrackingData &td) |
| Move the particles.
| |
| virtual void | autoMap (const mapPolyMesh &) |
| Remap the cells of particles corresponding to the.
| |
| IOobject | fieldIOobject (const word &fieldName, const IOobject::readOption r) const |
| Helper to construct IOobject for field and current time.
| |
| template<class DataType > | |
| void | checkFieldIOobject (const Cloud< ParticleType > &c, const IOField< DataType > &data) const |
| Check lagrangian data field.
| |
| virtual void | readFields () |
| Read the field data for the cloud of particles. Dummy at.
| |
| virtual void | writeFields () const |
| Write the field data for the cloud of particles Dummy at.
| |
| virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
| Write using given format, version and compression.
| |
| void | writePositions () const |
| Write positions to <cloudName>_positions.obj file.
| |
Static Public Attributes | |
| static word | cloudPropertiesName |
| Name of cloud properties dictionary.
| |
Friends | |
| class | Particle |
| class | IOPosition |
| Ostream & | operator (Ostream &, const Cloud< ParticleType > &) |
| typedef ParticleType particleType |
Reimplemented from HashTable< regIOobject * >.
| typedef IDLList<ParticleType>::const_iterator const_iterator |
Reimplemented from HashTable< regIOobject * >.
| TypeName | ( | "Cloud< ParticleType >" | ) |
Runtime type information.
| const polyMesh& pMesh | ( | ) | const [inline]
|
Return the polyMesh reference.
Definition at line 159 of file Cloud.H.
Referenced by KinematicParcel< ParcelType >::massCell(), solidParticle::move(), parcel::move(), and trackedParticle::move().
| bool internalFace | ( | const label | facei ) | const [inline]
|
Is this global face an internal face?
Definition at line 165 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::boundaryFace().
| bool boundaryFace | ( | const label | facei ) | const [inline]
|
| label facePatch | ( | const label | facei ) | const [inline]
|
| label patchFace | ( | const label | patchi, |
| const label | facei | ||
| ) | const [inline]
|
| label size | ( | ) | const [inline]
|
Return number of elements in table.
Reimplemented from HashTable< regIOobject * >.
Definition at line 188 of file Cloud.H.
Referenced by Cloud< ParticleType >::checkFieldIOobject(), trajectoryCollisionModel::collideParcels(), ORourkeCollisionModel::collideParcels(), solidParticle::readFields(), molecule::readFields(), ThermoParcel< ParcelType >::readFields(), ReactingParcel< ParcelType >::readFields(), ReactingMultiphaseParcel< ParcelType >::readFields(), KinematicParcel< ParcelType >::readFields(), DsmcParcel< ParcelType >::readFields(), parcel::readFields(), Particle< ParticleType >::readFields(), Cloud< BasicReactingParcel< ThermoType > >::size(), solidParticle::writeFields(), molecule::writeFields(), ThermoParcel< ParcelType >::writeFields(), KinematicParcel< ParcelType >::writeFields(), DsmcParcel< ParcelType >::writeFields(), parcel::writeFields(), and Particle< ParticleType >::writeFields().
| const const_iterator begin | ( | ) | const [inline]
|
const_iterator set to the beginning of the HashTable
Reimplemented from HashTable< regIOobject * >.
Definition at line 196 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::begin(), trajectoryCollisionModel::collideParcels(), ORourkeCollisionModel::collideParcels(), stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), parcel::readFields(), and parcel::writeFields().
| const const_iterator cbegin | ( | ) | const [inline]
|
const_iterator set to the beginning of the HashTable
Reimplemented from HashTable< regIOobject * >.
Definition at line 201 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::cbegin().
| const const_iterator end | ( | ) | const [inline]
|
const_iterator set to beyond the end of the HashTable
Reimplemented from HashTable< regIOobject * >.
Definition at line 206 of file Cloud.H.
Referenced by trajectoryCollisionModel::collideParcels(), ORourkeCollisionModel::collideParcels(), stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), and Cloud< BasicReactingParcel< ThermoType > >::end().
| const const_iterator cend | ( | ) | const [inline]
|
const_iterator set to beyond the end of the HashTable
Reimplemented from HashTable< regIOobject * >.
Definition at line 211 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::cend().
| iterator begin | ( | ) | [inline]
|
iterator set to the begining of the HashTable
Reimplemented from HashTable< regIOobject * >.
| iterator end | ( | ) | [inline]
|
iterator set to beyond the end of the HashTable
Reimplemented from HashTable< regIOobject * >.
| void clear | ( | ) | [inline]
|
Clear the contents of the list.
Reimplemented from ILList< DLListBase, ParticleType >.
Reimplemented in DsmcCloud< ParcelType >.
Definition at line 229 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::clear().
| Foam::label getNewParticleID | ( | ) | const |
Get unique particle creation id.
Definition at line 72 of file Cloud.C.
References Foam::endl(), and WarningIn.
| void addParticle | ( | ParticleType * | pPtr ) |
| void deleteParticle | ( | ParticleType & | p ) |
Remove particle from cloud and delete.
Definition at line 94 of file Cloud.C.
References p.
Referenced by trajectoryCollisionModel::collideParcels(), and ORourkeCollisionModel::collideParcels().
| void move | ( | TrackingData & | td ) |
Move the particles.
passing the TrackingData to the track function
Definition at line 125 of file Cloud.C.
References List< T >::append(), polyMesh::boundaryMesh(), Foam::combineReduce(), forAll, forAllIter, processorPolyPatch::neighbProcNo(), p, globalMeshData::processorPatches(), globalMeshData::processorPatchIndices(), globalMeshData::processorPatchNeighbours(), List< T >::size(), and polyBoundaryMesh::whichPatch().
Referenced by moleculeCloud::evolve().
| void autoMap | ( | const mapPolyMesh & | mapper ) | [virtual]
|
Remap the cells of particles corresponding to the.
mesh topology change
Implements cloud.
Definition at line 287 of file Cloud.C.
References Foam::endl(), forAllIter, Foam::Info, mapPolyMesh::mergedCell(), name(), p, mapPolyMesh::reverseCellMap(), and mapPolyMesh::reverseFaceMap().
| Foam::IOobject fieldIOobject | ( | const word & | fieldName, |
| const IOobject::readOption | r | ||
| ) | const |
Helper to construct IOobject for field and current time.
Definition at line 173 of file CloudIO.C.
References timeName.
Referenced by solidParticle::readFields(), molecule::readFields(), ThermoParcel< ParcelType >::readFields(), KinematicParcel< ParcelType >::readFields(), DsmcParcel< ParcelType >::readFields(), parcel::readFields(), Particle< ParticleType >::readFields(), solidParticle::writeFields(), molecule::writeFields(), ThermoParcel< ParcelType >::writeFields(), KinematicParcel< ParcelType >::writeFields(), DsmcParcel< ParcelType >::writeFields(), parcel::writeFields(), and Particle< ParticleType >::writeFields().
Check lagrangian data field.
Definition at line 193 of file CloudIO.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, IOobject::name(), Cloud< ParticleType >::size(), and List< Type >::size().
Referenced by solidParticle::readFields(), molecule::readFields(), ThermoParcel< ParcelType >::readFields(), KinematicParcel< ParcelType >::readFields(), DsmcParcel< ParcelType >::readFields(), parcel::readFields(), and Particle< ParticleType >::readFields().
| void readFields | ( | ) | [virtual]
|
| void writeFields | ( | ) | const [virtual]
|
| bool writeObject | ( | IOstream::streamFormat | fmt, |
| IOstream::versionNumber | ver, | ||
| IOstream::compressionType | cmp | ||
| ) | const [virtual]
|
Write using given format, version and compression.
Only writes the cloud file if the Cloud isn't empty
Reimplemented from objectRegistry.
| void writePositions | ( | ) | const |
Write positions to <cloudName>_positions.obj file.
Definition at line 333 of file Cloud.C.
References OSstream::flush(), forAllConstIter, name(), Foam::nl, and p.
friend class IOPosition [friend]
|
Foam::word cloudPropertiesName [static]
|