48 particleIndices_(lagrangianPositions.size())
52 labelList decodedProcFaceAddressing(faceProcAddressing.
size());
54 forAll(faceProcAddressing, i)
56 decodedProcFaceAddressing[i] =
mag(faceProcAddressing[i]) - 1;
59 forAll(cellProcAddressing, procCelli)
61 label celli = cellProcAddressing[procCelli];
63 if (cellParticles[celli])
70 particleIndices_[pi++] = ppi.
index();
72 const label mappedTetFace =
75 if (mappedTetFace == -1)
78 <<
"Face lookup failure." <<
nl
90 ppi.
procTetPt(procMesh, procCelli, mappedTetFace)
97 particleIndices_.
resize(pi);
Base cloud calls templated on particle type.
Template class for intrusive linked lists.
Helper IO class to read and write particle coordinates (positions).
Template class for non-intrusive linked lists.
void resize(const label len)
Adjust allocated size of list.
label find(const T &val, label pos=0) const
Find index of the first occurrence of the value.
void size(const label n)
Older name for setAddressableSize.
Adds label index to base particle.
Lagrangian field decomposer.
label procTetPt(const polyMesh &procMesh, const label procCell, const label procTetFace) const
Return the tet point appropriate for decomposition or reconstruction.
label tetFace() const noexcept
Return current tet face particle is in.
const barycentric & coordinates() const noexcept
Return current particle coordinates.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.
const word cloudName(propsDict.get< word >("cloud"))