Composite Sections#

This example demonstrates how concreteproperties can be used to analyse composite sections. We start by importing the necessary modules.

[1]:
import numpy as np
from sectionproperties.pre.library import (
    circular_section_by_area,
    concrete_circular_section,
    i_section,
    rectangular_section,
)

import concreteproperties.results as res
from concreteproperties import (
    Concrete,
    ConcreteLinearNoTension,
    ConcreteSection,
    RectangularStressBlock,
    Steel,
    SteelBar,
    SteelElasticPlastic,
    add_bar_circular_array,
    add_bar_rectangular_array,
)

Assign Materials#

The materials used in this example will be 50 MPa concrete with 500 MPa reinforcing steel and 300 MPa structural steel.

[2]:
concrete = Concrete(
    name="50 MPa Concrete",
    density=2.4e-6,
    stress_strain_profile=ConcreteLinearNoTension(
        elastic_modulus=34.8e3,
        ultimate_strain=0.003,
        compressive_strength=0.9 * 50,
    ),
    ultimate_stress_strain_profile=RectangularStressBlock(
        compressive_strength=50,
        alpha=0.775,
        gamma=0.845,
        ultimate_strain=0.003,
    ),
    flexural_tensile_strength=4.2,
    colour="lightgrey",
)

steel_300 = Steel(
    name="300 MPa Structural Steel",
    density=7.85e-6,
    stress_strain_profile=SteelElasticPlastic(
        yield_strength=300,
        elastic_modulus=200e3,
        fracture_strain=0.05,
    ),
    colour="tan",
)

steel_bar = SteelBar(
    name="500 MPa Steel Bar",
    density=7.85e-6,
    stress_strain_profile=SteelElasticPlastic(
        yield_strength=500,
        elastic_modulus=200e3,
        fracture_strain=0.05,
    ),
    colour="grey",
)

Square Column with Universal Beam#

First we will analyse a 500 mm x 500 mm square column with 12N20 bars and a central 310UC97 steel column.

[3]:
# create 500 square concrete
conc = rectangular_section(d=500, b=500, material=concrete)

# create 310UC97 and centre to column
uc = i_section(
    d=308,
    b=305,
    t_f=15.4,
    t_w=9.9,
    r=16.5,
    n_r=3,
    material=steel_300,
).align_center(align_to=conc)

# cut hole in concrete for UC then add UC
geom = conc - uc + uc

# add 12N20 reinforcing bars
geom = add_bar_rectangular_array(
    geometry=geom,
    area=310,
    material=steel_bar,
    n_x=4,
    x_s=132,
    n_y=4,
    y_s=132,
    anchor=(52, 52),
    exterior_only=True,
)

# create concrete section and plot
conc_sec = ConcreteSection(geom)
conc_sec.plot_section()
../_images/examples_composite_section_6_0.svg
[3]:
<Axes: title={'center': 'Reinforced Concrete Section'}>

Elastic Stress#

Calculate the elastic stress under a bending moment of 100 kN.m.

[4]:
el_stress = conc_sec.calculate_uncracked_stress(m_x=100e6)
el_stress.plot_stress()
../_images/examples_composite_section_8_0.svg
[4]:
<Axes: title={'center': 'Stress'}>

Cracked Stress#

Calculate the cracked stress under a bending moment of 500 kN.m.

[5]:
cr_res = conc_sec.calculate_cracked_properties()
cr_stress = conc_sec.calculate_cracked_stress(cracked_results=cr_res, m=500e6)
cr_stress.plot_stress()
../_images/examples_composite_section_10_0.svg
[5]:
<Axes: title={'center': 'Stress'}>

Moment Curvature Diagram#

Generate a moment-curvature diagram and plot the stress after yielding of the steel.

[6]:
mk_res = conc_sec.moment_curvature_analysis(kappa_inc=2.5e-6, progress_bar=False)
[7]:
mk_res.plot_results(fmt="kx-")
../_images/examples_composite_section_13_0.svg
[7]:
<Axes: title={'center': 'Moment-Curvature'}, xlabel='Curvature', ylabel='Moment'>
[8]:
serv_stress = conc_sec.calculate_service_stress(
    moment_curvature_results=mk_res, m=None, kappa=2e-5
)
serv_stress.plot_stress()
../_images/examples_composite_section_14_0.svg
[8]:
<Axes: title={'center': 'Stress'}>

Ultimate Results#

Finally the ultimate bending capacity about the x and y axes will be calculated, as well as generating an interaction diagram, a biaxial bending diagram and visualising the ultimate stresses.

[9]:
ult_res_x = conc_sec.ultimate_bending_capacity()
ult_res_y = conc_sec.ultimate_bending_capacity(theta=np.pi / 2)
ult_res_x.print_results()
ult_res_y.print_results()
            Ultimate Bending Results            
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Property                              Value ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ Bending Angle - theta          0.000000e+00 │
│ Neutral Axis Depth - d_n       1.364562e+02 │
│ Neutral Axis Parameter - k_u   3.045898e-01 │
│ Axial Force                   -1.985553e+01 │
│ Bending Capacity - m_x         9.529927e+08 │
│ Bending Capacity - m_y        -8.195639e-08 │
│ Bending Capacity - m_xy        9.529927e+08 │
└──────────────────────────────┴───────────────┘
            Ultimate Bending Results            
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Property                              Value ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ Bending Angle - theta          1.570796e+00 │
│ Neutral Axis Depth - d_n       1.718600e+02 │
│ Neutral Axis Parameter - k_u   3.836162e-01 │
│ Axial Force                    3.039426e+01 │
│ Bending Capacity - m_x         1.937151e-07 │
│ Bending Capacity - m_y        -8.635241e+08 │
│ Bending Capacity - m_xy        8.635241e+08 │
└──────────────────────────────┴───────────────┘
[10]:
mi_res = conc_sec.moment_interaction_diagram(progress_bar=False)
mi_res.plot_diagram()
../_images/examples_composite_section_17_0.svg
[10]:
<Axes: title={'center': 'Moment Interaction Diagram'}, xlabel='Bending Moment', ylabel='Axial Force'>
[11]:
bb_res = conc_sec.biaxial_bending_diagram(n_points=24, progress_bar=False)
bb_res.plot_diagram()
../_images/examples_composite_section_18_0.svg
[11]:
<Axes: title={'center': 'Biaxial Bending Diagram, $N = 0.000e+00$'}, xlabel='Bending Moment $M_x$', ylabel='Bending Moment $M_y$'>
[12]:
ult_stress_x = conc_sec.calculate_ultimate_stress(ult_res_x)
ult_stress_y = conc_sec.calculate_ultimate_stress(ult_res_y)
ult_stress_x.plot_stress()
ult_stress_y.plot_stress()
../_images/examples_composite_section_19_0.svg
../_images/examples_composite_section_19_1.svg
[12]:
<Axes: title={'center': 'Stress'}>

Concrete Filled Steel Column#

Next we will analyse a 323.9 mm x 12.7 mm steel (350 MPa) circular hollow section filled with concrete and 6N20 bars. The results will be compared to a similarly sized concrete column.

[13]:
steel_350 = Steel(
    name="350 MPa Structural Steel",
    density=7.85e-6,
    stress_strain_profile=SteelElasticPlastic(
        yield_strength=350,
        elastic_modulus=200e3,
        fracture_strain=0.05,
    ),
    colour="tan",
)
[14]:
# create outer diameter of steel column
steel_col = circular_section_by_area(
    area=np.pi * 323.9**2 / 4,
    n=24,
    material=steel_350,
)

# create inner diameter of steel column, concrete filled
inner_conc = circular_section_by_area(
    area=np.pi * (323.9 - 2 * 12.7) ** 2 / 4,
    n=32,
    material=concrete,
)

# create composite geometry
geom_comp = steel_col - inner_conc + inner_conc

# add reinforcement
r_bars = 323.9 / 2 - 12.7 - 30 - 10  # 30 mm cover from inside of steel

geom_comp = add_bar_circular_array(
    geometry=geom_comp,
    area=310,
    material=steel_bar,
    n_bar=6,
    r_array=r_bars,
)

# create concrete section and plot
conc_sec_comp = ConcreteSection(geom_comp)
conc_sec_comp.plot_section()

# create 350 diameter column for comparison
geom_conc = concrete_circular_section(
    d=350,
    area_conc=np.pi * 350**2 / 4,
    n_conc=24,
    dia_bar=20,
    area_bar=310,
    n_bar=6,
    cover=30 + 12,  # 30 mm cover + 12 mm tie
    conc_mat=concrete,
    steel_mat=steel_bar,
)

# create concrete section and plot
conc_sec_conc = ConcreteSection(geom_conc)
conc_sec_conc.plot_section()
../_images/examples_composite_section_22_0.svg
../_images/examples_composite_section_22_1.svg
[14]:
<Axes: title={'center': 'Reinforced Concrete Section'}>

Compare Elastic Stresses#

Compare the elastic stresses under a bending moment of 10 kN.m (uncracked).

[15]:
el_stress_comp = conc_sec_comp.calculate_uncracked_stress(m_x=10e6)
el_stress_conc = conc_sec_conc.calculate_uncracked_stress(m_x=10e6)
el_stress_comp.plot_stress()
el_stress_conc.plot_stress()
../_images/examples_composite_section_24_0.svg
../_images/examples_composite_section_24_1.svg
[15]:
<Axes: title={'center': 'Stress'}>

Compare the elastic stresses under a bending moment of 50 kN.m (cracked).

[16]:
cr_res_comp = conc_sec_comp.calculate_cracked_properties()
cr_res_conc = conc_sec_conc.calculate_cracked_properties()

cr_stress_comp = conc_sec_comp.calculate_cracked_stress(
    cracked_results=cr_res_comp, m=50e6
)
cr_stress_conc = conc_sec_conc.calculate_cracked_stress(
    cracked_results=cr_res_conc, m=50e6
)
cr_stress_comp.plot_stress()
cr_stress_conc.plot_stress()
../_images/examples_composite_section_26_0.svg
../_images/examples_composite_section_26_1.svg
[16]:
<Axes: title={'center': 'Stress'}>

Compare Moment Curvature Response#

Calculate the moment curvature response of each column and compare the results.

[17]:
mk_res_comp = conc_sec_comp.moment_curvature_analysis(
    kappa_inc=2.5e-6, progress_bar=False
)
mk_res_conc = conc_sec_conc.moment_curvature_analysis(
    kappa_inc=2.5e-6, progress_bar=False
)
[18]:
res.MomentCurvatureResults.plot_multiple_results(
    moment_curvature_results=[mk_res_comp, mk_res_conc],
    labels=["Composite", "Concrete"],
    fmt="x-",
)
../_images/examples_composite_section_29_0.svg
[18]:
<Axes: title={'center': 'Moment-Curvature'}, xlabel='Curvature', ylabel='Moment'>

Although the composite section is significantly stiffer and stronger, the regular concrete section exhibits a more ductile response due to the reduced amount of steel reinforcement.

Compare Moment Interaction Results#

Moment interaction diagrams can be produced for each section and compared.

[19]:
mi_res_comp = conc_sec_comp.moment_interaction_diagram(progress_bar=False)
mi_res_conc = conc_sec_conc.moment_interaction_diagram(progress_bar=False)
res.MomentInteractionResults.plot_multiple_diagrams(
    moment_interaction_results=[mi_res_comp, mi_res_conc],
    labels=["Composite", "Concrete"],
    fmt="x-",
)
../_images/examples_composite_section_32_0.svg
[19]:
<Axes: title={'center': 'Moment Interaction Diagram'}, xlabel='Bending Moment', ylabel='Axial Force'>

Composite Steel Beam#

Finally we will analyse a steel composite beam, consisting of a 530UB92 universal beam compositely attached to a 1500 mm wide x 120 mm deep concrete slab. We start by defining the concrete material (32 MPa) for the slab.

[20]:
concrete = Concrete(
    name="32 MPa Concrete",
    density=2.4e-6,
    stress_strain_profile=ConcreteLinearNoTension(
        elastic_modulus=30.1e3,
        ultimate_strain=0.003,
        compressive_strength=0.9 * 32,
    ),
    ultimate_stress_strain_profile=RectangularStressBlock(
        compressive_strength=32,
        alpha=0.802,
        gamma=0.89,
        ultimate_strain=0.003,
    ),
    flexural_tensile_strength=3.4,
    colour="lightgrey",
)

Next we construct the composite geometry. Note that we set geometric_centroid_override=True to ensure that moments are calculated about the geometric centroid rather than the gross centroid. In previous examples the geometry was symmetric so setting this made no difference to the results.

[21]:
# create 530UB92
ub = i_section(
    d=533,
    b=209,
    t_f=15.6,
    t_w=10.2,
    r=14,
    n_r=3,
    material=steel_300,
)

# create concrete slab, centre on top of UB
conc_slab = (
    rectangular_section(
        d=120,
        b=1200,
        material=concrete,
    )
    .align_center(align_to=ub)
    .align_to(other=ub, on="top")
)

# as there is no overlapping geometry, we can simply add the two sections together
geom = ub + conc_slab

# create concrete section and plot
conc_sec = ConcreteSection(geom, geometric_centroid_override=True)
conc_sec.plot_section()
../_images/examples_composite_section_36_0.svg
[21]:
<Axes: title={'center': 'Reinforced Concrete Section'}>

We can compare the gross and geometric centroids. The geometric centroid takes into account the difference elastic moduli of each material, whereas the gross centroid does not.

[22]:
print(
    f"cx_geom = {conc_sec.moment_centroid[0]:.2f}; cy_geom = {conc_sec.moment_centroid[1]:.2f}"
)
print(
    f"cx_gross = {conc_sec.gross_properties.cx_gross:.2f}; cy_gross = {conc_sec.gross_properties.cy_gross:.2f}"
)
cx_geom = 104.50; cy_geom = 477.46
cx_gross = 104.50; cy_gross = 568.14

Moment Curvature Response#

Calculate the moment curvature response of the composite section. The section should show a gradual yielding response as plasticity develops over the depth of the steel beam.

[23]:
mk_res = conc_sec.moment_curvature_analysis(kappa_inc=1e-6, progress_bar=False)
[24]:
mk_res.plot_results()
../_images/examples_composite_section_41_0.svg
[24]:
<Axes: title={'center': 'Moment-Curvature'}, xlabel='Curvature', ylabel='Moment'>

We can examine the stresses at various point within the moment-curvature response.

[25]:
el_stress = conc_sec.calculate_service_stress(moment_curvature_results=mk_res, m=500e6)
yield_stress = conc_sec.calculate_service_stress(
    moment_curvature_results=mk_res, m=900e6
)
ult_stress = conc_sec.calculate_service_stress(
    moment_curvature_results=mk_res, m=1150e6
)
[26]:
el_stress.plot_stress()
yield_stress.plot_stress()
ult_stress.plot_stress()
../_images/examples_composite_section_44_0.svg
../_images/examples_composite_section_44_1.svg
../_images/examples_composite_section_44_2.svg
[26]:
<Axes: title={'center': 'Stress'}>

Ultimate Bending Capacity#

The ultimate bending capacity can be calculated and compared to the result obtained from the moment curvature analysis.

[27]:
ult_res = conc_sec.ultimate_bending_capacity(theta=np.pi / 2)
ult_res.print_results()
            Ultimate Bending Results            
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Property                              Value ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ Bending Angle - theta          1.570796e+00 │
│ Neutral Axis Depth - d_n       5.027246e+02 │
│ Neutral Axis Parameter - k_u   0.000000e+00 │
│ Axial Force                   -1.471757e+01 │
│ Bending Capacity - m_x         4.498958e+08 │
│ Bending Capacity - m_y        -5.469023e+08 │
│ Bending Capacity - m_xy        7.081726e+08 │
└──────────────────────────────┴───────────────┘

The above results match closely with the moment curvature results, as will as confirming that the neutral axis is within the concrete slab. Note that k_u is not calculated for only meshed sections, it is only computed for lumped reinforcement.