Modelling loopsΒΆ

image

Cables become loops if they start and end with the same circle.

from DAVE import *
Equilibrium-core version = 2.1
default resource folders:
c:\python\miniconda3\envs\book\lib\site-packages\DAVE\resources
C:\Users\beneden\DAVE_models
C:\data\Dave\Book\DAVE-book\DAVE-notebooks
Blender found at: C:\Program Files\Blender Foundation\Blender 2.93\blender.exe
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()
Solved to 0.000e+00 kN
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)
embedWindow(verbose=True): could not load ipyvtk_simple try:
> pip install -U git+https://github.com/Kitware/ipyvtk-simple.git
../_images/Grommets_loops_7_1.png