Skip to content

Production of multigroup cross sections with NJOY #2952

Description

@shimwell

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions