cashocs.geometry.mesh_handler#

Management of finite element meshes.

Functions

check_mesh_quality_tolerance(mesh_quality, ...)

Compares the current mesh quality with the (upper) tolerance.

import_mesh(mesh_file[, comm])

Imports a mesh file for use with cashocs / FEniCS.

cashocs.geometry.mesh_handler.check_mesh_quality_tolerance(mesh_quality, tolerance)[source]#

Compares the current mesh quality with the (upper) tolerance.

This function raises an appropriate exception, when the mesh quality is not sufficiently high.

Parameters:
  • mesh_quality (float) – The current mesh quality.

  • tolerance (float) – The upper mesh quality tolerance.

Return type:

None