Skip to content

Commit

Permalink
Fix bug in specifying D
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoelzle committed Nov 19, 2024
1 parent fd05085 commit e192e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simulate_planar_pcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"G": 1e3 * jnp.ones((num_segments,)), # Shear modulus [Pa]
}
params["D"] = 1e-3 * jnp.diag(
jnp.repeat(
(jnp.repeat(
jnp.array([[1e0, 1e3, 1e3]]), num_segments, axis=0
).flatten(),
) * params["l"]
) * params["l"][:, None]).flatten()
)

# activate all strains (i.e. bending, shear, and axial)
strain_selector = jnp.ones((3 * num_segments,), dtype=bool)
Expand Down

0 comments on commit e192e5d

Please sign in to comment.