nastran_tube2#
- sectionproperties.pre.library.nastran_sections.nastran_tube2(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 TUBE2 section.
Constructs a circular TUBE2 section with the center at the origin
(0, 0)
, with two parameters defining dimensions.- Parameters:
- Returns:
TUBE2 section geometry
- Return type:
Example
The following example creates a circular TUBE2 cross-section with an outer radius of 3.0 and a wall thickness of 0.5:
from sectionproperties.pre.library import nastran_tube2 nastran_tube2(dim_1=3.0, dim_2=0.5, n=37).plot_geometry()
(
Source code
,png
,hires.png
,pdf
)