cashocs.geometry.mesh_testing.CollisionCounter#
- class cashocs.geometry.mesh_testing.CollisionCounter[source]#
Bases:
objectClass for testing, whether a given mesh is a valid FEM mesh.
Initializes self.
Methods Summary
compute_collisions(mesh)Computes the cells which (potentially) contain self intersections.
Methods Documentation
- classmethod compute_collisions(
- mesh: fenics.Mesh,
Computes the cells which (potentially) contain self intersections.
- Parameters:
mesh (fenics.Mesh) – A FEM mesh.
- Returns:
An array of cell indices, where
array[i]contains the indices of all cells that vertexicollides with.- Return type:
ndarray