OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

Cloud Class Template Reference

Inheritance diagram for Cloud:

Inheritance graph
[legend]
Collaboration diagram for Cloud:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class particleType>
class Foam::Cloud< particleType >

Definition at line 72 of file Cloud.H.


Public Types

typedef IDLList< particleType
>::iterator 
iterator
typedef IDLList< particleType
>::const_iterator 
const_iterator

Public Member Functions

 Cloud (const polyMesh &mesh, const IDLList< particleType > &particles)
 Construct from mesh and a list of particles.
 Cloud (const polyMesh &mesh)
 Construct from mesh by reading from file.
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.
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
 Read and return a lagrangian data field.
template<class Type>
tmp< IOField< Type > > readField (const word &fieldName) const
 Read and return a lagrangian data field.
void readFields ()
 Read the field data for the cloud of particles.
virtual bool writeData (Ostream &) const
 Pure virtual writaData function.
virtual void writeFields () const
 Write the field data for the cloud of particles.
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write using given format, version and compression.
template<>
void readFields ()
template<>
void writeFields () const
template<>
void readFields ()

Friends

class particle
Ostream & operator (Ostream &, const Cloud< particleType > &)

Member Typedef Documentation

typedef IDLList<particleType>::iterator iterator

Reimplemented from UILList.

Definition at line 94 of file Cloud.H.

typedef IDLList<particleType>::const_iterator const_iterator

Reimplemented from UILList.

Definition at line 95 of file Cloud.H.


Constructor & Destructor Documentation

Cloud ( const polyMesh &  mesh,
const IDLList< particleType > &  particles 
)

Construct from mesh and a list of particles.

Cloud ( const polyMesh &  mesh  ) 

Construct from mesh by reading from file.


Member Function Documentation

const polyMesh& pMesh (  )  const [inline]

Return the polyMesh reference.

Definition at line 119 of file Cloud.H.

bool internalFace ( const label  facei  )  const [inline]

Is this global face an internal face?

Definition at line 125 of file Cloud.H.

Referenced by Cloud< Foam::solidParticle >::internalFace().

Here is the caller graph for this function:

bool boundaryFace ( const label  facei  )  const [inline]

Is this global face a boundary face?

Definition at line 131 of file Cloud.H.

label facePatch ( const label  facei  )  const [inline]

Which patch is this global face on.

Definition at line 137 of file Cloud.H.

label patchFace ( const label  patchi,
const label  facei 
) const [inline]

Which face of this patch is this global face.

Definition at line 143 of file Cloud.H.

void addParticle ( particleType *  pPtr  ) 

Transfer particle to cloud.

void deleteParticle ( particleType &   ) 

Remove particle from cloud and delete.

void move ( TrackingData &  td  ) 

Move the particles.

passing the TrackingData to the track function

virtual void autoMap ( const mapPolyMesh &   )  [virtual]

Remap the cells of particles corresponding to the.

mesh topology change

Implements cloud.

IOobject fieldIOobject ( const word &  fieldName  )  const

Read and return a lagrangian data field.

tmp<IOField<Type> > readField ( const word &  fieldName  )  const

Read and return a lagrangian data field.

void readFields (  ) 

Read the field data for the cloud of particles.

virtual bool writeData ( Ostream &   )  const [virtual]

Pure virtual writaData function.

Must be defined in derived types

Implements regIOobject.

virtual void writeFields (  )  const [virtual]

Write the field data for the cloud of particles.

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 regIOobject.

void readFields (  ) 

void writeFields (  )  const

void readFields (  ) 


Friends And Related Function Documentation

friend class particle [friend]

Definition at line 92 of file Cloud.H.

Ostream& operator ( Ostream &  ,
const Cloud< particleType > &   
) [friend]


The documentation for this class was generated from the following file:
  • src/lagrangian/basic/Cloud/Cloud.H
Copyright © 2000-2007 OpenCFD Ltd