Skip to content
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

Unpack material metadata when loading a file #87

Open
gonuke opened this issue Oct 15, 2021 · 3 comments
Open

Unpack material metadata when loading a file #87

gonuke opened this issue Oct 15, 2021 · 3 comments

Comments

@gonuke
Copy link
Member

gonuke commented Oct 15, 2021

Currently, DagmcFile loads basic DAGMC data about a model upon opening the file. It will be useful to also load the material metadata and create a mapping of materials to volume entity handles and/or IDs.

Parse the material names from the group names and populate a dictionary of 'material_name' => [list of entity handles]

@shimwell
Copy link
Member

shimwell commented Oct 15, 2021

There is some code in here that might be handy for finding volume ids, material tags and the linkage between material tags and volume ids.

https://github.com/fusion-energy/dagmc_h5m_file_inspector

Also here https://gist.github.com/gonuke/c36e327e399c7a685cd315c738121c9a

@gonuke
Copy link
Member Author

gonuke commented Jan 13, 2022

@gonuke
Copy link
Member Author

gonuke commented Apr 21, 2022

Two modes for the user to access this data:

  • query which material is in a given volume ID or EH
  • query which volumes contain a given material

A dataframe that with columns vol_eh, material_name can be used to satisfy both queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants