MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / regionEdge

Function regionEdge

src/dynamicMesh/polyMeshAdder/faceCoupleInfo.C:331–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330
331bool Foam::faceCoupleInfo::regionEdge
332(
333 const polyMesh& slaveMesh,
334 const label slaveEdgeI
335) const
336{
337 const labelList& eFaces = slavePatch().edgeFaces()[slaveEdgeI];
338
339 if (eFaces.size() == 1)
340 {
341 return true;
342 }
343 else
344 {
345 // Count how many different patches connected to this edge.
346
347 label patch0 = -1;
348
349 forAll(eFaces, i)
350 {
351 label facei = eFaces[i];
352
353 label meshFacei = slavePatch().addressing()[facei];
354
355 label patchi = slaveMesh.boundaryMesh().whichPatch(meshFacei);
356
357 if (patch0 == -1)
358 {
359 patch0 = patchi;
360 }
361 else if (patchi != patch0)
362 {
363 // Found two different patches connected to this edge.
364 return true;
365 }
366 }
367 return false;
368 }
369}
370
371
372Foam::label Foam::faceCoupleInfo::mostAlignedCutEdge

Callers 2

faceCoupleInfo.CFile · 0.85
subDivisionMatchFunction · 0.85

Calls 2

forAllFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected