This is the frame of example frame-6 with a lateral displacement applied at node B (to do that, the input must specifiy a support constraint at that location). From this we will compute the lateral stiffness and compare it with the same frame having an applied force 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-delta.d/frame-6-sidesway-delta.svg')
Out[1]:
In [2]:
f = Frame2D('frame-6-sidesway-delta')
f.input_all()
f.print_input()
R = f.solve()
f.print_results(rs=R)
In [3]:
R.reaction_forces[3,0] ## lateral force corresponding to 10mm of displacements
Out[3]:
In [4]:
R.reaction_forces[3,0]/10. ## lateral stiffness
Out[4]: