Plain Section#
[2]:
import opstool as opst
outlines = [[0, 0], [2, 0], [2, 2], [0, 2]]
obj = opst.add_polygon(outlines)
sec = opst.SecMesh(sec_name='plain section')
sec.assign_group(dict(sec=obj))
sec.assign_mesh_size(dict(sec=0.05))
sec.mesh()
sec_props = sec.get_sec_props(display_results=True, plot_centroids=False)
sec_props2 = sec.get_frame_props(display_results=True)
sec.centring()
# sec.rotate(45)
sec.view(fill=True, engine='mpl', save_html=None, on_notebook=True)
Section Properties ┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Symbol ┃ Value ┃ Definition ┃ ┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ A │ 4.000E+00 │ Cross-sectional area │ │ Asy │ 3.333E+00 │ Shear area y-axis │ │ Asz │ 3.334E+00 │ Shear area z-axis │ │ centroid │ (1.000E+00, 1.000E+00) │ Elastic centroid │ │ Iy │ 1.333E+00 │ Moment of inertia y-axis │ │ Iz │ 1.333E+00 │ Moment of inertia z-axis │ │ Iyz │ 1.776E-15 │ Product of inertia │ │ Wyt │ 1.333E+00 │ Section moduli of top fibres y-axis │ │ Wyb │ 1.333E+00 │ Section moduli of bottom fibres y-axis │ │ Wzt │ 1.333E+00 │ Section moduli of top fibres z-axis │ │ Wzb │ 1.333E+00 │ Section moduli of bottom fibres z-axis │ │ J │ 2.250E+00 │ Torsion constant │ │ phi │ 0.000E+00 │ Principal axis angle │ │ mass │ 4.000E+00 │ Section mass │ │ rho_rebar │ 0.000E+00 │ Ratio of reinforcement │ └───────────┴────────────────────────┴────────────────────────────────────────┘
Frame Section Properties ┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Symbol ┃ Value ┃ Definition ┃ ┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ A │ 4.000E+00 │ Cross-sectional area │ │ centroid │ (1.000E+00, 1.000E+00) │ Elastic centroid │ │ Iy │ 1.333E+00 │ Moment of inertia y-axis │ │ Iz │ 1.333E+00 │ Moment of inertia z-axis │ │ Iyz │ 1.776E-15 │ Product of inertia │ │ Wyt │ 1.333E+00 │ Section moduli of top fibres y-axis │ │ Wyb │ 1.333E+00 │ Section moduli of bottom fibres y-axis │ │ Wzt │ 1.333E+00 │ Section moduli of top fibres z-axis │ │ Wzb │ 1.333E+00 │ Section moduli of bottom fibres z-axis │ │ J │ 2.250E+00 │ Torsion constant │ │ phi │ 0.000E+00 │ Principal axis angle │ │ mass │ 4.000E+00 │ Section mass │ │ rho_rebar │ 0.000E+00 │ Ratio of reinforcement │ └───────────┴────────────────────────┴────────────────────────────────────────┘