rectangle#
- planestress.pre.library.rectangle(d: float, b: float, n_x: int = 1, n_y: int = 1, material: Material = Material(name='default', elastic_modulus=1.0, poissons_ratio=0.0, thickness=1.0, density=1.0, color='w'), tol: int = 12) Geometry [source]#
Creates a rectangular geometry with the bottom-left corner at the origin.
- Parameters:
d (float) – Depth of the rectangle.
b (float) – Width of the rectangle.
n_x (int) – Number of subdivisions in the
x
direction. Defaults to1
.n_y (int) – Number of subdivisions in the
y
direction. Defaults to1
.material (Material) –
Material
object to apply to the rectangle. Defaults toDEFAULT_MATERIAL
, i.e. a material with unit properties and a Poisson’s ratio of zero.tol (int) – The points in the geometry get rounded to
tol
digits. Defaults to12
.
- Returns:
Rectangular
Geometry
object.- Return type:
Example
TODO.