| 304 | |
| 305 | |
| 306 | void 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 | |
| 339 | void Foam::isoSurface::calcCutTypes |
no test coverage detected