magnet.generate.holed_square#
- magnet.generate.holed_square(output_path: str, lc: float = 0.15, r: float = 0.25)#
Create a square mesh with a circular hole.
Creates a triangular mesh of the unit square with a circular hole of radius r in its center (r must be less than 1).
- Parameters:
output_path (str) – File path where the mesh will be saved.
lc (float, optional) – Triangle size parameter. Default is 0.15.
r (float, optional) – Radius of the circular hole; default is 0.25.
- Return type:
None