HasHasliRevani
Decapat
- Katılım
- 15 Mart 2021
- Mesajlar
- 37
Daha fazla
- Cinsiyet
- Erkek
Kodu çalıştırdığımda aşağıdaki attribute hatasını alıyorum.
Kod:
from anastruct import SystemElements
import math
ss = SystemElements(EA=5000)
ss.add_truss_element(location=[[0, 0], [0, 5]])
ss.add_truss_element(location=[[0, 5], [5, 5]])
ss.add_truss_element(location=[[5, 5], [5, 0]])
ss.add_truss_element(location=[[0, 0], [5, 5]], EA=5000 * math.sqrt(2))
ss.add_support_hinged(node_id=1)
ss.add_support_hinged(node_id=4)
ss.point_load(Fx=10, node_id=2)
ss.solve()
ss.show_structure()
ss.show_reaction_force()
ss.show_axial_force()
ss.show_displacement(factor=10)
Kod:
File "c:\Users\Windows\Desktop\Python\lesson.py", line 10, in <module>
ss.add_support_hinged(node_id=1)
File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\anastruct\fem\system.py", line 731, in add_support_hinged
if not isinstance(node_id, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'