Skip to content

Commit

Permalink
bug: fixed stiffness functio call that was changed incorrectly for be…
Browse files Browse the repository at this point in the history
…tter variable naming causing error
  • Loading branch information
cram9030 committed Jan 20, 2025
1 parent aedbded commit b602007
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/models/nonlinear_euler_bernoulli_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ def stiffness_func(x: np.ndarray) -> np.ndarray:

# Implement the nonlinear stiffness function f1-f6
# from the provided equations
f1 = partial(_f_1_expr, l=seg_l, A_xx=EA)
f2 = partial(_f_2_expr, l=seg_l, A_xx=EA)
f3 = partial(_f_3_expr, l=seg_l, A_xx=EA, D_xx=EI)
f4 = partial(_f_4_expr, l=seg_l, A_xx=EA, D_xx=EI)
f5 = partial(_f_5_expr, l=seg_l, A_xx=EA, D_xx=EI)
f6 = partial(_f_6_expr, l=seg_l, A_xx=EA, D_xx=EI)
f1 = partial(_f_1_expr, length=seg_l, A_xx=EA)
f2 = partial(_f_2_expr, length=seg_l, A_xx=EA)
f3 = partial(_f_3_expr, length=seg_l, A_xx=EA, D_xx=EI)
f4 = partial(_f_4_expr, length=seg_l, A_xx=EA, D_xx=EI)
f5 = partial(_f_5_expr, length=seg_l, A_xx=EA, D_xx=EI)
f6 = partial(_f_6_expr, length=seg_l, A_xx=EA, D_xx=EI)

# Evaluate with remaining variables
return np.array(
Expand Down

0 comments on commit b602007

Please sign in to comment.