rectangular_section#
- sectionproperties.pre.library.primitive_sections.rectangular_section(d: float, b: float, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry [source]#
Constructs a rectangular section.
Constructs a rectangular section with the bottom left corner at the origin
(0, 0)
, with depthd
and widthb
.- Parameters:
- Returns:
Rectangular section geometry
- Return type:
Example
The following example creates a rectangular cross-section with a depth of 100 mm and width of 50 mm:
from sectionproperties.pre.library import rectangular_section rectangular_section(d=100, b=50).plot_geometry()
(
Source code
,png
,hires.png
,pdf
)