Base particle class. More...
Classes | |
class | trackingData |
Public Member Functions | |
TypeName ("particle") | |
Runtime type information. More... | |
particle (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei) | |
Construct from components. More... | |
particle (const polyMesh &mesh, const vector &position, const label celli, label &nLocateBoundaryHits) | |
Construct from a position and a cell, searching for the rest of the. More... | |
particle (Istream &, bool readFields=true) | |
Construct from Istream. More... | |
particle (const particle &p) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Construct and return a clone. More... | |
virtual | ~particle () |
Destructor. More... | |
label | getNewParticleIndex () const |
Get unique particle creation id. More... | |
const barycentric & | coordinates () const |
Return current particle coordinates. More... | |
label | cell () const |
Return current cell particle is in. More... | |
label | tetFace () const |
Return current tet face particle is in. More... | |
label | tetPt () const |
Return current tet face particle is in. More... | |
label | face () const |
Return current face particle is on otherwise -1. More... | |
label & | face () |
Return current face particle is on otherwise -1. More... | |
scalar | stepFraction () const |
Return the fraction of time-step completed. More... | |
scalar & | stepFraction () |
Return the fraction of time-step completed. More... | |
label | origProc () const |
Return the originating processor ID. More... | |
label & | origProc () |
Return the originating processor ID. More... | |
label | origId () const |
Return the particle ID on the originating processor. More... | |
label & | origId () |
Return the particle ID on the originating processor. More... | |
tetIndices | currentTetIndices (const polyMesh &mesh) const |
Return the indices of the current tet that the. More... | |
barycentricTensor | currentTetTransform (const polyMesh &mesh) const |
Return the current tet transformation tensor. More... | |
vector | normal (const polyMesh &mesh) const |
Return the normal of the tri on tetFacei_ for the. More... | |
bool | onFace () const |
Is the particle on a face? More... | |
bool | onInternalFace (const polyMesh &mesh) const |
Is the particle on an internal face? More... | |
bool | onBoundaryFace (const polyMesh &mesh) const |
Is the particle on a boundary face? More... | |
label | patch (const polyMesh &mesh) const |
Return the index of patch that the particle is on. More... | |
vector | position (const polyMesh &mesh) const |
Return current particle position. More... | |
void | reset (const scalar stepFraction) |
Set the step fraction and clear the behind data in preparation. More... | |
bool | locate (const polyMesh &mesh, const vector &position, label celli) |
Locate the particle at the given position. More... | |
scalar | track (const polyMesh &mesh, const vector &displacement, const scalar fraction) |
Track along the displacement for a given fraction of the overall. More... | |
scalar | trackToCell (const polyMesh &mesh, const vector &displacement, const scalar fraction) |
As particle::track, but stops when a new cell is reached. More... | |
scalar | trackToFace (const polyMesh &mesh, const vector &displacement, const scalar fraction) |
As particle::track, but stops when a face is hit. More... | |
scalar | trackToTri (const polyMesh &mesh, const vector &displacement, const scalar fraction, label &tetTriI) |
As particle::trackToFace, but stops when a tet triangle is hit. More... | |
scalar | trackToStationaryTri (const polyMesh &mesh, const vector &displacement, const scalar fraction, label &tetTriI) |
As particle::trackToTri, but for stationary meshes. More... | |
scalar | trackToMovingTri (const polyMesh &mesh, const vector &displacement, const scalar fraction, label &tetTriI) |
As particle::trackToTri, but for moving meshes. More... | |
template<class TrackCloudType > | |
void | hitFace (const vector &displacement, const scalar fraction, TrackCloudType &cloud, trackingData &td) |
Hit the current face. If the current face is internal than this. More... | |
template<class TrackCloudType > | |
scalar | trackToAndHitFace (const vector &displacement, const scalar fraction, TrackCloudType &cloud, trackingData &td) |
Convenience function. Combines trackToFace and hitFace. More... | |
vector | deviationFromMeshCentre (const polyMesh &mesh) const |
Get the displacement from the mesh centre. Used to correct the. More... | |
void | patchData (const polyMesh &mesh, vector &normal, vector &displacement) const |
Get the normal and displacement of the current patch location. More... | |
virtual void | transformProperties (const transformer &) |
Transform the physical properties of the particle. More... | |
template<class TrackCloudType > | |
void | prepareForParallelTransfer (TrackCloudType &, trackingData &) |
Make changes prior to a parallel transfer. Runs either. More... | |
template<class TrackCloudType > | |
void | correctAfterParallelTransfer (TrackCloudType &, trackingData &) |
Make changes following a parallel transfer. Runs either. More... | |
void | prepareForProcessorTransfer (trackingData &td) |
Make changes prior to a transfer across a processor boundary. More... | |
void | correctAfterProcessorTransfer (trackingData &td) |
Make changes following a transfer across a processor boundary. More... | |
void | prepareForNonConformalCyclicTransfer (const polyMesh &mesh, const label sendToPatch, const label sendToPatchFace, const vector &sendToPosition) |
Make changes prior to a transfer across a non conformal cyclic. More... | |
void | correctAfterNonConformalCyclicTransfer (const polyMesh &mesh, const label sendToPatch, labelList &patchNLocateBoundaryHits) |
Make changes following a transfer across a non conformal cyclic. More... | |
template<class TrackCloudType > | |
bool | hitPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a patch. More... | |
template<class TrackCloudType > | |
void | hitWedgePatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a wedgePatch. More... | |
template<class TrackCloudType > | |
void | hitSymmetryPlanePatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a. More... | |
template<class TrackCloudType > | |
void | hitSymmetryPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a. More... | |
template<class TrackCloudType > | |
void | hitCyclicPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a. More... | |
template<class TrackCloudType > | |
bool | hitNonConformalCyclicPatch (const vector &displacement, const scalar fraction, const label patchi, TrackCloudType &cloud, trackingData &td) |
Overridable function to handle the particle hitting an. More... | |
template<class TrackCloudType > | |
void | hitProcessorPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a. More... | |
template<class TrackCloudType > | |
void | hitWallPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a wallPatch. More... | |
template<class TrackCloudType > | |
void | hitBasicPatch (TrackCloudType &, trackingData &) |
Overridable function to handle the particle hitting a basic. More... | |
void | prepareForInteractionListReferral (const polyMesh &mesh, const transformer &transform) |
Break the topology and store the cartesian position so that the. More... | |
void | correctAfterInteractionListReferral (const polyMesh &mesh, const label celli) |
Correct the topology after referral. Locates the particle. More... | |
label | procTetPt (const polyMesh &mesh, const polyMesh &procMesh, const label procCell, const label procTetFace) const |
Return the tet point appropriate for decomposition or. More... | |
void | writePosition (Ostream &) const |
Write the particle position and cell. More... | |
template<class TrackCloudType > | |
Foam::scalar | trackToAndHitFace (const vector &displacement, const scalar fraction, TrackCloudType &cloud, trackingData &td) |
Static Public Member Functions | |
static string | propertyList () |
static autoPtr< particle > | New (Istream &is) |
Construct from Istream and return. More... | |
template<class TrackCloudType > | |
static void | readFields (TrackCloudType &c) |
Read the fields associated with the owner cloud. More... | |
template<class TrackCloudType > | |
static void | writeFields (const TrackCloudType &c) |
Write the fields associated with the owner cloud. More... | |
Static Public Attributes | |
static string | propertyList_ = Foam::particle::propertyList() |
String representation of properties. More... | |
static label | particleCount_ = 0 |
Cumulative particle counter - used to provide unique ID. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const particle &) |
bool | operator== (const particle &pA, const particle &pB) |
bool | operator!= (const particle &pA, const particle &pB) |
particle | ( | const polyMesh & | mesh, |
const barycentric & | coordinates, | ||
const label | celli, | ||
const label | tetFacei, | ||
const label | tetPti, | ||
const label | facei | ||
) |
Construct from components.
Definition at line 374 of file particle.C.
Referenced by particle::clone(), and particle::New().
particle | ( | const polyMesh & | mesh, |
const vector & | position, | ||
const label | celli, | ||
label & | nLocateBoundaryHits | ||
) |
Construct from a position and a cell, searching for the rest of the.
required topology
Definition at line 397 of file particle.C.
References particle::locate(), and particle::position().
Construct from Istream.
Definition at line 46 of file particleIO.C.
References IOstream::ASCII, IOstream::check(), IOstream::format(), Istream::read(), and particle::readFields().
Construct as a copy.
Definition at line 423 of file particle.C.
|
inlinevirtual |
Destructor.
Definition at line 376 of file particle.H.
TypeName | ( | "particle" | ) |
Runtime type information.
|
inlinestatic |
Definition at line 327 of file particle.H.
Construct and return a clone.
Reimplemented in sampledSetParticle, trackedParticle, solidParticle, molecule, passiveParticle, streamlinesParticle, and findCellParticle.
Definition at line 363 of file particle.H.
References particle::particle().
Construct from Istream and return.
Definition at line 369 of file particle.H.
References particle::particle().
|
inline |
Get unique particle creation id.
Definition at line 114 of file particleI.H.
References Foam::endl(), Foam::labelMax, and WarningInFunction.
|
inline |
Return current particle coordinates.
Definition at line 128 of file particleI.H.
Referenced by solidParticle::move().
|
inline |
Return current cell particle is in.
Definition at line 134 of file particleI.H.
|
inline |
Return current tet face particle is in.
Definition at line 140 of file particleI.H.
|
inline |
Return current tet face particle is in.
Definition at line 146 of file particleI.H.
|
inline |
Return current face particle is on otherwise -1.
Definition at line 152 of file particleI.H.
|
inline |
Return current face particle is on otherwise -1.
Definition at line 158 of file particleI.H.
|
inline |
Return the fraction of time-step completed.
Definition at line 164 of file particleI.H.
Referenced by solidParticle::move(), and streamlinesParticle::move().
|
inline |
Return the fraction of time-step completed.
Definition at line 170 of file particleI.H.
|
inline |
Return the originating processor ID.
Definition at line 176 of file particleI.H.
Referenced by Foam::operator==().
|
inline |
Return the originating processor ID.
Definition at line 182 of file particleI.H.
|
inline |
Return the particle ID on the originating processor.
Definition at line 188 of file particleI.H.
Referenced by Foam::operator==(), and particle::readFields().
|
inline |
Return the particle ID on the originating processor.
Definition at line 194 of file particleI.H.
|
inline |
Return the indices of the current tet that the.
particle occupies.
Definition at line 200 of file particleI.H.
Referenced by solidParticle::move().
|
inline |
Return the current tet transformation tensor.
Definition at line 209 of file particleI.H.
References polyMesh::moving().
|
inline |
Return the normal of the tri on tetFacei_ for the.
current tet.
Definition at line 225 of file particleI.H.
|
inline |
Is the particle on a face?
Definition at line 231 of file particleI.H.
Referenced by lineFace::calcSamples().
|
inline |
Is the particle on an internal face?
Definition at line 237 of file particleI.H.
References primitiveMesh::isInternalFace().
|
inline |
Is the particle on a boundary face?
Definition at line 243 of file particleI.H.
References primitiveMesh::isInternalFace().
|
inline |
Return the index of patch that the particle is on.
Definition at line 249 of file particleI.H.
References polyMesh::boundaryMesh(), and polyBoundaryMesh::whichPatch().
|
inline |
Return current particle position.
Definition at line 255 of file particleI.H.
Referenced by nearWallFields::calcAddressing(), lineFace::calcSamples(), and particle::particle().
|
inline |
Set the step fraction and clear the behind data in preparation.
for a new track
Definition at line 261 of file particleI.H.
Locate the particle at the given position.
Definition at line 440 of file particle.C.
References Foam::constant::universal::c, primitiveMesh::cellCentres(), primitiveMesh::cells(), polyMesh::cellTree(), Foam::endl(), Foam::exit(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, FUNCTION_NAME, Foam::Info, Foam::nl, and List< T >::size().
Referenced by particle::particle().
Track along the displacement for a given fraction of the overall.
step. End when the track is complete, or when a boundary is hit. On exit, stepFraction_ will have been incremented to the current position, and facei_ will be set to the index of the boundary face that was hit, or -1 if the track completed within a cell. The proportion of the displacement still to be completed is returned.
Definition at line 516 of file particle.C.
References Foam::endl(), f(), FUNCTION_NAME, Foam::Info, and Foam::nl.
Foam::scalar trackToCell | ( | const polyMesh & | mesh, |
const vector & | displacement, | ||
const scalar | fraction | ||
) |
As particle::track, but stops when a new cell is reached.
Definition at line 541 of file particle.C.
References Foam::endl(), f(), FUNCTION_NAME, Foam::Info, and Foam::nl.
Foam::scalar trackToFace | ( | const polyMesh & | mesh, |
const vector & | displacement, | ||
const scalar | fraction | ||
) |
As particle::track, but stops when a face is hit.
Definition at line 564 of file particle.C.
References Foam::endl(), f(), FUNCTION_NAME, Foam::Info, Foam::nl, and WarningInFunction.
Referenced by lineFace::calcSamples(), and streamlinesParticle::move().
Foam::scalar trackToTri | ( | const polyMesh & | mesh, |
const vector & | displacement, | ||
const scalar | fraction, | ||
label & | tetTriI | ||
) |
As particle::trackToFace, but stops when a tet triangle is hit.
On exit, tetTriI is set to the index of the tet triangle that was hit, or -1 if the end position was reached.
Definition at line 953 of file particle.C.
References polyMesh::moving().
Foam::scalar trackToStationaryTri | ( | const polyMesh & | mesh, |
const vector & | displacement, | ||
const scalar | fraction, | ||
label & | tetTriI | ||
) |
As particle::trackToTri, but for stationary meshes.
Definition at line 619 of file particle.C.
References b, Foam::cmptSum(), Foam::endl(), Foam::Info, Foam::mag(), Foam::max(), Foam::constant::physicoChemical::mu, VectorSpace< Form, Cmpt, Ncmpts >::replace(), Foam::T(), and Foam::y0().
Foam::scalar trackToMovingTri | ( | const polyMesh & | mesh, |
const vector & | displacement, | ||
const scalar | fraction, | ||
label & | tetTriI | ||
) |
As particle::trackToTri, but for moving meshes.
Definition at line 755 of file particle.C.
References b, Foam::cmptSum(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Foam::mag(), Foam::max(), Foam::constant::physicoChemical::mu, Foam::name(), Foam::real, VectorSpace< Form, Cmpt, Ncmpts >::replace(), Foam::sqr(), Foam::T(), cubicEqn::value(), and Foam::y0().
void hitFace | ( | const vector & | displacement, |
const scalar | fraction, | ||
TrackCloudType & | cloud, | ||
trackingData & | td | ||
) |
Hit the current face. If the current face is internal than this.
crosses into the next cell. If it is a boundary face then this will interact the particle with the relevant patch.
Definition at line 161 of file particleTemplates.C.
References polyMesh::boundaryMesh(), Foam::endl(), forAll, FUNCTION_NAME, Foam::Info, particle::trackingData::mesh, Foam::nl, and p.
scalar trackToAndHitFace | ( | const vector & | displacement, |
const scalar | fraction, | ||
TrackCloudType & | cloud, | ||
trackingData & | td | ||
) |
Convenience function. Combines trackToFace and hitFace.
Referenced by solidParticle::move().
Foam::vector deviationFromMeshCentre | ( | const polyMesh & | mesh | ) | const |
Get the displacement from the mesh centre. Used to correct the.
particle position in cases with reduced dimensionality. Returns a zero vector for three-dimensional cases.
Definition at line 972 of file particle.C.
References Foam::cmptMin(), Foam::meshTools::constrainToMeshCentre(), polyMesh::geometricD(), Foam::pos(), and VectorSpace< Form, Cmpt, Ncmpts >::zero.
Get the normal and displacement of the current patch location.
Definition at line 269 of file particleI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyMesh::moving(), and Foam::Zero.
|
virtual |
Transform the physical properties of the particle.
according to the given transformation tensor
Reimplemented in solidParticle, molecule, and streamlinesParticle.
Definition at line 990 of file particle.C.
Referenced by molecule::transformProperties(), and solidParticle::transformProperties().
void prepareForParallelTransfer | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Make changes prior to a parallel transfer. Runs either.
processor or nonConformalCyclic variant below.
Definition at line 106 of file particleTemplates.C.
References particle::trackingData::mesh, particle::trackingData::sendFromPatch, particle::trackingData::sendToPatchFace, and particle::trackingData::sendToPosition.
void correctAfterParallelTransfer | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Make changes following a parallel transfer. Runs either.
processor or nonConformalCyclic variant below.
Definition at line 130 of file particleTemplates.C.
References polyMesh::boundaryMesh(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, particle::trackingData::mesh, particle::trackingData::patchNLocateBoundaryHits, and particle::trackingData::sendToPatch.
Referenced by trackedParticle::correctAfterParallelTransfer(), and sampledSetParticle::correctAfterParallelTransfer().
void prepareForProcessorTransfer | ( | trackingData & | td | ) |
Make changes prior to a transfer across a processor boundary.
Stores the local patch face index (in facei_) so that the mesh face index can be determined on the other side.
Definition at line 994 of file particle.C.
References particle::trackingData::sendToPatchFace.
void correctAfterProcessorTransfer | ( | trackingData & | td | ) |
Make changes following a transfer across a processor boundary.
Converts the stored patch index to a mesh index. Accounts for the receiving face being reversed relative to the sending face.
Definition at line 1001 of file particle.C.
References polyMesh::boundaryMesh(), polyPatch::faceCells(), polyMesh::faces(), particle::trackingData::mesh, particle::trackingData::sendToPatch, List< T >::size(), polyPatch::start(), processorPolyPatch::transform(), and transformer::transformsPosition().
void prepareForNonConformalCyclicTransfer | ( | const polyMesh & | mesh, |
const label | sendToPatch, | ||
const label | sendToPatchFace, | ||
const vector & | sendToPosition | ||
) |
Make changes prior to a transfer across a non conformal cyclic.
boundary. Stores the receiving patch face (in facei_). Breaks the topology and stores the cartesian position.
Definition at line 1035 of file particle.C.
References polyMesh::boundaryMesh(), Foam::cmptSum(), nonConformalCyclicPolyPatch::nbrPatch(), nonConformalCyclicPolyPatch::transform(), transformer::transformsPosition(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
void correctAfterNonConformalCyclicTransfer | ( | const polyMesh & | mesh, |
const label | sendToPatch, | ||
labelList & | patchNLocateBoundaryHits | ||
) |
Make changes following a transfer across a non conformal cyclic.
boundary. Locates the particle using the stored face index and cartesian position.
Definition at line 1075 of file particle.C.
References polyMesh::boundaryMesh(), polyMesh::faceOwner(), nonConformalPolyPatch::origPatch(), and polyPatch::start().
bool hitPatch | ( | TrackCloudType & | , |
trackingData & | |||
) |
Overridable function to handle the particle hitting a patch.
Executed before other patch-hitting functions.
Definition at line 267 of file particleTemplates.C.
void hitWedgePatch | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a wedgePatch.
Definition at line 274 of file particleTemplates.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
void hitSymmetryPlanePatch | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a.
symmetryPlanePatch
Definition at line 285 of file particleTemplates.C.
void hitSymmetryPatch | ( | TrackCloudType & | , |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a.
symmetryPatch
Definition at line 296 of file particleTemplates.C.
References Foam::I, particle::trackingData::mesh, and transformer::rotation().
void hitCyclicPatch | ( | TrackCloudType & | , |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a.
cyclicPatch
Definition at line 304 of file particleTemplates.C.
References polyMesh::boundaryMesh(), polyMesh::faceOwner(), polyMesh::faces(), particle::trackingData::mesh, cyclicPolyPatch::nbrPatch(), List< T >::size(), cyclicPolyPatch::transform(), cyclicPolyPatch::transformGlobalFace(), and transformer::transformsPosition().
Referenced by streamlinesParticle::hitCyclicPatch().
bool hitNonConformalCyclicPatch | ( | const vector & | displacement, |
const scalar | fraction, | ||
const label | patchi, | ||
TrackCloudType & | cloud, | ||
trackingData & | td | ||
) |
Overridable function to handle the particle hitting an.
Definition at line 332 of file particleTemplates.C.
References polyMesh::boundaryMesh(), remote::elementi, patchIdentifier::index(), particle::trackingData::mesh, UPstream::myProcNo(), cyclicPolyPatch::nbrPatchIndex(), nonConformalPolyPatch::origPatch(), patchi, particle::trackingData::patchNLocateBoundaryHits, remote::proci, nonConformalCyclicPolyPatch::ray(), particle::trackingData::sendFromPatch, particle::trackingData::sendToPatch, particle::trackingData::sendToPatchFace, particle::trackingData::sendToPosition, particle::trackingData::sendToProc, and polyPatch::whichFace().
Referenced by streamlinesParticle::hitNonConformalCyclicPatch().
void hitProcessorPatch | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a.
processorPatch
Definition at line 401 of file particleTemplates.C.
References polyMesh::boundaryMesh(), particle::trackingData::mesh, particle::trackingData::sendFromPatch, particle::trackingData::sendToPatch, particle::trackingData::sendToPatchFace, and particle::trackingData::sendToProc.
Referenced by findCellParticle::hitProcessorPatch(), sampledSetParticle::hitProcessorPatch(), and streamlinesParticle::hitProcessorPatch().
void hitWallPatch | ( | TrackCloudType & | , |
trackingData & | |||
) |
Overridable function to handle the particle hitting a wallPatch.
Definition at line 412 of file particleTemplates.C.
void hitBasicPatch | ( | TrackCloudType & | , |
trackingData & | td | ||
) |
Overridable function to handle the particle hitting a basic.
patch. Fall-through for the above.
Definition at line 417 of file particleTemplates.C.
References particle::trackingData::keepParticle.
void prepareForInteractionListReferral | ( | const polyMesh & | mesh, |
const transformer & | transform | ||
) |
Break the topology and store the cartesian position so that the.
particle can be referred.
Definition at line 1109 of file particle.C.
References Foam::cmptSum(), Foam::inv(), Foam::pos(), and Foam::transform().
Correct the topology after referral. Locates the particle.
relative to a nearby cell/tet. The particle may end up outside this cell/tet and cannot therefore be tracked.
Definition at line 1134 of file particle.C.
References primitiveMesh::cells(), polyMesh::moving(), Foam::pos(), and Foam::T().
Foam::label procTetPt | ( | const polyMesh & | mesh, |
const polyMesh & | procMesh, | ||
const label | procCell, | ||
const label | procTetFace | ||
) | const |
Return the tet point appropriate for decomposition or.
reconstruction to or from the given mesh.
Definition at line 1174 of file particle.C.
References polyMesh::faceOwner(), polyMesh::faces(), and List< T >::size().
|
static |
Read the fields associated with the owner cloud.
Definition at line 41 of file particleTemplates.C.
References Foam::constant::universal::c, forAllIter, typeIOobject< Type >::headerOk(), IOobject::MUST_READ, particle::origId(), p, and Foam::blendedInterfacialModel::valid().
Referenced by findCellParticle::findCellParticle(), particle::particle(), passiveParticleCloud::passiveParticleCloud(), molecule::readFields(), solidParticle::readFields(), streamlinesParticle::readFields(), sampledSetCloud::sampledSetCloud(), sampledSetParticle::sampledSetParticle(), and trackedParticle::trackedParticle().
|
static |
Write the fields associated with the owner cloud.
Definition at line 74 of file particleTemplates.C.
References Foam::constant::universal::c, forAllConstIter, IOobject::NO_READ, IOPosition< CloudType >::write(), and regIOobject::write().
Referenced by molecule::writeFields(), solidParticle::writeFields(), and streamlinesParticle::writeFields().
void writePosition | ( | Ostream & | os | ) | const |
Write the particle position and cell.
Definition at line 86 of file particleIO.C.
References IOstream::ASCII, IOstream::check(), IOstream::format(), token::SPACE, and Ostream::write().
Foam::scalar trackToAndHitFace | ( | const vector & | displacement, |
const scalar | fraction, | ||
TrackCloudType & | cloud, | ||
trackingData & | td | ||
) |
Definition at line 245 of file particleTemplates.C.
References Foam::endl(), f(), FUNCTION_NAME, Foam::Info, particle::trackingData::mesh, and Foam::nl.
|
static |
String representation of properties.
Definition at line 327 of file particle.H.
|
static |
Cumulative particle counter - used to provide unique ID.
Definition at line 330 of file particle.H.