triangular_section#

sectionproperties.pre.library.primitive_sections.triangular_section(b: float, h: float, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry[source]#

Constructs a triangular section.

Constructs a right angled triangle with points (0, 0), (b, 0), (0, h).

Parameters:
  • b (float) – Base length of triangle

  • h (float) – Height of triangle

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

Returns:

Triangular section geometry

Return type:

Geometry

Example

The following example creates a triangular cross-section with a base width of 10 mm and height of 10 mm:

from sectionproperties.pre.library import triangular_section

triangular_section(b=10, h=10).plot_geometry()

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

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

Triangular section geometry#