drwells / fiddle

4 stars 3 forks source link

some more data in ideas #53

Open drwells opened 2 years ago

drwells commented 2 years ago

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

  1. Loading nodal data is straightforward since we can do value comparisons.
  2. 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.
  3. We can load 'quad' data in much the same way: 3 or 4 vertices, one data value.
  4. 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.