RC Circle Section

[1]:
import numpy as np
from opstool.preprocessing import SecMesh, add_material, add_polygon, add_circle, offset, Rebars
[2]:
cover_d = 0.05
all = add_circle(xo=[0, 0], radius=0.75)
core = add_circle(xo=[0, 0], radius=0.75 - cover_d)
cover = all - core
sec = SecMesh()
sec.assign_group(dict(cover=cover, core=core))
sec.assign_mesh_size(dict(cover=0.02, core=0.08))
sec.assign_group_color(dict(cover="gray", core="green"))
sec.assign_ops_matTag(dict(cover=1, core=2))
sec.mesh()
# add rebars
rebars = Rebars()
rebars.add_rebar_circle(xo=[0, 0], radius=0.75 - 0.026 / 2 - cover_d,
                        dia=0.026, gap=0.15, matTag=3)
# add to the sec
sec.add_rebars(rebars)

#----------------------------------------------------------------
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)