35 Foam::lagrangianFieldDecomposer::lagrangianFieldDecomposer
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 =
73 decodedProcFaceAddressing.find(ppi.
tetFace());
75 if (mappedTetFace == -1)
78 <<
"Face lookup failure." <<
nl 90 ppi.
procTetPt(procMesh, procCelli, mappedTetFace)
Template class for intrusive linked lists.
void size(const label n)
Older name for setAddressableSize.
label tetFace() const noexcept
Return current tet face particle is in.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void resize(const label len)
Adjust allocated size of list.
const barycentric & coordinates() const noexcept
Return current particle coordinates.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label procTetPt(const polyMesh &procMesh, const label procCell, const label procTetFace) const
Return the tet point appropriate for decomposition or reconstruction.
Template class for non-intrusive linked lists.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
constexpr scalar pi(M_PI)
errorManip< error > abort(error &err)
Mesh consisting of general polyhedral cells.
Helper IO class to read and write particle coordinates (positions).
label index() const noexcept
Adds label index to base particle.
forAllConstIters(mixture.phases(), phase)