Skip to content

How to Implement Nonlinear Stiffness Based on Deformation? #344

Answered by armantekinalp
cuicw asked this question in Q&A
Discussion options

You must be logged in to vote

There are two options:

  1. Easier option. You can write a forcing function and modify the bend_matrix at each time step. Note that both bend_matrix and kappa are members of the rod. Now here there is a catch with this approach, since in time-step algorithm all external_force functions computed after the internal_forces/internal_torques, updated bend_matrix will be used in the next time-step. If you expect significant changes between kappa values in between time-steps then I suggest you try the second approach.

  2. Relatively harder option. You can modify the functions where internal torques are computed, but this requires changing some back end code. I suggest clone PyElastica in your local s…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cuicw
Comment options

@armantekinalp
Comment options

@cuicw
Comment options

@armantekinalp
Comment options

Answer selected by cuicw
@cuicw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants