6. Biaxial Bending Diagram#
This example demonstrates how to generate biaxial bending diagrams. We start by importing the necessary modules.
[1]:
import numpy as np
from concreteproperties.material import Concrete, SteelBar
from concreteproperties.stress_strain_profile import (
ConcreteLinear,
RectangularStressBlock,
SteelElasticPlastic,
)
from sectionproperties.pre.library.primitive_sections import rectangular_section
from concreteproperties.pre import add_bar_rectangular_array
from concreteproperties.concrete_section import ConcreteSection
from concreteproperties.results import BiaxialBendingResults
6.1. Assign Materials#
The materials used in this example will be 40 MPa concrete and 500 MPa steel, specified in accordance with AS 3600:2018.
[2]:
concrete = Concrete(
name="40 MPa Concrete",
density=2.4e-6,
stress_strain_profile=ConcreteLinear(elastic_modulus=32.8e3),
ultimate_stress_strain_profile=RectangularStressBlock(
compressive_strength=40,
alpha=0.79,
gamma=0.87,
ultimate_strain=0.003,
),
flexural_tensile_strength=3.8,
colour="lightgrey",
)
steel = SteelBar(
name="500 MPa Steel",
density=7.85e-6,
stress_strain_profile=SteelElasticPlastic(
yield_strength=500,
elastic_modulus=200e3,
fracture_strain=0.05,
),
colour="grey",
)
6.2. Create Geometry and Concrete Section#
In this example we’ll use the geometry from the Moment Curvature Analysis example, without the circular void.
[3]:
col = rectangular_section(d=350, b=600, material=concrete)
# add bars to column
geom = add_bar_rectangular_array(
geometry=col,
area=450,
material=steel,
n_x=6,
x_s=492 / 5,
n_y=3,
y_s=121,
anchor=(54, 54),
exterior_only=True,
)
conc_sec = ConcreteSection(geom)
conc_sec.plot_section()
[3]:
<Axes: title={'center': 'Reinforced Concrete Section'}>
6.3. Biaxial Bending Diagram#
We can create a biaxial bending diagram by calling the biaxial_bending_diagram()
method. We first create a biaxial bending diagram for pure bending, i.e. no axial force.
[4]:
bb_res = conc_sec.biaxial_bending_diagram(progress_bar=False)
We can plot the biaxial bending diagram by calling the plot_diagram()
method.
[5]:
bb_res.plot_diagram()
[5]:
<Axes: title={'center': 'Biaxial Bending Diagram, $N = 0.000e+00$'}, xlabel='Bending Moment $M_x$', ylabel='Bending Moment $M_y$'>
Say we know the column has an axial force of 1000 kN, we can generate a biaxial bending diagram for this case by passing this to the parameter n
.
[6]:
bb_res = conc_sec.biaxial_bending_diagram(n=1000e3, progress_bar=False)
bb_res.plot_diagram()
[6]:
<Axes: title={'center': 'Biaxial Bending Diagram, $N = 1.000e+06$'}, xlabel='Bending Moment $M_x$', ylabel='Bending Moment $M_y$'>
6.4. Plotting Multiple Diagrams#
We can also plot multiple diagrams at once by using the BiaxialBendingResults.plot_multiple_diagrams()
class method. Here we will generate biaxial bending diagrams with varying axial load from pure bending up to the decompression point. We start by examining the moment interaction diagrams to find the decompression point.
[7]:
mi_x = conc_sec.moment_interaction_diagram(progress_bar=False)
mi_y = conc_sec.moment_interaction_diagram(theta=np.pi / 2, progress_bar=False)
mi_x.plot_diagram()
mi_y.plot_diagram(moment="m_y")
print(f"Decompression point for M_x is N = {mi_x.results[1].n / 1e3:.2f} kN")
print(f"Decompression point for M_y is N = {mi_y.results[1].n / 1e3:.2f} kN")
Decompression point for M_x is N = 7452.19 kN
Decompression point for M_y is N = 7444.80 kN
Let’s generate 11 biaxial bending curves from pure bending (\(N=0\) kN) to close to the decompression point (\(N=7400\) kN).
[8]:
n_list = np.linspace(0, 7400e3, 11)
biaxial_results = []
for n in n_list:
biaxial_results.append(conc_sec.biaxial_bending_diagram(n=n, progress_bar=False))
Now that we have the results, we can plot all the diagrams on a 3D plot!
[9]:
BiaxialBendingResults.plot_multiple_diagrams_3d(biaxial_results)
[9]:
<Axes3D: xlabel='Bending Moment $M_x$', ylabel='Bending Moment $M_y$', zlabel='Axial Force $N$'>
We can also generate a 2D plot of selected biaxial bending results.
[10]:
BiaxialBendingResults.plot_multiple_diagrams_2d(biaxial_results[::2], fmt="-")
[10]:
<Axes: title={'center': 'Biaxial Bending Diagram'}, xlabel='Bending Moment $M_x$', ylabel='Bending Moment $M_y$'>
We can specify custom labels for the above plot.
[11]:
labels = []
for bb_res in biaxial_results[::2]:
labels.append(f"N = {bb_res.n / 1e3:.0f} kN")
ax = BiaxialBendingResults.plot_multiple_diagrams_2d(
biaxial_results[::2], fmt="-", labels=labels, render=False
)
ax.set_xlabel("Bending Moment $M_x$ [kN.m]")
ax.set_ylabel("Bending Moment $M_y$ [kN.m]")
import matplotlib.pyplot as plt
plt.show()