# auto generated python code
# By MS12H
# Time: 2023-11-15 11:44:21 UTC
# To be able to distinguish the important number (eg: fixed positions) from
# non-important numbers (eg: a position that is solved by the static solver) we use a dummy-function called 'solved'.
# For anything written as solved(number) that actual number does not influence the static solution
def solved(number):
return number
# Environment settings
s.g = 9.80665
s.waterlevel = 0.0
s.rho_air = 0.00126
s.rho_water = 1.025
s.wind_direction = 0.0
s.wind_velocity = 0.0
s.current_direction = 0.0
s.current_velocity = 0.0
# code for Frame
s.new_frame(name='Frame',
position=(0,
0,
0),
rotation=(0,
-10,
0),
fixed =(True, True, True, True, True, True),
)
# code for Point2
s.new_point(name='Point2',
position=(0,
0,
0))
# code for Point3
s.new_point(name='Point3',
position=(8.894,
1.256,
1.099))
# code for Point
s.new_point(name='Point',
parent='Frame',
position=(4,
0,
0))
# code for Roundbar
c = s.new_circle(name='Roundbar',
parent='Point',
axis=(0, 0.957936, 0.286981),
roundbar=True,
radius=2 )
c.draw_start = -2.0
c.draw_stop = 3.0
# code for Cable
s.new_cable(name='Cable',
endA='Point3',
endB='Point2',
length=5,
EA=1000.0,
sheaves = ['Roundbar'])
s['Cable'].reversed = (False, True, False)
s['Point']._visible = False