nastran_bar#
- sectionproperties.pre.library.nastran_sections.nastran_bar(dim_1: float, dim_2: float, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry [source]#
Constructs a BAR section.
Constructs a BAR section with the center at the origin
(0, 0)
, with two parameters defining dimensions.- Parameters:
- Returns:
BAR section geometry
- Return type:
Example
The following example creates a BAR cross-section with a depth of 1.5 and width of 2.0:
from sectionproperties.pre.library import nastran_bar nastran_bar(dim_1=2.0, dim_2=1.5).plot_geometry()
(
Source code
,png
,hires.png
,pdf
)