MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / LaplaceDL_Triangle

Function LaplaceDL_Triangle

bem/analytic_integrals.cpp:221–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221 double LaplaceDL_Triangle (Vec<3> v0, Vec<3> v1, Vec<3> v2, Vec<3> x,
222 Vec<3> source_normal)
223 {
224 Vec<3> n = Cross(v1-v0, v2-v0);
225 if (InnerProduct(n, source_normal) > 0)
226 {
227 Swap(v1, v2);
228 n *= -1;
229 }
230 n /= L2Norm(n);
231 return LaplaceDL_TriangleOriented(v0, v1, v2, x, n);
232 }
233
234}

Callers 1

AddTangentCorrectionMethod · 0.85

Calls 5

CrossFunction · 0.85
SwapFunction · 0.85
InnerProductFunction · 0.50
L2NormFunction · 0.50

Tested by

no test coverage detected