37 #ifndef PatchEdgeFaceWave_H 38 #define PatchEdgeFaceWave_H 66 class PrimitivePatchType,
68 class TrackingData =
label 72 public PatchEdgeFaceWaveName
79 static scalar propagationTol_;
83 static label dummyTrackData_;
92 const PrimitivePatchType& patch_;
119 label nUnvisitedEdges_;
120 label nUnvisitedFaces_;
136 const label neighbourFacei,
137 const Type& neighbourInfo,
146 const label neighbourEdgeI,
147 const Type& neighbourInfo,
162 return propagationTol_;
168 propagationTol_ = tol;
182 const PrimitivePatchType& patch,
188 TrackingData& td = dummyTrackData_
196 const PrimitivePatchType& patch,
199 TrackingData& td = dummyTrackData_
221 const TrackingData&
data()
const 267 class PrimitivePatchType,
269 class TrackingData =
int 275 const PrimitivePatchType& patch_;
283 const PrimitivePatchType& patch,
294 void operator()(Type&
x,
const Type&
y)
const 298 x.updateEdge(mesh_, patch_, y,
true, tol_, td_);
307 class PrimitivePatchType,
309 class TrackingData =
int 315 const PrimitivePatchType& patch_;
323 const PrimitivePatchType& patch,
345 fld[i].transform(mesh_, patch_, vt.R(), tol_, td_);
352 fld[i].transform(mesh_, patch_, vt.R().T(), tol_, td_);
TemplateName(blendedSchemeBase)
#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.
const TrackingData & data() const
Additional data to be passed into container.
label getUnsetFaces() const
Get number of unvisited faces, i.e. faces that were not (yet)
static void setPropagationTol(const scalar tol)
Change tolerance.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label faceToEdge()
Propagate from face to edge. Returns total number of edges.
label edgeToFace()
Propagate from edge to face. Returns total number of faces.
PatchEdgeFaceWave(const polyMesh &mesh, const PrimitivePatchType &patch, const labelList &initialEdges, const List< Type > &initialEdgesInfo, UList< Type > &allEdgeInfo, UList< Type > &allFaceInfo, const label maxIter, TrackingData &td=dummyTrackData_)
Construct from patch, list of changed edges with the Type.
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){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void operator=(const PatchEdgeFaceWave &)=delete
Disallow default bitwise assignment.
label iterate(const label maxIter)
Iterate until no changes or maxIter reached. Returns actual.
static scalar propagationTol()
Access to tolerance.
void setEdgeInfo(const labelList &changedEdges, const List< Type > &changedEdgesInfo)
Copy initial data into allEdgeInfo_.
UList< Type > & allFaceInfo() const
Access allFaceInfo.
label getUnsetEdges() const
Mesh consisting of general polyhedral cells.
UList< Type > & allEdgeInfo() const
Access allEdgeInfo.