#include <lagrangian/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. | |
Public Member Functions inherited from cloud | |
| TypeName ("cloud") | |
| Runtime type information. | |
| cloud (const objectRegistry &, const word &cloudName="") | |
| Construct for the given objectRegistry and named cloud instance. | |
| virtual | ~cloud () |
| Destructor. | |
Public Member Functions inherited from objectRegistry | |
| TypeName ("objectRegistry") | |
| Declare type name for this IOobject. | |
| objectRegistry (const Time &db, const label nIoObjects=128) | |
| Construct the time objectRegistry given an initial estimate. | |
| objectRegistry (const IOobject &io, const label nIoObjects=128) | |
| Construct a sub-registry given an IObject to describe the registry. | |
| virtual | ~objectRegistry () |
| const Time & | time () const |
| Return time. | |
| const objectRegistry & | parent () const |
| Return the parent objectRegistry. | |
| virtual const fileName & | dbDir () const |
| Local directory path of this objectRegistry relative to the time. | |
| wordList | names () const |
| Return the list of names of the IOobjects. | |
| wordList | names (const word &className) const |
| Return the list of names of the IOobjects of given class name. | |
| template<class Type > | |
| wordList | names () const |
| Return the list of names of the IOobjects of given type. | |
| const objectRegistry & | subRegistry (const word &name) const |
| Lookup and return a const sub-objectRegistry. | |
| template<class Type > | |
| HashTable< const Type * > | lookupClass () const |
| Lookup and return all the object of the given Type. | |
| template<class Type > | |
| bool | foundObject (const word &name) const |
| Is the named Type. | |
| template<class Type > | |
| const Type & | lookupObject (const word &name) const |
| Lookup and return the object of the given Type. | |
| label | getEvent () const |
| Return new event number. | |
| virtual void | rename (const word &newName) |
| Rename. | |
| bool | checkIn (regIOobject &) const |
| Add an regIOobject to registry. | |
| bool | checkOut (regIOobject &) const |
| Remove an regIOobject from registry. | |
| virtual bool | modified () const |
| Return true if any of the object's files have been modified. | |
| void | readModifiedObjects () |
| Read the objects that have been modified. | |
| virtual bool | readIfModified () |
| Read object if modified. | |
| virtual bool | writeData (Ostream &) const |
| writeData function required by regIOobject but not used | |
Public Member Functions inherited from regIOobject | |
| TypeName ("regIOobject") | |
| Runtime type information. | |
| regIOobject (const IOobject &, const bool isTime=false) | |
| Construct from IOobject. Optional flag for if IOobject is the. | |
| regIOobject (const regIOobject &) | |
| Construct as copy. | |
| regIOobject (const regIOobject &, bool registerCopy) | |
| Construct as copy, and transferring registry registration to copy. | |
| virtual | ~regIOobject () |
| bool | checkIn () |
| Add object to registry. | |
| bool | checkOut () |
| Remove object from registry. | |
| bool | ownedByRegistry () const |
| Is this object owned by the registry? | |
| void | store () |
| Transfer ownership of this object to its registry. | |
| void | release () |
| Release ownership of this object from its registry. | |
| label | eventNo () const |
| Event number at last update. | |
| label & | eventNo () |
| Event number at last update. | |
| bool | upToDate (const word &) const |
| Am I uptodate with respect to other regIOobjects. | |
| bool | upToDate (const word &, const word &) const |
| bool | upToDate (const word &, const word &, const word &) const |
| bool | upToDate (const word &, const word &, const word &, const word &) const |
| void | setUpToDate () |
| Flag me as up to date. | |
| Istream & | readStream (const word &) |
| Return Istream and check object type against that given. | |
| void | close () |
| Close Istream. | |
| virtual bool | readData (Istream &) |
| Virtual readData function. | |
| virtual bool | read () |
| Read object. | |
| virtual bool | write () const |
| Write using setting from DB. | |
| void | operator= (const IOobject &) |
Public Member Functions inherited from IOobject | |
| TypeName ("IOobject") | |
| Runtime type information. | |
| IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from name, instance, registry, io options. | |
| IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from name, instance, local, registry, io options. | |
| IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from path, registry, io options. | |
| Foam::autoPtr< IOobject > | clone () const |
| Clone. | |
| virtual | ~IOobject () |
| const objectRegistry & | db () const |
| Return the local objectRegistry. | |
| const word & | name () const |
| Return name. | |
| const word & | headerClassName () const |
| Return name of the class name read from header. | |
| string & | note () |
| Return non-constant access to the optional note. | |
| const string & | note () const |
| Return the optional note. | |
| bool | registerObject () const |
| Register object created from this IOobject with registry if true. | |
| readOption | readOpt () const |
| readOption & | readOpt () |
| writeOption | writeOpt () const |
| writeOption & | writeOpt () |
| const fileName & | rootPath () const |
| const fileName & | caseName () const |
| const fileName & | instance () const |
| fileName & | instance () |
| const fileName & | local () const |
| fileName | path () const |
| Return complete path. | |
| fileName | path (const word &instance, const fileName &local="") const |
| Return complete path with alternative instance and local. | |
| fileName | objectPath () const |
| Return complete path + object name. | |
| fileName | filePath () const |
| Return complete path + object name if the file exists. | |
| bool | readHeader (Istream &) |
| Read header. | |
| bool | headerOk () |
| Read and check header info. | |
| bool | writeHeader (Ostream &) const |
| Write header. | |
| bool | good () const |
| bool | bad () const |
| InfoProxy< IOobject > | info () const |
| Return info proxy. | |
Public Member Functions inherited from HashTable< regIOobject * > | |
| bool | set (const word &, const regIOobject *&newElmt) |
| Assign a new hashedEntry, overwriting existing entries. | |
| HashTable (const label size=128) | |
| Construct given initial table size. | |
| HashTable (Istream &, const label size=128) | |
| Construct from Istream. | |
| HashTable (const HashTable< regIOobject *, word, string::hash > &) | |
| Construct as copy. | |
| HashTable (const Xfer< HashTable< regIOobject *, word, string::hash > > &) | |
| Construct by transferring the parameter contents. | |
| ~HashTable () | |
| bool | empty () const |
| Return true if the hash table is empty. | |
| bool | found (const word &) const |
| Return true if hashedEntry is found in table. | |
| iterator | find (const word &) |
| Find and return an iterator set at the hashedEntry. | |
| const_iterator | find (const word &) const |
| Find and return an const_iterator set at the hashedEntry. | |
| List< word > | toc () const |
| Return the table of contents. | |
| List< word > | sortedToc () const |
| Return the table of contents as a sorted list. | |
| Ostream & | printInfo (Ostream &) const |
| Print information. | |
| bool | insert (const word &, const regIOobject *&newElmt) |
| Insert a new hashedEntry. | |
| bool | erase (const iterator &) |
| Erase an hashedEntry specified by given iterator. | |
| bool | erase (const word &) |
| Erase an hashedEntry specified by given key if in table. | |
| label | erase (const UList< word > &) |
| Remove entries given by the listed keys from this HashTable. | |
| label | erase (const HashTable< AnyType, word, AnyHash > &) |
| Remove entries given by the given keys from this HashTable. | |
| void | resize (const label newSize) |
| Resize the hash table for efficiency. | |
| void | clearStorage () |
| Clear the table entries and the table itself. | |
| void | transfer (HashTable< regIOobject *, word, string::hash > &) |
| Transfer the contents of the argument table into this table. | |
| Xfer< HashTable< regIOobject *, word, string::hash > > | xfer () |
| Transfer contents to the Xfer container. | |
| regIOobject *& | operator[] (const word &) |
| Find and return an hashedEntry. | |
| const regIOobject *& | operator[] (const word &) const |
| Find and return an hashedEntry. | |
| regIOobject *& | operator() (const word &) |
| Find and return an hashedEntry, create it null if not present. | |
| void | operator= (const HashTable< regIOobject *, word, string::hash > &) |
| Assignment. | |
| bool | operator== (const HashTable< regIOobject *, word, string::hash > &) const |
| Equality. Two hash tables are equal if all contents of first are. | |
| bool | operator!= (const HashTable< regIOobject *, word, string::hash > &) const |
| The opposite of the equality operation. Takes linear time. | |
Public Member Functions inherited from IDLList< ParticleType > | |
| IDLList () | |
| Null construct. | |
| IDLList (const ParticleType &a) | |
| Construct given initial T. | |
| IDLList (Istream &is, const INew &inewt) | |
| Construct from Istream using given Istream constructor class. | |
| IDLList (Istream &is) | |
| Construct from Istream. | |
| IDLList (const IDLList< ParticleType > &idll, const CloneArg &cloneArg) | |
| Copy constructor with additional argument for clone. | |
Public Member Functions inherited from ILList< DLListBase, ParticleType > | |
| ILList () | |
| Null construct. | |
| ILList (ParticleType *a) | |
| Construct given initial T. | |
| ILList (Istream &) | |
| Construct from Istream. | |
| ILList (const ILList< DLListBase, ParticleType > &) | |
| Construct as copy. | |
| ILList (const ILList< DLListBase, ParticleType > &lst, const CloneArg &cloneArg) | |
| Copy constructor with additional argument for clone. | |
| ILList (Istream &, const INew &) | |
| Construct from Istream using given Istream constructor class. | |
| ~ILList () | |
| bool | eraseHead () |
| Remove the head element specified from the list and delete it. | |
| bool | erase (ParticleType *p) |
| Remove the specified element from the list and delete it. | |
| void | transfer (ILList< DLListBase, ParticleType > &) |
| Transfer the contents of the argument into this List. | |
| void | operator= (const ILList< DLListBase, ParticleType > &) |
Public Member Functions inherited from UILList< DLListBase, ParticleType > | |
| UILList () | |
| Null construct. | |
| UILList (ParticleType *a) | |
| Construct given initial T. | |
| UILList (const UILList< DLListBase, ParticleType > &) | |
| Construct as copy. | |
| ParticleType * | first () |
| Return the first entry. | |
| const ParticleType * | first () const |
| Return the first entry. | |
| ParticleType * | last () |
| Return the last entry. | |
| const ParticleType * | last () const |
| Return the last entry. | |
| ParticleType * | removeHead () |
| Remove and return head. | |
| ParticleType * | remove (ParticleType *p) |
| Remove and return element. | |
| ParticleType * | remove (iterator &it) |
| Remove and return specified by iterator. | |
| void | operator= (const UILList< DLListBase, ParticleType > &) |
| bool | operator== (const UILList< DLListBase, ParticleType > &) const |
| Equality operation on ULists of the same type. | |
| bool | operator!= (const UILList< DLListBase, ParticleType > &) const |
| The opposite of the equality operation. Takes linear time. | |
Public Member Functions inherited from DLListBase | |
| DLListBase () | |
| Null construct. | |
| DLListBase (link *) | |
| Construct given initial entry. | |
| ~DLListBase () | |
| bool | empty () const |
| Return true if the list is empty. | |
| void | insert (link *) |
| Add at head of list. | |
| void | append (link *) |
| Add at tail of list. | |
| bool | swapUp (link *) |
| Swap this element with the one above unless it is at the top. | |
| bool | swapDown (link *) |
| Swap this element with the one below unless it is at the bottom. | |
| link * | remove (link *) |
| Remove and return element. | |
| link * | replace (link *oldLink, link *newLink) |
| Replace oldLink with newLink and return element. | |
| link * | replace (iterator &oldIter, link *newLink) |
| Replace oldIter with newLink and return element. | |
| void | transfer (DLListBase &) |
| Transfer the contents of the argument into this List. | |
Static Public Attributes | |
| static word | cloudPropertiesName |
| Name of cloud properties dictionary. | |
Static Public Attributes inherited from cloud | |
| static const word | prefix |
| The prefix to local: lagrangian. | |
| static word | defaultName |
| The default cloud name: defaultCloud. | |
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.
|
inline |
Return the polyMesh reference.
Definition at line 159 of file Cloud.H.
Referenced by KinematicParcel< ParcelType >::massCell(), solidParticle::move(), trackedParticle::move(), and parcel::move().
|
inline |
Is this global face an internal face?
Definition at line 165 of file Cloud.H.
Referenced by Cloud< BasicReactingParcel< ThermoType > >::boundaryFace().
|
inline |
|
inline |
|
inline |
|
inline |
Return number of elements in table.
Reimplemented from HashTable< regIOobject * >.
Definition at line 188 of file Cloud.H.
Referenced by Cloud< ParticleType >::checkFieldIOobject(), ORourkeCollisionModel::collideParcels(), trajectoryCollisionModel::collideParcels(), solidParticle::readFields(), DsmcParcel< ParcelType >::readFields(), ReactingParcel< ParcelType >::readFields(), ThermoParcel< ParcelType >::readFields(), parcel::readFields(), molecule::readFields(), ReactingMultiphaseParcel< ParcelType >::readFields(), Particle< ParticleType >::readFields(), KinematicParcel< ParcelType >::readFields(), Cloud< BasicReactingParcel< ThermoType > >::size(), solidParticle::writeFields(), DsmcParcel< ParcelType >::writeFields(), ThermoParcel< ParcelType >::writeFields(), parcel::writeFields(), molecule::writeFields(), Particle< ParticleType >::writeFields(), and KinematicParcel< ParcelType >::writeFields().
|
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(), ORourkeCollisionModel::collideParcels(), trajectoryCollisionModel::collideParcels(), stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), parcel::readFields(), and parcel::writeFields().
|
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().
|
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 ORourkeCollisionModel::collideParcels(), trajectoryCollisionModel::collideParcels(), gradientDispersionRAS::disperseParcels(), stochasticDispersionRAS::disperseParcels(), and Cloud< BasicReactingParcel< ThermoType > >::end().
|
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().
|
inline |
iterator set to the begining of the HashTable
Reimplemented from HashTable< regIOobject * >.
|
inline |
iterator set to beyond the end of the HashTable
Reimplemented from HashTable< regIOobject * >.
|
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 ORourkeCollisionModel::collideParcels(), and trajectoryCollisionModel::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, patchi, globalMeshData::processorPatches(), globalMeshData::processorPatchIndices(), globalMeshData::processorPatchNeighbours(), List< T >::size(), and polyBoundaryMesh::whichPatch().
Referenced by moleculeCloud::evolve().
|
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(), DsmcParcel< ParcelType >::readFields(), ThermoParcel< ParcelType >::readFields(), parcel::readFields(), molecule::readFields(), Particle< ParticleType >::readFields(), KinematicParcel< ParcelType >::readFields(), solidParticle::writeFields(), DsmcParcel< ParcelType >::writeFields(), ThermoParcel< ParcelType >::writeFields(), parcel::writeFields(), molecule::writeFields(), Particle< ParticleType >::writeFields(), and KinematicParcel< ParcelType >::writeFields().
Check lagrangian data field.
Definition at line 193 of file CloudIO.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, IOobject::name(), List< Type >::size(), and Cloud< ParticleType >::size().
Referenced by solidParticle::readFields(), DsmcParcel< ParcelType >::readFields(), ThermoParcel< ParcelType >::readFields(), parcel::readFields(), molecule::readFields(), Particle< ParticleType >::readFields(), and KinematicParcel< ParcelType >::readFields().
|
virtual |
|
virtual |
|
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 |
|
static |