Plain Section#
[1]:
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.1))
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)
D:\AcademicSoft\Anaconda3\lib\site-packages\sectionproperties\analysis\section.py:358: UserWarning:
The section geometry contains disjoint regions which is invalid for warping analysis.
Please revise your geometry to ensure there is connectivity between all regions.
Please see https://sectionproperties.readthedocs.io/en/latest/rst/analysis.html#warping-analysis for more information.
warnings.warn(
Section Properties ┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Symbol ┃ Value ┃ Definition ┃ ┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ A │ 4.000E+00 │ Cross-sectional area │ │ Asy │ 3.334E+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.253E+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.253E+00 │ Torsion constant │ │ phi │ 0.000E+00 │ Principal axis angle │ │ mass │ 4.000E+00 │ Section mass │ │ rho_rebar │ 0.000E+00 │ Ratio of reinforcement │ └───────────┴────────────────────────┴────────────────────────────────────────┘