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

Function faceOnCell

src/meshTools/meshTools/meshTools.C:307–333  ·  view source on GitHub ↗

Return true if facei part of celli

Source from the content-addressed store, hash-verified

305
306// Return true if facei part of celli
307bool Foam::meshTools::faceOnCell
308(
309 const primitiveMesh& mesh,
310 const label celli,
311 const label facei
312)
313{
314 if (mesh.isInternalFace(facei))
315 {
316 if
317 (
318 (mesh.faceOwner()[facei] == celli)
319 || (mesh.faceNeighbour()[facei] == celli)
320 )
321 {
322 return true;
323 }
324 }
325 else
326 {
327 if (mesh.faceOwner()[facei] == celli)
328 {
329 return true;
330 }
331 }
332 return false;
333}
334
335
336Foam::label Foam::meshTools::findEdge

Callers 6

cellLooper.CFile · 0.85
walkSplitHexFunction · 0.85
walkPointFunction · 0.85
calcAnchorsFunction · 0.85
cellFeatures.CFile · 0.85
getEdgeFacesFunction · 0.85

Calls 1

isInternalFaceMethod · 0.80

Tested by

no test coverage detected