Skip to content

Commit

Permalink
Fix bad bug in potential_energy_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoelzle committed Dec 16, 2024
1 parent 2daa3b1 commit 939a3b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "jsrm" # Required
#
# For a discussion on single-sourcing the version, see
# https://packaging.python.org/guides/single-sourcing-package-version/
version = "0.0.13" # Required
version = "0.0.14" # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down
2 changes: 1 addition & 1 deletion src/jsrm/systems/planar_pcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def potential_energy_fn(
# compute the stiffness matrix
K = stiffness_fn(params, B_xi, formulate_in_strain_space=True)
# elastic energy
U_K = (xi - xi_eq).T @ K @ (xi - xi_eq) # evaluate K(xi) = K @ xi
U_K = 0.5 * (xi - xi_eq).T @ K @ (xi - xi_eq) # evaluate K(xi) = K @ xi

# gravitational potential energy
params_for_lambdify = select_params_for_lambdify_fn(params)
Expand Down

0 comments on commit 939a3b5

Please sign in to comment.