30 void Foam::star::reset()
32 forAll(starFaceFaces_, starFacei)
34 const label facei = starFaceFaces_[starFacei];
37 faceStarFaces_[starFaceFaces_[starFacei]] = -1;
40 starFaceFaces_.
clear();
42 forAll(starEdgeEdges_, starEdgei)
44 const label edgei = starEdgeEdges_[starEdgei].edgei_;
47 edgeStarEdges_[edgei] = -1;
50 starEdgeEdges_.clear();
54 void Foam::star::swapStarEdges(
const label starEdgeiA,
const label starEdgeiB)
56 const label starEdgeiA0 = starEdgeEdges_[starEdgeiA].starEdgei0_;
57 const label starEdgeiA1 = starEdgeEdges_[starEdgeiA].starEdgei1_;
59 const label starEdgeiB0 = starEdgeEdges_[starEdgeiB].starEdgei0_;
60 const label starEdgeiB1 = starEdgeEdges_[starEdgeiB].starEdgei1_;
62 if (starEdgeiA0 != -1)
64 starEdgeEdges_[starEdgeiA0].starEdgei1_ = starEdgeiB;
66 if (starEdgeiA1 != -1)
68 starEdgeEdges_[starEdgeiA1].starEdgei0_ = starEdgeiB;
71 if (starEdgeiB0 != -1)
73 starEdgeEdges_[starEdgeiB0].starEdgei1_ = starEdgeiA;
75 if (starEdgeiB1 != -1)
77 starEdgeEdges_[starEdgeiB1].starEdgei0_ = starEdgeiA;
80 Swap(starEdgeEdges_[starEdgeiA], starEdgeEdges_[starEdgeiB]);
#define forAll(list, i)
Loop across all elements in list.
void clear()
Clear the addressed list, i.e. set the size to zero.
context(star &s)
Construct from components.
Engine for constructing a star-shaped domain by walking.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.