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 diameterd_x
and vertical diameterd_y
, usingn
points to construct the ellipse.- Parameters:
- Returns:
Elliptical section geometry
- Return type:
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
)