Muscat.Experimental.Containers.PartitionedMesh module¶
- class PartitionedMesh[source]¶
Bases:
object
Class PartitionedMesh, Class to store a partitioned mesh we use two field to store the global numbering of the elements and the nodes. theses field are stored in the every mesh .nodesFields[“GlobalIDs”] .elemFields[“GlobalIDs”]. np.union(GlobalIds)[0] = 0 , np.union(GlobalIds)[-1] = len(np.union(GlobalIds))-1
- AddMesh(mesh: Mesh, nodesGlobalIDs: ndarray | None = None, elementsGlobalIDs: ndarray | None = None) None [source]¶
Add mesh to the PartitionedMesh extra data is needed. “GlobalIDs” on the nodes and “GlobalIDs” on the elements. Theses int fields can be provided inside the mesh (nodeFields, elemFields) or as extra arguments. the extra fields will be pushed to the mesh
- Parameters:
mesh (Mesh) – the mesh
nodesGlobalIDs (Optional[np.ndarray], optional) – an numpy array of ints over the nodes, by default None
elementsGlobalIDs (Optional[np.ndarray], optional) – an numpy array of ints over the elements, by default None
- Raises:
RuntimeError – if no nodes GlobalIDs are provided
RuntimeError – if no elements GlobalIDs are provided