sfepy.fem.extmods.mesh module¶
Low level mesh functions employing element connectivity.
-
sfepy.fem.extmods.mesh.create_mesh_graph()¶ Create sparse (CSR) graph corresponding to given row and column connectivities.
Parameters: n_row : int
The number of row connectivity nodes.
n_col : int
The number of column connectivity nodes.
n_gr : int
The number of element groups.
rconns : list of arrays
The list of length n_gr of row connectivities.
cconns : list of arrays
The list of length n_gr of column connectivities.
Returns: nnz : int
The number of graph nonzeros.
prow : array
The array of CSR row pointers.
icol : array
The array of CSR column indices.
-
sfepy.fem.extmods.mesh.graph_components()¶ Determine connected compoments of a compressed sparse graph.
Returns: n_comp : int
The number of components.
flag : array
The flag marking for each node its component.
-
sfepy.fem.extmods.mesh.orient_elements()¶ Swap element nodes so that its volume is positive.

