elliptical_section#

sectionproperties.pre.library.primitive_sections.elliptical_section(d_x: float, d_y: float, n: int, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry[source]#

Constructs an elliptical section.

Constructs a solid ellipse centered at the origin (0, 0) with horizontal diameter d_x and vertical diameter d_y, using n points to construct the ellipse.

Parameters:
  • d_x (float) – Diameter of the ellipse in the x-dimension

  • d_y (float) – Diameter of the ellipse in the y-dimension

  • n (int) – Number of points discretising the ellipse

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

Returns:

Elliptical section geometry

Return type:

Geometry

Example

The following example creates an elliptical cross-section with a horizontal diameter of 50 mm and a vertical diameter of 25 mm, with 40 points:

from sectionproperties.pre.library import elliptical_section

elliptical_section(d_x=50, d_y=25, n=40).plot_geometry()

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

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

Elliptical section geometry#