33 Foam::lagrangianFieldDecomposer::lagrangianFieldDecomposer
36 const polyMesh& procMesh,
39 const word& cloudName,
40 const Cloud<indexedParticle>& lagrangianPositions,
41 const List<SLList<indexedParticle*>*>& cellParticles
45 positions_(procMesh, cloudName, false),
46 particleIndices_(lagrangianPositions.size())
58 forAll(cellProcAddressing, procCelli)
60 label celli = cellProcAddressing[procCelli];
62 if (cellParticles[celli])
64 SLList<indexedParticle*>& particlePtrs = *cellParticles[celli];
68 const indexedParticle& ppi = *iter();
69 particleIndices_[pi++] = ppi.index();
98 particleIndices_.setSize(pi);
100 IOPosition<Cloud<passiveParticle>>(positions_).
write();
#define forAll(list, i)
Loop across all elements in list.
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< label > labelList
A List of labels.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual bool write() const
Write mesh using IO settings from time.