36 const PtrList<fvMesh>& meshes,
41 passiveParticleCloud lagrangianPositions
45 IDLList<passiveParticle>()
50 const labelList& cellMap = cellProcAddressing[i];
53 Cloud<passiveParticle> lpi(meshes[i],
cloudName,
false);
57 const passiveParticle& ppi = iter();
59 const label mappedCell = cellMap[ppi.cell()];
65 lagrangianPositions.append
73 ppi.procTetPt(meshes[i], mesh, mappedCell, mappedTetFace)
79 IOPosition<Cloud<passiveParticle>>(lagrangianPositions).
write();
#define forAll(list, i)
Loop across all elements in list.
#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.
void reconstructLagrangianPositions(const polyMesh &mesh, const word &cloudName, const PtrList< fvMesh > &meshes, const labelListList &faceProcAddressing, const labelListList &cellProcAddressing)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< labelList > labelListList
A List of labelList.
dimensioned< scalar > mag(const dimensioned< Type > &)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const word cloudName(propsDict.lookup("cloudName"))