magnet.cell.Cell#
- class magnet.cell.Cell(nodes=None, mesh_vertices=None, faces=None)#
Bases:
ABC
Single cell of a mesh.
- Parameters:
nodes (list of int) – Global indices of the cell vertices.
mesh_vertices (np.ndarray of float) – Coordiantes of all vertices of the mesh.
faces (list of list of int) – Faces (or edges, in 2D) of the cell, each deascribed by the global Ids of its vertices.
- Variables:
Nodes (list of int) – Global Indices of the cell vertices.
MeshVertices (np.ndarray of float) – Coordiantes of all vertices of the mesh.
Faces (list of list of int) – Faces (or edges, in 2D) of the cell, each deascribed by the global Ids of its vertices.
Vertices (np.ndarray of float) – Coordinates of the cell vertices (ordered according to local numbering).
Constructor
- __init__(nodes=None, mesh_vertices=None, faces=None) None #
Methods
__init__
([nodes, mesh_vertices, faces])inscribed_diameter
([c])is_inside
(p)- __init__(nodes=None, mesh_vertices=None, faces=None) None #
- abstract inscribed_diameter(c=None) float #
- abstract is_inside(p) bool #
- abstract volume_center()#