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:
  • dim_1 (float) – Outer radius of the circular tube section

  • dim_2 (float) – Inner radius of the circular tube section

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

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

Returns:

Circular tube section geometry

Return type:

Geometry

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)

../_images/sectionproperties-pre-library-nastran_sections-nastran_tube-1.png

Circular tube section geometry#