Skip to content
Snippets Groups Projects
Commit a7805df3 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL/BC/NormalTraction] Subst. MaL::Vector3 by Eigen::Vector3d.

parent ac56af25
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#pragma once #pragma once
#include "MathLib/LinAlg/Eigen/EigenMapTools.h" #include "MathLib/LinAlg/Eigen/EigenMapTools.h"
#include "MathLib/Vector3.h"
#include "MeshLib/Elements/FaceRule.h" #include "MeshLib/Elements/FaceRule.h"
#include "NumLib/DOF/DOFTableUtil.h" #include "NumLib/DOF/DOFTableUtil.h"
#include "ParameterLib/Parameter.h" #include "ParameterLib/Parameter.h"
...@@ -87,8 +86,9 @@ public: ...@@ -87,8 +86,9 @@ public:
// TODO Extend to rotated 2d meshes and line elements. // TODO Extend to rotated 2d meshes and line elements.
if (e.getGeomType() == MeshLib::MeshElemType::LINE) if (e.getGeomType() == MeshLib::MeshElemType::LINE)
{ {
auto v1 = MathLib::Vector3(*e.getNode(1)) - Eigen::Vector3d const v1 =
MathLib::Vector3(*e.getNode(0)); Eigen::Map<Eigen::Vector3d const>(e.getNode(1)->getCoords()) -
Eigen::Map<Eigen::Vector3d const>(e.getNode(0)->getCoords());
element_normal[0] = -v1[1]; element_normal[0] = -v1[1];
element_normal[1] = v1[0]; element_normal[1] = v1[0];
element_normal.normalize(); element_normal.normalize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment