pyxfem.core.mesh_simplex_one_level module
Created on Mon Nov 20 16:26:58 2023
@author: nchevaug
- class pyxfem.core.mesh_simplex_one_level.DMesh(xy, tris)[source]
Bases:
objectA class to represent dynamic simplexes mesh in 2D
- insert_edge(evertices)[source]
add edge linking the 2 vertices in evertices and retuen the handle to the new edge
- insert_face(fedges)[source]
add face linking the 3 edges in fedges and retuen the handle to the new face
- class pyxfem.core.mesh_simplex_one_level.SMesh(xy: NDArray[float64], tris: Annotated[NDArray[int64], 'Shape(N, 3)'])[source]
Bases:
objectClass to store and interogate simplexe meshes of Triangles
- e2t(save=True) CompressedDataIndex[source]
return e to triangle upward adjacencies
- e2v_coord(eids=None, *, save=True)[source]
return a table containing for each edge the coordinates of it 2 nodes ret[i, j, k] is coordinate k of node j in [0,1] of edge i
- geo_dim()[source]
return the geometric dimension of the mesh. For Now it just check the number of columns of the vertices array self.xy, which can only be 2 for 2 dim mesh
- get_edgegroupe(groupename)[source]
For groupe name, find and return the edges id (The global id of edge, not the input order …)
and if the “swap” status of each edge in the form of a pair of 2 arrays
- intern_edges(*, save=True)[source]
return a table containing the internal edge of the mesh: edge that connect ot at least 2 trian gles
- set_edgegroupe_from_edge2vertex_id(groupename, e2v, warn_existing=True)[source]
set a group of edges in the mesh
- set_trigroupe_from_tri_id(groupename, tids, warn_existing=True, check=True)[source]
set a group of tri in the mesh
- t2v_coord(fids=None, *, save=True)[source]
return a table containing for each triangle the coordinates of its 3 Nodes ret[i, j, k] is coordinate k of node j in [0,1,2] of element i
- update(xy, t2v)[source]
Modify the mesh by changing the node list and the triangle list Old vertices id in groupe2edges_v are supposed to stay same old triangle id in groupe2tris are supposed to stay same
- v2e(save=True) CompressedDataIndex[source]
return vertex to edge adjacencies
- v2t(save=True) CompressedDataIndex[source]
return vertex to triangle adjacencies