Not immediately related to fiddle (though that's where DataIn currently lives), but I have some more ideas for how to do this (and make it work with more than just ExodusII
Loading nodal data is straightforward since we can do value comparisons.
We can load line midpoint data by storing it as a value associated with two points. This should work even when we have curved geometries.
We can load 'quad' data in much the same way: 3 or 4 vertices, one data value.
Same goes for cell-centered values.
That should cover up to quadratic for all element types. I think the right way to go is to create some intermediate data structures: e.g., ExodusII -> LineData -> function that knows how to set dof values correctly. The intermediates will make this easy to extend to GMSH etc.
Not immediately related to fiddle (though that's where
DataIn
currently lives), but I have some more ideas for how to do this (and make it work with more than just ExodusIIThat should cover up to quadratic for all element types. I think the right way to go is to create some intermediate data structures: e.g., ExodusII -> LineData -> function that knows how to set dof values correctly. The intermediates will make this easy to extend to GMSH etc.