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 depth d and width b.

Parameters:
  • d (float) – Depth (y) of the rectangle

  • b (float) – Width (x) of the rectangle

  • material (Material) – Material to associate with this geometry

Returns:

Rectangular section geometry

Return type:

Geometry

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)

../_images/sectionproperties-pre-library-primitive_sections-rectangular_section-1.png

Rectangular section geometry#