enrichedfem.geometry package

Submodules

enrichedfem.geometry.geometry_1D module

class enrichedfem.geometry.geometry_1D.Line(a, b)[source]

Bases: object

Represents a 1D line segment.

This class defines a 1D line segment using its endpoints ‘a’ and ‘b’. The line segment is stored as a list containing a single tuple (a, b).

Parameters:
  • a (float) – The left endpoint of the line segment.

  • b (float) – The right endpoint of the line segment.

class enrichedfem.geometry.geometry_1D.Line1[source]

Bases: Line

Represents a 1D line segment.

This class defines the 1D line segment [0,1].

enrichedfem.geometry.geometry_2D module

class enrichedfem.geometry.geometry_2D.Circle(a, b, r)[source]

Bases: object

Represents a circle.

This class defines a circle using its center (a, b) and radius r. It also calculates a bounding box for the circle and defines a starting default mesh size H_start.

Parameters:
  • a (float) – The x-coordinate of the circle’s center.

  • b (float) – The y-coordinate of the circle’s center.

  • r (float) – The radius of the circle.

class enrichedfem.geometry.geometry_2D.Circle2[source]

Bases: Circle

Represents a circle.

This class defines the circle with center (0.5, 0.5) and radius 1.

class enrichedfem.geometry.geometry_2D.Donut(a, b, bigr, smallr)[source]

Bases: object

Represents a donut (annulus) shape.

This class defines a donut shape using two circles: a larger outer circle and a smaller inner circle (the hole). It also calculates a bounding box for the donut and defines a starting default mesh size H_start.

Parameters:
  • a (float) – x-coordinate of the center of both circles.

  • b (float) – y-coordinate of the center of both circles.

  • bigr (float) – Radius of the outer circle.

  • smallr (float) – Radius of the inner circle (hole).

class enrichedfem.geometry.geometry_2D.Donut1[source]

Bases: Donut

Represents a donut (annulus) shape.

This class defines the donut shape of center (0,0) using two circles: a larger outer circle of radius 1 and a smaller inner circle of radius 0.5 (the hole). It also defines a bounding box for the circle : [-1,1]x[-1,1].

class enrichedfem.geometry.geometry_2D.Donut2[source]

Bases: Donut

Represents a donut (annulus) shape.

This class defines the donut shape of center (0,0) using two circles: a larger outer circle of radius 1 and a smaller inner circle of radius 0.25 (the hole). It also defines a bounding box for the circle : [-1,1]x[-1,1].

class enrichedfem.geometry.geometry_2D.Square(a, b, a2, b2)[source]

Bases: object

Represents a square.

This class defines a square [a,b]x[a2,b2] using its endpoints ‘a’, ‘b’, ‘a2’, and ‘b2’.

Parameters:
  • a (float) – The left endpoint of the square.

  • b (float) – The right endpoint of the square.

  • a2 (float) – The lower endpoint of the square.

  • b2 (float) – The upper endpoint of the square.

class enrichedfem.geometry.geometry_2D.Square1[source]

Bases: Square

Represents a square.

This class defines the square [-0.5PI,0.5PI]x[-0.5PI,0.5PI].

class enrichedfem.geometry.geometry_2D.UnitCircle[source]

Bases: Circle

Represents a circle.

This class defines the circle with center (0, 0) and radius 1. It also defines a bounding box for the circle : [-1,1]x[-1,1].

class enrichedfem.geometry.geometry_2D.UnitSquare[source]

Bases: Square

Represents a square.

This class defines the square [0,1]x[0,1].

Module contents