From d7ff5539910e3cee02beb556d9f8ba7758ed0d47 Mon Sep 17 00:00:00 2001
From: Manuel Weberndorfer <manuel.weberndorfer@id.ethz.ch>
Date: Tue, 30 Mar 2021 18:54:53 +0200
Subject: [PATCH] remove weight property

---
 .../src/include/ae108/elements/TimoshenkoBeamElement.h    | 8 ++------
 elements/test/TimoshenkoBeamElement_Test.cc               | 4 ++--
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/elements/src/include/ae108/elements/TimoshenkoBeamElement.h b/elements/src/include/ae108/elements/TimoshenkoBeamElement.h
index 2c12a6a8..3a1b7e1f 100644
--- a/elements/src/include/ae108/elements/TimoshenkoBeamElement.h
+++ b/elements/src/include/ae108/elements/TimoshenkoBeamElement.h
@@ -42,8 +42,6 @@ template <class ValueType_> struct Properties<ValueType_, 3> {
   value_type area_moment_z;
   value_type area_moment_y;
   value_type polar_moment_x;
-
-  value_type weight;
 };
 
 template <class ValueType_> struct Properties<ValueType_, 2> {
@@ -57,8 +55,6 @@ template <class ValueType_> struct Properties<ValueType_, 2> {
   value_type area;
 
   value_type area_moment_z;
-
-  value_type weight;
 };
 
 /**
@@ -120,7 +116,7 @@ stiffness_matrix<double, 3>(const Properties<double, 3> &properties,
   }};
   // clang-format on
 
-  return properties.weight * tensor::as_matrix_of_rows(&matrix);
+  return tensor::as_matrix_of_rows(&matrix);
 }
 
 // refer to Cook et. al (2002), "Concepts and applications of Finite Element
@@ -157,7 +153,7 @@ stiffness_matrix<double, 2>(const Properties<double, 2> &properties,
   }};
   // clang-format on
 
-  return properties.weight * tensor::as_matrix_of_rows(&matrix);
+  return tensor::as_matrix_of_rows(&matrix);
 }
 
 template <class ValueType_, std::size_t Dimension_>
diff --git a/elements/test/TimoshenkoBeamElement_Test.cc b/elements/test/TimoshenkoBeamElement_Test.cc
index 2a17d758..c90c873e 100644
--- a/elements/test/TimoshenkoBeamElement_Test.cc
+++ b/elements/test/TimoshenkoBeamElement_Test.cc
@@ -50,12 +50,12 @@ create_element_properties() noexcept {
 template <>
 inline typename timoshenko::Properties<double, 3>
 create_element_properties<double, 3>() noexcept {
-  return {1., 1., 1., 1., 1., 1., 1., 1., 1., 1.};
+  return {1., 1., 1., 1., 1., 1., 1., 1.};
 }
 template <>
 inline typename timoshenko::Properties<double, 2>
 create_element_properties<double, 2>() noexcept {
-  return {1., 1., 1., 1., 1., 1., 1.};
+  return {1., 1., 1., 1., 1.};
 }
 
 template <class Element_> struct ReferenceConfiguration {
-- 
GitLab