hybridmesh#

This module defines the HybridMesh class, a Geometry subclass that supports hybrid discrete geometrical models. A HybridMesh has a single shared set of coordinates and a collection of element connectivities, each represented by an Elems object with its own element type.

It provides functionality to create, manipulate, and analyse hybrid meshes containing mixed element types, such as lines, triangles, quads, and volumes.

Constructor#

HybridMesh

A HybridMesh is a discrete geometric model with a single set of coordinates and multiple element connectivity blocks, each potentially of a different type.

Important

The HybridMesh class inherits from Geometry, giving it access to all attributes and methods defined there. In addition, the HybridMesh class provides its own methods, which are listed below.

Mesh information#

These methods return information about a HybridMesh object.

HybridMesh.eltypes

Return the element type of each block in the HybridMesh.

HybridMesh.n_coords

Return the number of nodes in the Mesh.

HybridMesh.n_nodes

Return the number of nodes in the Mesh.

HybridMesh.n_points

Return the number of nodes in the Mesh.

HybridMesh.n_elems

Return the total number of elements across all connectivity blocks.

HybridMesh.report

Create a report on the HybridMesh shape.

HybridMesh.level

Return the level (geometric dimension) of the elements in the HybridMesh.

Other#

HybridMesh.from_meshes

Create a HybridMesh from a list of Mesh objects.

HybridMesh.to_meshes

Convert the HybridMesh into a list of Mesh objects, one per block.

HybridMesh.border_mesh

Return a HybridMesh representing the border.