You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the cpp code for mesh.cpp and state_point.cpp it appears that the name is not written to the statepoint file and that name is also not a member variable of the mesh class.
working from the other direction mesh name is written to the model.xml file.
So I guess somewhere when the openmc cpp codes reads in the xml file it doesn't read in the mesh name part.
Might be nice to add this missing link so that the mesh can be found in the statepoint file.
This is particularity useful for unstructured meshes as in that case the mesh from a statepoint file contains centroids, vertices and other properties. The unstrucutred mesh doesn't have all that information when being originally made on the python side as it just points to a mesh file.
Usecase, I would like to make unstructred meshes, name them and then be able to get them by name from the statepoint file. Currently this is not supported by the python API and one has to loop through the available meshes to find the right one.
The text was updated successfully, but these errors were encountered:
While working on #3212 I noticed that the mesh name was not found in the returned mesh from the statepoint file.
Digging a little deeper I noticed the mesh name is not in the hdf5 groups for a mesh in the statepoint file
Looking at the cpp code for mesh.cpp and state_point.cpp it appears that the name is not written to the statepoint file and that name is also not a member variable of the mesh class.
working from the other direction mesh name is written to the model.xml file.
So I guess somewhere when the openmc cpp codes reads in the xml file it doesn't read in the mesh name part.
Might be nice to add this missing link so that the mesh can be found in the statepoint file.
This is particularity useful for unstructured meshes as in that case the mesh from a statepoint file contains centroids, vertices and other properties. The unstrucutred mesh doesn't have all that information when being originally made on the python side as it just points to a mesh file.
Usecase, I would like to make unstructred meshes, name them and then be able to get them by name from the statepoint file. Currently this is not supported by the python API and one has to loop through the available meshes to find the right one.
The text was updated successfully, but these errors were encountered: