from sectionproperties.pre import Material
from sectionproperties.pre.library import rectangular_wall
from sectionproperties.analysis import Section

concrete = Material(
    name="Concrete",
    elastic_modulus=30.1e3,
    poissons_ratio=0.2,
    yield_strength=32,
    density=2.4e-6,
    color="lightgrey",
)
steel = Material(
    name="Steel",
    elastic_modulus=200e3,
    poissons_ratio=0.3,
    yield_strength=500,
    density=7.85e-6,
    color="grey",
)

geom = rectangular_wall(
    d=1000,
    t=180,
    dia_bar=12,
    area_bar=110,
    spacing=200,
    cover=30,
    double=False,
    n_circle=12,
    conc_mat=concrete,
    steel_mat=steel,
)

geom.create_mesh(mesh_sizes=[0])  # a size of zero creates a coarse mesh
Section(geometry=geom).plot_mesh()