Plain Section

[1]:
import numpy as np
from opstool.preprocessing import SecMesh, add_material, add_polygon, add_circle, offset, Rebars
[2]:
outlines = [[0, 0], [2, 0], [2, 2], [0, 2], [0, 0]]
obj = add_polygon(outlines)
sec = SecMesh(sec_name='plain section')
sec.assign_group(dict(sec=obj))
sec.assign_mesh_size(dict(sec=0.1))
sec.mesh()
sec.get_sec_props(display_results=False, plot_centroids=False)
sec.centring()
# sec.rotate(45)
sec.view(fill=True, engine='plotly', save_html=None, on_notebook=True)
D:\AcademicSoft\Anaconda3\lib\site-packages\sectionproperties\analysis\section.py:198: ShapelyDeprecationWarning: STRtree will be changed in 2.0.0 and will not be compatible with versions < 2.
  self.mesh_search_tree = STRtree(p_mesh)
D:\AcademicSoft\Anaconda3\lib\site-packages\sectionproperties\analysis\section.py:360: 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(