from sectionproperties.pre import Material
from sectionproperties.pre.library import single_lift_core
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 = single_lift_core(
    d=2400,
    b=1800,
    t1=150,
    t2=200,
    a=1000,
    dia_bar=20,
    area_bar=310,
    spacing=150,
    cover=35,
    double=True,
    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()