![]() |
|
Public Member Functions | |
TypeName ("particle") | |
Runtime type information. | |
particle (const Cloud< particleType > &, const vector &position, const label celli) | |
Construct from components. | |
particle (const Cloud< particleType > &, Istream &) | |
Construct from Istream. | |
virtual | ~particle () |
bool | inCell () |
Return true if particle is in cell. | |
bool | inCell (const vector &position, const label celli, const scalar fraction) |
Return true if position is in cell i. | |
const vector & | position () const |
Return current particle position. | |
label | cell () const |
Return current cell particle is in. | |
const Cloud< particleType > & | cloud () const |
Return reference to the particle cloud. | |
bool | onBoundary () const |
Is the particle on a boundary face? | |
label | patch (const label facei) const |
Which patch is particle on. | |
label | patchFace (const label patchi, const label facei) const |
Which face of this patch is this particle on. | |
virtual scalar | wallImpactDistance (const vector &n) const |
The nearest distance to a wall that. | |
label | track (const vector &endPosition, scalar &fraction, const bool softAlgorithm=false) |
Track particle to end of trajectory. | |
label | trackToFace (const vector &endPosition, scalar &fraction, const bool softAlgorithm=false) |
Track particle to a given position. | |
void | transformPosition (const tensor &T) |
Transform the position the particle. | |
virtual void | transformProperties (const tensor &T) |
Transform the physical properties of the particle. | |
Protected Member Functions | |
void | prepareForParallelTransfer (const label patchi, const label facei) |
Convert global addressing to the processor patch. | |
void | correctAfterParallelTransfer (const label patchi, const label facei) |
Convert processor patch addressing to the global equivalents. | |
Friends | |
class | Cloud<particleType> |
Ostream & | operator (Ostream &, const particle< particleType > &) |
|
Construct from components.
|
|
Construct from Istream.
|
|
Definition at line 187 of file particle.H. |
|
Return current cell particle is in.
Definition at line 274 of file particleI.H. |
|
Return reference to the particle cloud.
Definition at line 260 of file particleI.H. |
|
Convert processor patch addressing to the global equivalents. and set the celli to the face-neighbour |
|
Return true if position is in cell i.
Definition at line 245 of file particleI.H. |
|
Return true if particle is in cell.
Definition at line 236 of file particleI.H. References Foam::label, Foam::labelList, and Foam::vector. |
|
Is the particle on a boundary face?
Definition at line 282 of file particleI.H. |
|
Which patch is particle on.
Definition at line 288 of file particleI.H. References Foam::label. |
|
Which face of this patch is this particle on.
Definition at line 295 of file particleI.H. |
|
Return current particle position.
Definition at line 267 of file particleI.H. |
|
Convert global addressing to the processor patch. local equivalents |
|
Track particle to end of trajectory. or until it hits the boundary, on entry 'fraction' is the fraction of the integration step at which the tracking starts (only used for moving meshes) and on exit it contains the fraction of the traveled trajectory |
|
Track particle to a given position. If particle reaches that position without hitting a face we return -1, otherwise track to face and return face index on entry 'fraction' is the fraction of the integration step at which the tracking starts (only used for moving meshes) upon exit fraction contains the fraction of the actual distance moved |
|
Transform the position the particle. according to the given transformation tensor |
|
Transform the physical properties of the particle. according to the given transformation tensor Reimplemented in parcel. |
|
Runtime type information.
|
|
The nearest distance to a wall that. the particle can be in the n direction |
|
Definition at line 160 of file particle.H. |
|
|