Description
Following up with a slack conversation with @bohmt @MicahGale and @lewisgross1296
Currently the njoy.py file is able to create cards for ACER, PURR, GASPR, HEATR, HEATR_LOCAL, BROADR, RECONR and is useful for processing nuclear data. We also have lots of nice inbuilt energy group structures and NJOY input file writting and output file reading.
I was wondering if we could add GROUPR to the supported NJOY cards and another method called something like a classmethod MGXS.from_njoy()?
This would give use the ability to generate multigroup cross sections directly from ENDF data (without particle transport).
I have tried to match the existing openmc NJOY templates by using njoy inp examples from IAEA and groupr examples from T2 and page 230 of the njoy manual but I don't really know NJOY well enough to understand all the numbers.
_TEMPLATE_GROUPR = """
groupr / %%%%%%%%%%%%%%%% Multigroup data %%%%%%%%%%%%%%%%
{nendf} {npendf} 0 {ndir} /
{mat} 1 1 11 6 1 1 1/ <---- arbitrary structure for ign, arbitrary structure for igg, 11 for iwt number, 6 for mfd number, not sure about the last 3 numbers
'{library} GROUPR for {zsymam} processed by NJOY'/
{temperature}
1.E+10
{num_energy_bins}
{energy_bins}
{num_energy_bins}
{energy_bins}
3/
6/
16/
0/
0/
"""
Tagging @gonuke who is also interested in have a method of making multigroup cross sections
Alternatives
Run NJOY outside of openmc and get the GROUPR cross sections
Compatibility
This would add a method without disturbing existing code
Description
Following up with a slack conversation with @bohmt @MicahGale and @lewisgross1296
Currently the njoy.py file is able to create cards for ACER, PURR, GASPR, HEATR, HEATR_LOCAL, BROADR, RECONR and is useful for processing nuclear data. We also have lots of nice inbuilt energy group structures and NJOY input file writting and output file reading.
I was wondering if we could add GROUPR to the supported NJOY cards and another method called something like a classmethod
MGXS.from_njoy()?This would give use the ability to generate multigroup cross sections directly from ENDF data (without particle transport).
I have tried to match the existing openmc NJOY templates by using njoy inp examples from IAEA and groupr examples from T2 and page 230 of the njoy manual but I don't really know NJOY well enough to understand all the numbers.
Tagging @gonuke who is also interested in have a method of making multigroup cross sections
Alternatives
Run NJOY outside of openmc and get the GROUPR cross sections
Compatibility
This would add a method without disturbing existing code