File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ name = "jsrm" # Required
17
17
#
18
18
# For a discussion on single-sourcing the version, see
19
19
# https://packaging.python.org/guides/single-sourcing-package-version/
20
- version = " 0.0.13 " # Required
20
+ version = " 0.0.14 " # Required
21
21
22
22
# This is a one-line description or tagline of what your project does. This
23
23
# corresponds to the "Summary" metadata field:
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ def potential_energy_fn(
417
417
# compute the stiffness matrix
418
418
K = stiffness_fn (params , B_xi , formulate_in_strain_space = True )
419
419
# elastic energy
420
- U_K = (xi - xi_eq ).T @ K @ (xi - xi_eq ) # evaluate K(xi) = K @ xi
420
+ U_K = 0.5 * (xi - xi_eq ).T @ K @ (xi - xi_eq ) # evaluate K(xi) = K @ xi
421
421
422
422
# gravitational potential energy
423
423
params_for_lambdify = select_params_for_lambdify_fn (params )
You can’t perform that action at this time.
0 commit comments