issues with nuc_data.h5 and uwuw_preproc

46 views
Skip to first unread message

Miguel Magán Romero

unread,
Aug 27, 2020, 8:27:33 AM8/27/20
to PyNE Users
Hello all:

After building PyNE, I am trying to use it to make DAGMC work. However, I am stuck with the preprocessing of the materials, because I can't find any materials in the library:

============================
 ~/opt/dagmc/bin/uwuw_preproc geometry.h5m -l /home/mmagan/build_nuc_data/prebuilt_nuc_data.h5  -v
Loading file geometry.h5m
Initializing the GeomQueryTool...
Using faceting tolerance: 0.0001
Implicit Complement assumed to be Vacuum
Making material group name mat:Lead
Making material group name mat:Lead
...
Making material group name mat:Lead
Making material group name mat:Graveyard
Making material group name mat:Vacuum
Materials Present, :

material Lead was not found in the material library
========================

Looking at my material database, I am not sure if things are working as intended. When opening the nuc_data file in a console python, the keys seem to be in byte strings, as opposed to strings as in the webpage (Compare to https://pyne.io/examples/material_library.html)

>>> import pyne
>>> from pyne import nuc_data
>>> from pyne.material_library import MaterialLibrary
>>> mats = MaterialLibrary('/home/mmagan/lib/nuc_data.h5', datapath='/material_library/materials')
>>> list(mats.keys())[-5:]
[b'Inconel-600', b'Steel, Stainless 202', b'Carbon Tetrachloride', b'Cesium Iodide', b'Plutonium Dioxide']
>>> 

Now, I realize that the webpage needs to be updated for the recent release, so this could be intended. However, further confusing me is the fact that the uwuw_preproc passes the tests, and if I use the material file included at the DAGMC repo (https://github.com/svalinn/DAGMC/blob/develop/src/uwuw/tests/mat_lib.h5)
it does show materials. So, I am not certain if my material database is not built correctly, the uwuw_preproc needs updating, or I have something else broken. Could you help with this?

Cheers.

Paul Wilson

unread,
Sep 3, 2020, 9:58:56 PM9/3/20
to PyNE Users
Hello,

We have identified this as an incompatibility between the new functionality in PyNE and the current state of the DAGMC uwuw_preproc tool.  We have a fix in the works to propagate the new PyNE capability into DAGMC and hope it will be ready in a few days.

Paul

Miguel Magán Romero

unread,
Sep 4, 2020, 3:24:33 PM9/4/20
to PyNE Users
Hello:
You are right, I am following the PR in github. It is not really a PyNE issue. 

Anil Kumar Tyagi

unread,
Apr 20, 2023, 2:17:46 AM4/20/23
to PyNE Users
Dear Dr. Paul,

Do we now have the replacement of uwuw_preproc in pyne to make material laiden h5m files?

Thanks for help.
Anil
Reply all
Reply to author
Forward
0 new messages