cashocs.geometry.mesh_testing.IntersectionTester#
- class cashocs.geometry.mesh_testing.IntersectionTester(mesh: fenics.Mesh)[source]#
Bases:
object
A class for testing the mesh after it has been modified.
Initializes the posterior mesh tester.
- Parameters:
mesh (fenics.Mesh) – The mesh that is to be tested.
Methods Summary
test
()Checks the quality of the transformation after the actual mesh is moved.
Methods Documentation
- test() bool [source]#
Checks the quality of the transformation after the actual mesh is moved.
Checks whether the mesh is a valid finite element mesh after it has been moved, i.e., if there are no overlapping or self intersecting elements.
- Returns:
True if the test is successful, False otherwise.
- Return type:
bool
Notes
fenics itself does not check whether the used mesh is a valid finite element mesh, so this check has to be done manually.