mymesh.mesh.mesh.validate#

mesh.validate()[source]#

Check validity of the mesh. This will verify that NodeCoords and NodeConn are of an appropriate type, confirm the mesh is non-empty, check that elements don’t reference non-existant nodes, and that the Type is a valid option (‘vol’ or ‘surf’). If any of these checks fail, an assertion error will be raised. Additionally, a warning will be issued if a volume mesh has any inverted elements.