magnet.mesh.Boundary#
- class magnet.mesh.Boundary(faces: list, tags: ndarray)#
Bases:
object
Mesh boundary structure.
- Parameters:
Faces (list of list of int) – Faces (or edges, in 2D) that form the boundary, each deascribed by the Ids of its vertices.
Tags (np.ndarray of int) – Boundary elements tags.
- Variables:
Faces (list of list of int) – Faces (or edges, in 2D) that form the boundary, each deascribed by the Ids of its vertices.
Tags (np.ndarray of int) – Boundary elements tags. May be used to distinguish different parts of the boundary (e.g. for imposing boundary conditions).
Constructor
- __init__(faces: list, tags: ndarray)#
Methods
__init__
(faces, tags)- __init__(faces: list, tags: ndarray)#