Discretize Meshes (discretize)#

The discretize package contains four types of meshes for soliving partial differential equations using the finite volume method.

Mesh Classes#

TensorMesh(h[, origin])

Tensor mesh class.

CylindricalMesh(h[, origin, cartesian_origin])

Class for cylindrical meshes.

CurvilinearMesh(node_list, **kwargs)

Curvilinear mesh class.

TreeMesh([h, origin, diagonal_balance])

Class for QuadTree (2D) and OcTree (3D) meshes.

SimplexMesh(nodes, simplices)

Class for traingular (2D) and tetrahedral (3D) meshes.

Mesh Cells#

The TensorCell and TreeCell classes were designed specifically to define the cells within tensor and tree meshes, respectively. Instances of TreeCell and TensorCell are not meant to be created on their own. However, they can be returned directly by indexing a particular cell within a tensor or tree mesh.

tensor_cell.TensorCell(h, origin, ...)

Representation of a cell in a TensorMesh.

tree_mesh.TreeCell

A class for defining cells within instances of TreeMesh.