-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load auxiliary data with meshes #271
Comments
When you have one value per node you also implicitly think of piecewise linear interpolation between the nodes which corresponds to I think it makes sense to read this kind of information from the files. However, there is a similar kind of "vagueness" than in the solution vector returned from I'm trying to think what kind of container would be sufficient but simple enough. |
Yes. Or which I had suggested something like this in nschloe/meshio#630 (comment) but it wasn't well received
I do like that idea myself, though I'm also still
Maybe besides a Besides degrees of freedom, the other kind of vector which is passed around in finite element analysis is the |
This is now pretty topical w.r.t #556 . For now I decided to make the new mesh classes as backwards-compatible as possible while still being "immutable". However, I'm now also thinking that First we could simply introduce the new objects, be it |
Yes, as discussed 2021-01-15:
Yes, I think this a good idea and the small steps towards 4.0.0 too, yes. |
The name ‘MeshData’ suggests to me more data that is defined on a mesh (functions from points or cells or facets or edges to ℝ or ℝk or whatever), like the On mesh data in the sense of
Those two points are well taken but I do still sometimes think that I do want a femio, I do want to be able to store the values of the degrees of freedom of a finite element function as such and not as |
This is kind of the opposite of #268, the removal of the old
.external
attribute of a loadedMesh
, which served as a catch-all for whatever else had been read from the file and wasn't immediately interpretable as part of the mesh. That attribute was no longer populated byMesh.load
and so was dropped #269.However, there are cases in which it makes sense to load auxiliary data along with a mesh, e.g. fields that are defined on the points or cells of the mesh; e.g.
or subsets of the points or cells; e.g.
meshio.Mesh
does have attributespoint_data
,cell_data
, andfield_data
and has more recently added:node_sets
andelement_sets
for Exodus (only)point_tags
andcell_tags
for MED (only)Ignoring these latter for the moment (I would hope that they'd be standardized in meshio eventually), should
Mesh.load
return both a mesh and some kind of container of auxiliary data? Maybe returnTuple[Mesh, MeshData]
whereMeshData
is an object like ameshio.Mesh
without the.points
or.cells
? I guess the.cell_data
and.field_data
would have the'gmsh:physical'
items popped.I'm not sure that auxiliary data belongs in an object with the mesh (which should just be geometric and topological data), although it does make sense to have data that is associated with a particular mesh, and does make sense to be able to store mesh and auxiliary data together in a file (as many formats allow).
The text was updated successfully, but these errors were encountered: