svalinn / dagmc_stats

Tool for calculating and reporting statistics about DAGMC models
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Unpack material metadata when loading a file #87

Open gonuke opened 2 years ago

gonuke commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

And now here: https://github.com/fusion-energy/dagmc_h5m_file_inspector

gonuke commented 2 years ago

Two modes for the user to access this data:

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