|
48 | 48 | # Add self weight dead loads to the frame
|
49 | 49 | # Note that we could leave 'x1' and 'x2' undefined below and it would default to the full member length
|
50 | 50 | # Note also that the direction uses lowercase notations to indicate member local coordinate systems
|
51 |
| -MomentFrame.add_member_dist_load('Beam', Direction='Fy', w1=-0.024/12, w2=-0.024/12, x1=0, x2=15*12, case='D') |
52 |
| -MomentFrame.add_member_dist_load('Col1', Direction='Fx', w1=-0.033/12, w2=-0.033/12, x1=0, x2=12*12, case='D') |
53 |
| -MomentFrame.add_member_dist_load('Col2', Direction='Fx', w1=-0.033/12, w2=-0.033/12, x1=0, x2=12*12, case='D') |
| 51 | +MomentFrame.add_member_dist_load('Beam', direction='Fy', w1=-0.024/12, w2=-0.024/12, x1=0, x2=15*12, case='D') |
| 52 | +MomentFrame.add_member_dist_load('Col1', direction='Fx', w1=-0.033/12, w2=-0.033/12, x1=0, x2=12*12, case='D') |
| 53 | +MomentFrame.add_member_dist_load('Col2', direction='Fx', w1=-0.033/12, w2=-0.033/12, x1=0, x2=12*12, case='D') |
54 | 54 |
|
55 | 55 | # Add a nodal wind load of 10 kips at the left side of the frame
|
56 | 56 | # Note that the direction uses uppercase notation to indicate model global coordinate system
|
57 |
| -MomentFrame.add_node_load('N2', Direction='FX', P=10, case='W') |
| 57 | +MomentFrame.add_node_load('N2', direction='FX', P=10, case='W') |
58 | 58 |
|
59 | 59 | # Create two load combinations
|
60 | 60 | MomentFrame.add_load_combo('1.2D+1.0W', factors={'D':1.2, 'W':1.0})
|
|
71 | 71 | # MomentFrame.analyze_linear(log=True)
|
72 | 72 |
|
73 | 73 | # Display the deformed shape of the structure magnified 50 times with the text height 5 model units (inches) high
|
74 |
| -from PyNite import Visualization |
75 |
| -Visualization.render_model(MomentFrame, annotation_size=5, deformed_shape=True, deformed_scale=50, combo_name='1.2D+1.0W') |
| 74 | +from PyNite.Visualization import Renderer |
| 75 | +rndr = Renderer(MomentFrame) |
| 76 | +rndr.annotation_size = 5 |
| 77 | +rndr.deformed_shape = True |
| 78 | +rndr.deformed_scale = 50 |
| 79 | +rndr.combo_name = '1.2D+1.0W' |
| 80 | +rndr.render_model(MomentFrame) |
76 | 81 |
|
77 | 82 | # Plot the moment diagram for the beam
|
78 | 83 | MomentFrame.members['Beam'].plot_moment('Mz', combo_name='1.2D+1.0W')
|
|
0 commit comments