35 const word& cloudName,
36 const PtrList<fvMesh>& meshes,
41 passiveParticleCloud lagrangianPositions
45 IDLList<passiveParticle>()
50 const labelList& cellMap = cellProcAddressing[i];
51 const labelList& faceMap = faceProcAddressing[i];
53 Cloud<passiveParticle> lpi(meshes[i], cloudName,
false);
57 const passiveParticle& ppi = iter();
59 const label mappedCell = cellMap[ppi.cell()];
63 label mappedTetFace =
mag(faceMap[ppi.tetFace()]) - 1;
65 lagrangianPositions.append
73 ppi.procTetPt(mesh, mappedCell, mappedTetFace)
79 IOPosition<Cloud<passiveParticle>>(lagrangianPositions).
write();
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
List< label > labelList
A List of labels.
dimensioned< scalar > mag(const dimensioned< Type > &)
void reconstructLagrangianPositions(const polyMesh &mesh, const word &cloudName, const PtrList< fvMesh > &meshes, const labelListList &faceProcAddressing, const labelListList &cellProcAddressing)