Skip to content

Commit

Permalink
Merge pull request #93 from StatikTUM/feature/add-alias-for-stiffness
Browse files Browse the repository at this point in the history
Add alias `get_stiffness`
  • Loading branch information
oberbichler committed Apr 25, 2022
2 parents b82c6ac + 94840cf commit 1a23bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nfem/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ def compute_local(element: Element) -> Vector:

return k[:n, :n]

def get_stiffness(self) -> Matrix:
return self.compute_k()

def compute_ke(self) -> Matrix:
"""Compute the elastic stiffness matrix of the element."""
assembler = Assembler(self)
Expand Down

0 comments on commit 1a23bdf

Please sign in to comment.