Python Forum

Full Version: Code to create a hanging rope
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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/
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.
you can search Pypi for a package that fits your needs: https://pypi.org/
there are currently 223,389 packages available.
ok, thanks!