38 <<
"Particle counter has overflowed. This might cause problems" 39 <<
" when reconstructing particle tracks." <<
endl;
145 return s[0] + stepFraction_*s[1];
151 return tetIndices(celli_, tetFacei_, tetPti_);
159 return movingTetTransform(0)[0];
163 return stationaryTetTransform();
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label origProc() const
Return the originating processor ID.
const polyMesh & mesh() const
Return the mesh database.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool moving() const
Is mesh moving.
The time value with time-stepping information, user-defined remapping, etc.
bool onBoundaryFace() const
Is the particle on a boundary face?
triPointRef faceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
bool subCycling() const
Return true if time currently being sub-cycled, otherwise false.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pair< scalar > stepFractionSpan() const
Return the step fraction change within the overall time-step.
vector oldNormal() const
Return the normal of the tri on tetFacei_ for the.
const TimeState & prevTimeState() const
Return previous TimeState if time is being sub-cycled.
label tetPt() const
Return current tet face particle is in.
vector normal() const
Return the normal of the tri on tetFacei_ for the.
label cell() const
Return current cell particle is in.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
An ordered pair of two objects of type <T> with first() and second() elements.
label face() const
Return current face particle is on otherwise -1.
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
static const label labelMax
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
barycentricTensor currentTetTransform() const
Return the current tet transformation tensor.
vector normal() const
Return vector normal.
label origId() const
Return the particle ID on the originating processor.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
bool onFace() const
Is the particle on a face?
label tetFace() const
Return current tet face particle is in.
label getNewParticleID() const
Get unique particle creation id.
const Time & time() const
Return time.
scalar stepFraction() const
Return the fraction of time-step completed.
tetIndices currentTetIndices() const
Return the indices of the current tet that the.
#define WarningInFunction
Report a warning using Foam::Warning.
Templated 4x3 tensor derived from VectorSpace. Has 12 components. Can represent a barycentric transfo...
const barycentric & coordinates() const
Return current particle coordinates.
static label particleCount_
Cumulative particle counter - used to provode unique ID.
bool onInternalFace() const
Is the particle on an internal face?
Mesh consisting of general polyhedral cells.
triPointRef oldFaceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
vector position() const
Return current particle position.
label patch() const
Return the index of patch that the particle is on.
scalar currentTimeFraction() const
Return the current fraction within the timestep. This differs.