cashocs.geometry#

Mesh generation, quality, and management tools.

This module consists of tools for the fast generation of meshes into fenics. The regular_mesh and regular_box_mesh commands create 2D and 3D box meshes which are great for testing and development.

Functions

compute_boundary_distance(mesh[, ...])

Computes (an approximation of) the distance to the boundary.

generate_measure(idx, measure)

Generates a measure based on indices.

interval_mesh([n, start, end, partitions, comm])

Creates an 1D interval mesh starting at x=0 to x=length.

regular_box_mesh([n, start_x, start_y, ...])

Creates a mesh corresponding to a rectangle or cube.

regular_mesh([n, length_x, length_y, ...])

Creates a mesh corresponding to a rectangle or cube.

compute_mesh_quality(mesh[, quality_type, ...])

This computes the mesh quality of a given mesh.

Classes

DeformationHandler(mesh, a_priori_tester, ...)

A class, which implements mesh deformations.

MeshQuality()

A class used to compute the quality of a mesh.

Modules

boundary_distance

Compute the distance to the boundary.

deformations

Management of mesh deformations.

measure

Extension of integration measures.

mesh

Basic mesh generation.

mesh_handler

Management of finite element meshes.

mesh_testing

Testing of mesh quality.

quality

Mesh quality computation.