Skip to content

Commit

Permalink
Fixing bug with Tendon stiffness
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonatte committed Feb 9, 2024
1 parent 5688bcb commit c4f5510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion secan/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ def get_normal_stress(self, strain=0):
def get_stiffness(self, e0, k, center):
strain = e0 + k * (center - self.center[1])
if strain > self.strain_ULS:
return 0
return np.array(([0, 0],
[0, 0]))
strain += self.initial_strain #This still has to be tested
normal = self.area * self.material.get_stiff(strain)
dist = (center-self.center[1])
Expand Down

0 comments on commit c4f5510

Please sign in to comment.