general_functions.py

Define general and common functions for edge finite element method (EFEM) of lowest order in tetrahedral meshes, namely, Nedele elements.

petgem.efem.general_functions.compute_items(elemsE, elemsF, bEdges, nodes)[source]

Compute the number of elements, number of nodes, number of edges and number of boundary edges of a tetrahedral mesh in the Edge Finite Element Method.

Parameters:
  • elemsE (ndarray) – element/edges connectivity.
  • elemsF (ndarray) – element/faces connectivity.
  • bEdges (ndarray) – boundary-edges connectivity.
  • nodes (ndarray) – nodal coordinates.
Returns:

None.

petgem.efem.general_functions.unitary_test()[source]

Unitary test for general.py script.