rectangle#
- planestress.pre.library.rectangle(d: float, b: float, 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.
material (Material) –
Materialobject 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
toldigits. Defaults to12.
- Returns:
Rectangular
Geometryobject.- Return type:
Example
TODO.