grains.med.get_nodes

grains.med.get_nodes(mesh)[source]

Obtains the nodes and the node groups of a mesh.

Parameters

mesh (MEDFileUMesh) – Unstructured mesh.

Returns

  • nodes (ndarray) – 2D numpy array with 2 columns, each row corresponding to a node, and the two columns giving the Cartesian coordinates of the nodes.

  • node_groups (dict) – The keys in the dictionary are the node group names, while the values are list of integers, giving the nodes that belong to the particular group.