Skip to content
Snippets Groups Projects
Commit 727b02f7 authored by Thomas Toulorge's avatar Thomas Toulorge
Browse files

Modified fast curving to act also on concave boundaries

parent ddd8e932
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ inline void insertIfCurved(MElement *el, std::list<MElement*> &bndEl) ...@@ -410,7 +410,7 @@ inline void insertIfCurved(MElement *el, std::list<MElement*> &bndEl)
SPoint3 xyzS(0.,0.,0.); SPoint3 xyzS(0.,0.,0.);
for (int iSF = 0; iSF < nV1; ++iSF) xyzS += xyz1[iSF]*f[iSF]; // Compute location of node in straight element for (int iSF = 0; iSF < nV1; ++iSF) xyzS += xyz1[iSF]*f[iSF]; // Compute location of node in straight element
const SVector3 vec(xyzS, el->getVertex(iV)->point()); const SVector3 vec(xyzS, el->getVertex(iV)->point());
const double normalDisp = dot(vec, normal); // Normal component of displacement const double normalDisp = fabs(dot(vec, normal)); // Normal component of displacement
if (normalDisp > normalDispCurved) { if (normalDisp > normalDispCurved) {
bndEl.push_back(el); bndEl.push_back(el);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment