rectangular_hollow_section

sectionproperties.pre.library.steel_sections.rectangular_hollow_section(d: float, b: float, t: float, r_out: float, n_r: int, r_in: float | None = None, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w'), t_w: float | None = None) Geometry[source]

Constructs a rectangular hollow section (RHS).

Constructs a rectangular hollow section (RHS) centered at (b/2, d/2), with depth d, width b, thickness t, outer radius r_out and inner radius r_in, using n_r points to construct the inner and outer radii. Optionally, for an RHS with non-uniform thickness, assigning t_w sets the web thickness, with the flange thickness taken as t.

If the inner radius is not specified, it defaults to the difference between the outer radius and the thickness of the thickest part of the section, i.e. r_in = r_out - max(t, t_w). In this case, if the outer radius is less than the thickness of the RHS, the inner radius is set to zero.

Parameters:
  • d (float) – Depth of the RHS

  • b (float) – Width of the RHS

  • t (float) – Thickness of the RHS

  • r_out (float) – Outer radius of the RHS

  • n_r (int) – Number of points discretising the inner and outer radii

  • r_in (float | None) – Inner radius of the RHS. Defaults to None, which implies r_in = max(r_out - max(t, t_w), 0).

  • material (Material) – Material to associate with this geometry. Defaults to pre.DEFAULT_MATERIAL.

  • t_w (float | None) – Thickness of the RHS web. Defaults to None, which implies the web thickness is equal to the flange thickness, t_w = t.

Raises:

RuntimeError – If the geometry generation fails

Returns:

Rectangular hollow section geometry

Return type:

Geometry

Example

The following example creates an RHS with a depth of 100 mm, a width of 50 mm, a thickness of 6 mm and an outer radius of 9 mm, using 8 points to discretise the inner and outer radii:

from sectionproperties.pre.library import rectangular_hollow_section

rectangular_hollow_section(d=100, b=50, t=6, r_out=9, n_r=8).plot_geometry()

(Source code, png, hires.png, pdf)

../_images/sectionproperties-pre-library-steel_sections-rectangular_hollow_section-1.png

Rectangular hollow section geometry