nastran_box1¶
- sectionproperties.pre.library.nastran_sections.nastran_box1(dim_1: float, dim_2: float, dim_3: float, dim_4: float, dim_5: float, dim_6: float, material: Material = Material(name='default', elastic_modulus=1, poissons_ratio=0, yield_strength=1, density=1, color='w')) Geometry[source]¶
Constructs a BOX1 section.
Constructs a BOX1 section with the center at the origin
(0, 0), with six parameters defining dimensions.- Parameters:
dim_1 (float) – Width (x) of box
dim_2 (float) – Depth (y) of box
dim_3 (float) – Thickness of top wall
dim_4 (float) – Thickness of bottom wall
dim_5 (float) – Thickness of left wall
dim_6 (float) – Thickness of right wall
material (Material) – Material to associate with this geometry. Defaults to
pre.DEFAULT_MATERIAL.
- Raises:
RuntimeError – If the geometry generation fails
- Returns:
BOX1 section geometry
- Return type:
Example
The following example creates a BOX1 cross-section with a depth of 3.0 and width of 4.0:
from sectionproperties.pre.library import nastran_box1 nastran_box1( dim_1=4.0, dim_2=3.0, dim_3=0.375, dim_4=0.5, dim_5=0.25, dim_6=0.75 ).plot_geometry()
(
Source code,png,hires.png,pdf)
BOX1 section geometry¶