How to correctly simulate a pre-twisted rod with one end fixed and one end free? #543
Answered
by
skim0119
Qin-Shaowen
asked this question in
Q&A
|
I am trying to simulate a rod that is initially twisted and then released, with one end fixed and the other end free to untwist. The setup:
I am using PyElastica 1.0.0 with Python 3.13.7. I have tried:
What is the correct way to initialize a CosseratRod with a uniform pre-twist and simulate its free untwisting? Thank you. |
Answered by
skim0119
Jul 9, 2026
Replies: 1 comment 3 replies
|
@Qin-Shaowen Please share your script. Just to clarify, you want to simulate a rod that has rest configuration to be straight, and set the simulation that start with twisted configuration?
|
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@Qin-Shaowen Here is some changes and comments for the code. I left
Notecomments where I made changes.Mainly,
ea.Spherewith fixed relative orientation (I believe this is what you want: link the angular momentum).Most of the code should be the same. Please take a look.
Probably, few physical parameters (contact springs and dissipation) needs to be reconsidered to match the timescale exactly, but I would start from this.
bell_simulation.mp4