findSurf.py script

Given a mesh file, this script extracts its surface and prints it to stdout in form of a list where each row is [group, element, face, component]. A component corresponds to a contiguous surface region - for example, a cubical mesh with a spherical hole has two surface components. Two surface faces sharing a single node belong to one component.

With ‘-m’ option, a mesh of the surface is created and saved in ‘surf_<original mesh file name>.mesh’.

Try ./find_surf.py –help to see more options.

findSurf.main()[source]
findSurf.surface_components(gr_s, surf_faces)[source]

Determine surface components given surface mesh connectivity graph.

findSurf.surface_graph(surf_faces, n_nod)[source]