117 void swapStarEdges(
const label starEdgeiA,
const label starEdgeiB);
120 template<
class FaceEdges>
148 return starFaceFaces_;
154 return faceStarFaces_;
160 return starEdgeEdges_;
166 return edgeStarEdges_;
175 template<
class CanCross,
class FaceEdges>
178 const label faceOrEdgei,
201 return !(elA == elB);
209 <<
' ' << el.
edgei_ <<
' '
220 #define forAllStarFaces(star, starFacei, facei) \
223 label starFacei = 0, \
226 star.starFaceFaces().size() > 0 \
227 ? (star).starFaceFaces()[starFacei] \
230 starFacei < star.starFaceFaces().size(); \
234 starFacei < (star).starFaceFaces().size() \
235 ? (star).starFaceFaces()[starFacei] \
241 #define forAllStarEdges(star, i, starEdgei, edgei) \
248 (star).starEdgeEdges().size() > 0 \
249 ? (star).starEdgeEdges()[0].edgei_ \
252 i < (star).starEdgeEdges().size(); \
254 starEdgei = (star).starEdgeEdges()[starEdgei].starEdgei1_, \
258 ? (star).starEdgeEdges()[starEdgei].edgei_ \
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Context class. Returned by populate and resets the star when it.
context(star &s)
Construct from components.
Engine for constructing a star-shaped domain by walking.
const DynamicList< label > & edgeStarEdges() const
Access the edge-star-edges.
const DynamicList< edgeLink > & starEdgeEdges() const
Access the star-edge-edges.
const DynamicList< label > & starFaceFaces() const
Access the star-face-faces.
const DynamicList< label > & faceStarFaces() const
Access the face-star-faces.
context populate(const label faceOrEdgei, const bool isFace, CanCross canCross, const UList< FaceEdges > &faceEdges, const UList< labelPair > &edgeFaces, const label maxIterations=labelMax)
Populate the star given a seed face or edge, a function.
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))
bool operator!=(const particle &, const particle &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
static const label labelMax
Star-edge structure. Poor man's linked list link.