Extracting node set and element set information from Exodus file

I’d like to get node set and element set information from an Exodus file using pvpython. I’m interested in both:

  1. getting specific node/element IDs given the name of the set, and
  2. getting data from a specific variable given the name of the set.

I’m using ExodusIIReader from paraview.simple, and I am able to get all field data from nodes and elements, but can’t seem to get at the node/element set information.

Depending on what your specific needs are, you might try using the exodus.py module provided by SEACAS (the official project that owns the Exodus format).