This is the frame of example frame-6 with a lateral force applied at node B. From this we will compute the lateral stiffness and compare it with the same frame having an applied displacement at the same node. (Note, they compare equal to 14 significant figures).
In [1]:
from Frame2D import Frame2D
from IPython import display
display.SVG('data/frame-6-sidesway-force.d/frame-6-sidesway-force.svg')
Out[1]:
In [2]:
f = Frame2D('frame-6-sidesway-force')
f.input_all()
f.print_input()
R = f.solve()
f.print_results(rs=R)
In [3]:
R.node_displacements[0,0] # lateral displacement
Out[3]:
In [4]:
100000./R.node_displacements[0,0] # lateral stiffness
Out[4]:
In [ ]: