from sectionproperties.pre import Material
from sectionproperties.pre.library import double_lift_core_b
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 = double_lift_core_b(
    d=6000,
    b=3000,
    t1=250,
    t2=220,
    t3=180,
    a=1500,
    dia_bar=24,
    area_bar=450,
    spacing=300,
    cover=50,
    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()