Go to the documentation of this file.
37 #ifndef PatchEdgeFaceWave_H
38 #define PatchEdgeFaceWave_H
66 class PrimitivePatchType,
68 class TrackingData =
label
72 public PatchEdgeFaceWaveName
92 const PrimitivePatchType&
patch_;
136 const label neighbourFaceI,
137 const Type& neighbourInfo,
146 const label neighbourEdgeI,
147 const Type& neighbourInfo,
188 const PrimitivePatchType& patch,
202 const PrimitivePatchType& patch,
224 const TrackingData&
data()
const
264 class PrimitivePatchType,
266 class TrackingData =
int
280 const PrimitivePatchType& patch,
304 class PrimitivePatchType,
306 class TrackingData =
int
320 const PrimitivePatchType& patch,
UList< Type > & allEdgeInfo() const
Access allEdgeInfo.
DynamicList< label > changedFaces_
List of changed faces.
void syncEdges()
Update coupled edges.
#define forAll(list, i)
Loop across all elements in list.
const PrimitivePatchType & patch_
bool updateEdge(const label edgeI, const label neighbourFaceI, const Type &neighbourInfo, Type &edgeInfo)
Updates edgeInfo with information from neighbour. Updates all.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
UList< Type > & allEdgeInfo_
Wall information for all edges.
PatchEdgeFaceWave(const PatchEdgeFaceWave &)
Disallow default bitwise copy construct.
label faceToEdge()
Propagate from face to edge. Returns total number of edges.
bool updateFace(const label faceI, const label neighbourEdgeI, const Type &neighbourInfo, Type &faceInfo)
Updates faceInfo with information from neighbour. Updates all.
static scalar propagationTol_
Relative tolerance. Stop propagation if relative changes.
label nUnvisitedEdges_
Number of unvisited faces/edges.
Mesh consisting of general polyhedral cells.
PackedBoolList changedFace_
Has face changed.
UList< Type > & allFaceInfo() const
Access allFaceInfo.
const polyMesh & mesh_
Additional data to be passed into container.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
TrackingData & td_
Additional data to be passed into container.
static scalar propagationTol()
Access to tolerance.
label edgeToFace()
Propagate from edge to face. Returns total number of faces.
TemplateName(blendedSchemeBase)
label getUnsetFaces() const
Get number of unvisited faces, i.e. faces that were not (yet)
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))
static label dummyTrackData_
Used as default trackdata value to satisfy default template.
void setEdgeInfo(const labelList &changedEdges, const List< Type > &changedEdgesInfo)
Copy initial data into allEdgeInfo_.
DynamicList< label > changedEdges_
List of changed edges.
const PrimitivePatchType & patch_
Reference to patch.
void operator=(const PatchEdgeFaceWave &)
Disallow default bitwise assignment.
label nEvals_
Number of evaluations.
const polyMesh & mesh_
Reference to mesh.
PackedBoolList changedEdge_
Has edge changed.
UList< Type > & allFaceInfo_
Information on all patch faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static void setPropagationTol(const scalar tol)
Change tolerance.
label iterate(const label maxIter)
Iterate until no changes or maxIter reached. Returns actual.
const TrackingData & data() const
Additional data to be passed into container.
void operator()(Type &x, const Type &y) const
updateOp(const polyMesh &mesh, const PrimitivePatchType &patch, const scalar tol, TrackingData &td)
PackedBoolList sameEdgeOrientation_
label getUnsetEdges() const
Tensor< Cmpt > T() const
Transpose.