Base cloud calls templated on particle type. More...
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. More... | |
Cloud (const polyMesh &mesh, const IDLList< ParticleType > &particles) | |
Construct from mesh and a list of particles. More... | |
Cloud (const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles) | |
Construct from mesh, cloud name, and a list of particles. More... | |
Cloud (const polyMesh &mesh, const bool checkClass=true) | |
Construct from mesh by reading from file. 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... | |
label | size () const |
DynamicList< label > & | labels () |
label | nTrackingRescues () const |
Return nTrackingRescues. More... | |
void | trackingRescue () const |
Increment the nTrackingRescues counter. More... | |
const PackedBoolList & | cellHasWallFaces () const |
Whether each cell has any wall faces (demand driven data) More... | |
virtual bool | hasWallImpactDistance () const |
Switch to specify if particles of the cloud can return. More... | |
const const_iterator | begin () const |
const const_iterator | cbegin () const |
const const_iterator | end () const |
const const_iterator | cend () const |
iterator | begin () |
iterator | end () |
void | clear () |
void | addParticle (ParticleType *pPtr) |
Transfer particle to cloud. More... | |
void | deleteParticle (ParticleType &) |
Remove particle from cloud and delete. More... | |
void | cloudReset (const Cloud< ParticleType > &c) |
Reset the particles. More... | |
template<class TrackData > | |
void | move (TrackData &td, const scalar trackTime) |
Move the particles. More... | |
template<class TrackData > | |
void | autoMap (TrackData &td, 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 | readFields () |
Read the field data for the cloud of particles. Dummy at. More... | |
virtual void | writeFields () const |
Write the field data for the cloud of particles Dummy at. More... | |
virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
Write using given format, version and compression. More... | |
void | writePositions () const |
Write positions to <cloudName>_positions.obj file. More... | |
Static Public Attributes | |
static word | cloudPropertiesName |
Name of cloud properties dictionary. More... | |
Private Member Functions | |
void | checkPatches () const |
Check patches. More... | |
void | initCloud (const bool checkClass) |
Initialise cloud on IO constructor. More... | |
void | calcCellWallFaces () const |
Find all cells which have wall faces. More... | |
void | readCloudUniformProperties () |
Read cloud properties dictionary. More... | |
void | writeCloudUniformProperties () const |
Write cloud properties dictionary. More... | |
Private Attributes | |
const polyMesh & | polyMesh_ |
DynamicList< label > | labels_ |
Temporary storage for addressing. Used in findTris. More... | |
label | nTrackingRescues_ |
Count of how many tracking rescue corrections have been. More... | |
autoPtr< PackedBoolList > | cellWallFacesPtr_ |
Does the cell have wall faces. More... | |
Friends | |
class | particle |
template<class ParticleT > | |
class | IOPosition |
Ostream & | operator (Ostream &, const Cloud< ParticleType > &) |
Base cloud calls templated on particle type.
typedef ParticleType particleType |
typedef IDLList<ParticleType>::const_iterator const_iterator |
Construct from mesh and a list of particles.
Construct from mesh, cloud name, and a list of particles.
Construct from mesh by reading from file.
Optionally disable checking of class name for post-processing
Construct from mesh by reading from file with given cloud instance.
Optionally disable checking of class name for post-processing
|
private |
|
private |
|
private |
|
private |
TypeName | ( | "Cloud" | ) |
Runtime type information.
|
inline |
|
inline |
Definition at line 175 of file Cloud.H.
Referenced by lagrangianWriter::lagrangianWriter(), main(), meshRefinement::markFeatureCellLevel(), molecule::readFields(), parLagrangianRedistributor::redistributeLagrangianPositions(), wallBoundedStreamLine::track(), streamLine::track(), Cloud< streamLineParticle >::trackingRescue(), USERD_get_gold_part_build_info(), and molecule::writeFields().
|
inline |
|
inline |
|
inline |
const Foam::PackedBoolList & cellHasWallFaces | ( | ) | const |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 250 of file Cloud.H.
Referenced by meshRefinement::markFeatureCellLevel().
void addParticle | ( | ParticleType * | pPtr | ) |
Transfer particle to cloud.
Definition at line 162 of file Cloud.C.
Referenced by main(), meshRefinement::markFeatureCellLevel(), parLagrangianRedistributor::redistributeLagrangianPositions(), wallBoundedStreamLine::track(), and streamLine::track().
void deleteParticle | ( | ParticleType & | p | ) |
Remove particle from cloud and delete.
Definition at line 169 of file Cloud.C.
Referenced by InflationInjection< CloudType >::parcelsToInject().
void cloudReset | ( | const Cloud< ParticleType > & | c | ) |
void move | ( | TrackData & | td, |
const scalar | trackTime | ||
) |
Move the particles.
passing the TrackingData to the track function
Definition at line 187 of file Cloud.C.
Referenced by moleculeCloud::evolve(), DSMCCloud< DSMCParcel< ParcelType > >::evolve(), meshRefinement::markFeatureCellLevel(), solidParticleCloud::move(), wallBoundedStreamLine::track(), and streamLine::track().
void autoMap | ( | TrackData & | td, |
const mapPolyMesh & | mapper | ||
) |
Foam::IOobject fieldIOobject | ( | const word & | fieldName, |
const IOobject::readOption | r | ||
) | const |
Helper to construct IOobject for field and current time.
Definition at line 195 of file CloudIO.C.
Referenced by molecule::readFields(), and molecule::writeFields().
Check lagrangian data field.
Definition at line 215 of file CloudIO.C.
Referenced by molecule::readFields().
void checkFieldFieldIOobject | ( | const Cloud< ParticleType > & | c, |
const CompactIOField< Field< DataType >, DataType > & | data | ||
) | const |
|
virtual |
|
virtual |
|
virtual |
Write using given format, version and compression.
Only writes the cloud file if the Cloud isn't empty
Reimplemented in unmappedPassiveParticleCloud, and unmappedPassiveParticleCloud.
void writePositions | ( | ) | const |
|
friend |
|
private |
Definition at line 77 of file Cloud.H.
Referenced by Cloud< streamLineParticle >::pMesh().
|
mutableprivate |
Temporary storage for addressing. Used in findTris.
Definition at line 80 of file Cloud.H.
Referenced by Cloud< streamLineParticle >::labels().
|
mutableprivate |
Count of how many tracking rescue corrections have been.
applied
Definition at line 84 of file Cloud.H.
Referenced by Cloud< streamLineParticle >::nTrackingRescues(), and Cloud< streamLineParticle >::trackingRescue().
|
mutableprivate |
|
static |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.