Skip to content
Snippets Groups Projects
Commit 5bc9d3f3 authored by mattijs's avatar mattijs
Browse files

stabilise interpolation on zero area faces

parent bfc3a696
Branches
Tags
No related merge requests found
......@@ -213,13 +213,12 @@ void pointPatchInterpolation::makePatchPatchWeights()
if (!isA<emptyFvPatch>(bm[patchi]) && !bm[patchi].coupled())
{
pw[nFacesAroundPoint] =
1.0/mag
(
pointLoc
- centres.boundaryField()[patchi]
[bm[patchi].patch().whichFace(curFaces[facei])]
);
vector d =
pointLoc
- centres.boundaryField()[patchi]
[bm[patchi].patch().whichFace(curFaces[facei])];
pw[nFacesAroundPoint] = 1.0/(mag(d)+VSMALL);
nFacesAroundPoint++;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment