Example 4#
import micropip
await micropip.install('../../packages/sympy-1.14.dev0-py3-none-any.whl')
#takes a while
%pip install git+https://github.com/BorekSaheli/sympy.git@structure2d
The optional parameter draw_support_icons
will draw the following icons for the supports:
import matplotlib.pyplot as plt
from sympy.physics.continuum_mechanics.structure2d import Structure2d
%config InlineBackend.figure_format = 'svg'
E = 3e4
I = 1
A = 1e4
s = Structure2d()
s.add_member(x1=0, y1=0, x2=7, y2=0, E=E, I=I, A=A)
Rv1, Rh1 = s.apply_support(x=0, y=0, type="pin")
Rv2 = s.apply_support(x=7/2, y=0, type="roller")
Rv3, Rh3, T1 = s.apply_support(x=7, y=0, type="fixed")
s.draw(show_load_values=True, forced_load_size=2, draw_support_icons=True)