Modelling loops#
Cables become loops if they start and end with the same circle.
from DAVE import *
DAVEcore version = 2.0 from c:\python\miniconda3\envs\book\Lib\site-packages\DAVEcore.cp311-win_amd64.pyd
! Blender not found - Blender can be installed from the microsoft windows store. if you have blender already and want to be able to use blender then please either:
- configure windows to open .blend files with blender automatically
- add the folder containing blender-launcher.exe to the PATH variable.
s = Scene()
s.new_point('Point1', position = (0,0,-2))
s.new_circle('Circle1', parent = 'Point1', axis = (0,1,0), radius = 1)
s.new_point('Point2', position = (0,0,2))
s.new_circle('Circle2', parent = 'Point2', axis = (0,1,0), radius = 1)
s.new_cable("grommet", endA="Circle1", endB = "Circle1", sheaves = ["Circle2"], EA = 100)
grommet <Cable>
s.solve_statics()
True
We expect the length of the loop to be:
\( 2 \pi r + 2 * 4 = 14.28\)
grommet = s['grommet']
stretched_length = grommet.length + grommet.stretch
print(stretched_length)
14.283185307179586
from DAVE.jupyter import show
show(s, zoom_fit=True, width=2000, height=2000)
