Cloud< ParticleType > Class Template Reference

Base cloud calls templated on particle type. More...

Inheritance diagram for Cloud< ParticleType >:
[legend]
Collaboration diagram for Cloud< ParticleType >:
[legend]

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 polyMeshpMesh () 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
 

Detailed Description

template<class ParticleType>
class Foam::Cloud< ParticleType >

Base cloud calls templated on particle type.

Source files

Definition at line 54 of file Cloud.H.

Member Typedef Documentation

◆ particleType

typedef ParticleType particleType

Definition at line 113 of file Cloud.H.

◆ parcelType

typedef ParticleType parcelType

Parcels are just particles.

Definition at line 116 of file Cloud.H.

Constructor & Destructor Documentation

◆ Cloud() [1/2]

Cloud ( const polyMesh mesh,
const word cloudName,
const IDLList< ParticleType > &  particles 
)

Construct from mesh and a list of particles.

Definition at line 74 of file Cloud.C.

◆ Cloud() [2/2]

Cloud ( const polyMesh pMesh,
const word cloudName,
const bool  checkClass = true 
)

Construct from mesh by reading from file with given cloud instance.

Optionally disable checking of class name for post-processing

Definition at line 166 of file CloudIO.C.

Member Function Documentation

◆ TypeName()

TypeName ( "Cloud< ParticleType >"  )

Runtime type information.

◆ pMesh()

const polyMesh& pMesh ( ) const
inline

Return the polyMesh reference.

Definition at line 154 of file Cloud.H.

◆ nParcels()

virtual label nParcels ( ) const
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().

Here is the caller graph for this function:

◆ labels()

DynamicList<label>& labels ( ) const
inline

Return temporary addressing.

Definition at line 169 of file Cloud.H.

◆ addParticle()

void addParticle ( ParticleType *  pPtr)

Transfer particle to cloud.

Definition at line 105 of file Cloud.C.

Referenced by streamLine::track(), and wallBoundedStreamLine::track().

Here is the caller graph for this function:

◆ deleteParticle()

void deleteParticle ( ParticleType &  p)

Remove particle from cloud and delete.

Definition at line 112 of file Cloud.C.

Referenced by InflationInjection< CloudType >::parcelsToInject().

Here is the caller graph for this function:

◆ deleteLostParticles()

void deleteLostParticles ( )

Remove lost particles from cloud and delete.

Definition at line 119 of file Cloud.C.

◆ cloudReset()

void cloudReset ( const Cloud< ParticleType > &  c)

Reset the particles.

Definition at line 136 of file Cloud.C.

◆ move()

void move ( TrackCloudType &  cloud,
typename ParticleType::trackingData &  td,
const scalar  trackTime 
)

Move the particles.

Definition at line 148 of file Cloud.C.

Referenced by moleculeCloud::evolve(), DSMCCloud< ParcelType >::evolve(), solidParticleCloud::move(), streamLine::track(), and wallBoundedStreamLine::track().

Here is the caller graph for this function:

◆ autoMap()

void autoMap ( const mapPolyMesh mapper)

Remap the cells of particles corresponding to the.

mesh topology change

Definition at line 346 of file Cloud.C.

Referenced by DSMCCloud< ParcelType >::autoMap().

Here is the caller graph for this function:

◆ fieldIOobject()

Foam::IOobject fieldIOobject ( const word fieldName,
const IOobject::readOption  r 
) const

Helper to construct IOobject for field and current time.

Definition at line 191 of file CloudIO.C.

Referenced by molecule::readFields(), and molecule::writeFields().

Here is the caller graph for this function:

◆ checkFieldIOobject()

void checkFieldIOobject ( const Cloud< ParticleType > &  c,
const IOField< DataType > &  data 
) const

Check lagrangian data field.

Definition at line 211 of file CloudIO.C.

Referenced by molecule::readFields().

Here is the caller graph for this function:

◆ checkFieldFieldIOobject()

void checkFieldFieldIOobject ( const Cloud< ParticleType > &  c,
const CompactIOField< Field< DataType >, DataType > &  data 
) const

Check lagrangian data fieldfield.

Definition at line 230 of file CloudIO.C.

◆ writeFields()

void writeFields ( ) const
virtual

◆ writeObject()

bool writeObject ( IOstreamOption  streamOpt,
const bool  valid 
) const
virtual

Write using stream options.

Only writes the cloud file if the Cloud isn't empty

Reimplemented in unmappedPassivePositionParticleCloud.

Definition at line 255 of file CloudIO.C.

◆ writePositions()

void writePositions ( ) const

Write positions to <cloudName>_positions.obj file.

Definition at line 378 of file Cloud.C.

◆ storeGlobalPositions()

void storeGlobalPositions ( ) const

Call this before a topology change.

Stores the particles global positions in the database for use during mapping.

Definition at line 398 of file Cloud.C.

Friends And Related Function Documentation

◆ particle

friend class particle
friend

Definition at line 109 of file Cloud.H.

◆ IOPosition

friend class IOPosition
friend

Definition at line 111 of file Cloud.H.

Member Data Documentation

◆ geometryType_

cloud::geometryType geometryType_
protected

Geometry type.

Definition at line 104 of file Cloud.H.

◆ cloudPropertiesName

Foam::word cloudPropertiesName
static

Name of cloud properties dictionary.

Definition at line 126 of file Cloud.H.


The documentation for this class was generated from the following files: