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

Function getNeighbour

src/sampling/sampledSurface/isoSurface/isoSurface.C:306–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304
305
306void Foam::isoSurface::getNeighbour
307(
308 const labelList& boundaryRegion,
309 const volVectorField& meshC,
310 const volScalarField& cVals,
311 const label celli,
312 const label facei,
313 scalar& nbrValue,
314 point& nbrPoint
315) const
316{
317 const labelList& own = mesh_.faceOwner();
318 const labelList& nei = mesh_.faceNeighbour();
319
320 if (mesh_.isInternalFace(facei))
321 {
322 label nbr = (own[facei] == celli ? nei[facei] : own[facei]);
323 nbrValue = cVals[nbr];
324 nbrPoint = meshC[nbr];
325 }
326 else
327 {
328 label bFacei = facei-mesh_.nInternalFaces();
329 label patchi = boundaryRegion[bFacei];
330 const polyPatch& pp = mesh_.boundaryMesh()[patchi];
331 label patchFacei = facei-pp.start();
332
333 nbrValue = cVals.boundaryField()[patchi][patchFacei];
334 nbrPoint = meshC.boundaryField()[patchi][patchFacei];
335 }
336}
337
338
339void Foam::isoSurface::calcCutTypes

Callers 4

calcCutTypesFunction · 0.85
calcSnappedCcFunction · 0.85
calcSnappedPointFunction · 0.85
faceToFaceFunction · 0.85

Calls 4

isInternalFaceMethod · 0.80
nInternalFacesMethod · 0.45
startMethod · 0.45
boundaryFieldMethod · 0.45

Tested by

no test coverage detected