nastran_tube#
- sectionproperties.pre.library.nastran_sections.nastran_tube(dim_1: float, dim_2: float, n: int, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry [source]#
Constructs a circular tube section.
Constructs a circular tube section with the center at the origin
(0, 0)
, with two parameters defining dimensions.- Parameters:
- Returns:
Circular tube section geometry
- Return type:
Example
The following example creates a circular tube cross-section with an outer radius of 3.0 and an inner radius of 2.5:
from sectionproperties.pre.library import nastran_tube nastran_tube(dim_1=3.0, dim_2=2.5, n=37).plot_geometry()
(
Source code
,png
,hires.png
,pdf
)