Python Forum
Code to create a hanging rope
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code to create a hanging rope
#1
I am trying to simulate the physics of a 2D hanging rope, consistent of a series of n-links. It could be a series of four pendulums. I just want some movement of the rope and the ability to contact with the ground.

I would like to programme it from zero, but I don't find simple maths to recreate this effects. I need to create a numerical integration of all the process. Which are the basic equations to escalate a series of n-links to resemble like a rope, please?
Reply
#2
there are packages for math see scipy: https://www.scipy.org/
and numpy: https://numpy.org/
and if you need ploting see matplotlib: https://matplotlib.org/
Reply
#3
Thanks. I have thought about using those packages once the basic equations approach are solved. The most usual is to use differential equations to create kind of double pendulums movements. However, due to the needs of my simulation project, I need numerical integration I'm afraid.
Reply
#4
you can search Pypi for a package that fits your needs: https://pypi.org/
there are currently 223,389 packages available.
Reply
#5
ok, thanks!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020