cashocs.geometry.mesh_testing.CollisionCounter#
- class cashocs.geometry.mesh_testing.CollisionCounter[source]#
Bases:
object
Class 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) ndarray [source]#
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 vertexi
collides with.- Return type:
ndarray