mmgp.FE_utils¶
Functions¶
|
Compute Finite Element Projection Operators. |
|
Creates a networkx graph from the node connectivity on a Mesh through edges |
|
Initializes a networkx graph with nodes consistant with the number of nodes of a Mesh. |
Module Contents¶
- mmgp.FE_utils.compute_FE_projection_operators(origin_mesh: Muscat.Containers.Mesh.Mesh, target_mesh: Muscat.Containers.Mesh.Mesh, verbose: bool = False) Tuple[numpy.ndarray, numpy.ndarray][source]¶
Compute Finite Element Projection Operators.
- Parameters:
origin_mesh (Mesh) – The original mesh data.
target_mesh (Mesh) – The target mesh data.
verbose (bool, optional) – Whether to display verbose output. Defaults to False.
- Returns:
A tuple containing two projection operators (projOperator, invProjOperator).
- Return type:
tuple(np.ndarray, np.ndarray)
- mmgp.FE_utils.compute_node_to_node_graph(in_mesh: Muscat.Containers.Mesh.Mesh, dimensionality: int = None, dist_func: Callable = None) networkx.Graph[source]¶
Creates a networkx graph from the node connectivity on a Mesh through edges
- Parameters:
in_mesh (Mesh) – input mesh
dimensionality (int) – dimension of the elements considered to initalize the graph
dist_func (func) – function applied to the lengh of the edges of the mesh, and attached of the corresponding edge of the graph of the mesh
- Returns:
Element to element graph
- Return type:
networkx.Graph
- mmgp.FE_utils.initialize_graph_points_from_mesh_points(in_mesh: Muscat.Containers.Mesh.Mesh) networkx.Graph[source]¶
Initializes a networkx graph with nodes consistant with the number of nodes of a Mesh. This enables further edge addition compatible with the connectivity of the elements of the Mesh.
- Parameters:
in_mesh (Mesh) – input mesh
- Returns:
initialized graph
- Return type:
networkx.Graph