Download examples
You can download the examples in your chosen format using the buttons on the right.
Create a Circular Reinforced Cross-section¶
This example demonstrates how to create a circular reinforced concrete cross-section step by step using the blueprints library.
We'll start by defining materials, create the basic cross-section geometry, add reinforcement bars, include stirrups, and finally visualize our complete design.
Let's begin!
Import Required Libraries¶
First, let's import the necessary modules from the blueprints library:
"""Reinforced concrete cross-section example."""
from blueprints.materials.concrete import ConcreteMaterial, ConcreteStrengthClass
from blueprints.materials.reinforcement_steel import ReinforcementSteelMaterial, ReinforcementSteelQuality
from blueprints.structural_sections.concrete.reinforced_concrete_sections.circular import CircularReinforcedCrossSection
Define Materials¶
Next, we'll define the concrete and reinforcement steel materials:
# Define a concrete material
concrete = ConcreteMaterial(concrete_class=ConcreteStrengthClass.C35_45)
# Define a reinforcement steel material
steel = ReinforcementSteelMaterial(steel_quality=ReinforcementSteelQuality.B500B)
Create the Cross-section¶
Now we'll create the circular reinforced cross-section with the specified dimensions:
# Define a circular reinforced cross-section
cs = CircularReinforcedCrossSection(
diameter=400,
cover=35,
concrete_material=concrete,
)
Add Longitudinal Reinforcement¶
Let's add longitudinal reinforcement bars to the cross-section:
# Add longitudinal reinforcement to the cross-section
cs.add_longitudinal_reinforcement_by_quantity(
n=5,
diameter=25,
material=steel,
)
# Add additional longitudinal reinforcement to the cross-section
cs.add_longitudinal_reinforcement_by_quantity(
n=5,
diameter=16,
material=steel,
start_angle=45,
)
Add Stirrups¶
Now we'll add stirrups around the perimeter of the cross-section:
# Add stirrups to the cross-section
cs.add_stirrup_along_perimeter(
diameter=10,
distance=150,
material=steel,
)
Stirrup (id=1)|⌀10/B500B
Review What We've Built¶
At this point, we have:
- ✅ A 400mm diameter circular concrete cross-section with 35mm cover
- ✅ 5 longitudinal reinforcement bars (25mm diameter)
- ✅ 5 additional reinforcement bars (16mm diameter, offset by 45°)
- ✅ Stirrups (10mm diameter, spaced at 150mm intervals)
Now let's see our complete reinforced concrete cross-section!
Visualize Our Cross-section¶
Finally, let's plot the cross-section to see our complete design:
# Plot the cross-section
import matplotlib.pyplot as plt
fig = cs.plot(show=False) # Create the plot but don't show it yet
plt.show()
Summary¶
This example demonstrated how to:
- Import the necessary modules from the blueprints library
- Define concrete and steel materials
- Create a circular reinforced concrete cross-section
- Add longitudinal reinforcement bars
- Add stirrups around the perimeter
- Visualize the final cross-section
The resulting cross-section includes both primary and secondary reinforcement, providing a comprehensive example of how to work with circular reinforced concrete sections in the blueprints library.