circle#

planestress.pre.library.circle(r: float, n: int, 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 circular geometry with the center at the origin.

Parameters:
  • r (float) – Radius of the circle.

  • n (int) – Number of points to discretise the circle.

  • material (Material) – `Material object to apply to the circle. Defaults to DEFAULT_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 to 12.

Returns:

Circular Geometry object.

Return type:

Geometry

Example

TODO.