Enhancing Monte Carlo Workflows for Nuclear Reactor Analysis with Metamodel-Driven Modeling
Journal Article
·
· Nuclear Science and Engineering
- Rensselaer Polytechnic Inst., Troy, NY (United States)
- Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
- Univ. of New Mexico, Albuquerque, NM (United States)
Monte Carlo codes are essential components of many reactor physics simulation workflows as high-fidelity continuous-energy neutron transport solvers. Among Monte Carlo radiation transport codes, MCNP is particularly notable due to its diverse simulation capabilities, large user base, and long validation history. Despite being a powerful simulation tool, MCNP provides limited capabilities to allow automated execution, model transformation, or support for user-defined logic and abstractions that limit its compatibility with modern workflows. Here, to better integrate MCNP into a modern scientific workflow, we have developed an intuitive yet full-featured MCNP Application Program Interface (API) in Python, named MCNPy, which provides a specialized set of classes for MCNP input development. Moreover, to guarantee that our reading, writing, and modeling capabilities remain self-consistent (and to render the huge scope of the MCNP API manageable), we have adopted a strategy of model-driven software development in which a generalized model of the MCNP input format has been created. From this generalized model, or “metamodel,” problem-specific implementations such as an engine for input validation or a codebase for programmatic operations may be automatically generated. Since MCNPy primarily acts as a Python front-end to the underlying Java API that directly interfaces with the metamodel, it is intrinsically linked to the metamodel and thus remains maintainable. With MCNPy, users can programmatically read, write, and modify any syntactically valid MCNP input file regardless of its origin. These capabilities allow users to automate complicated tasks like design optimization and model translation for nuclear systems. As examples, this work demonstrates the use of MCNPy to find the critical radius of a plutonium sphere and to translate a 9000+ line MCNP input file into a corresponding OpenMC model.
- Research Organization:
- Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
- Sponsoring Organization:
- Office of Nuclear Regulatory Research; USDOE National Nuclear Security Administration (NNSA); USDOE Office of Nuclear Energy (NE)
- Grant/Contract Number:
- AC05-00OR22725; NE0008707
- OSTI ID:
- 1976016
- Journal Information:
- Nuclear Science and Engineering, Journal Name: Nuclear Science and Engineering Journal Issue: 8 Vol. 197; ISSN 0029-5639
- Publisher:
- Taylor & FrancisCopyright Statement
- Country of Publication:
- United States
- Language:
- English
Similar Records
Montepy
OpenMC
Modification to the Monte N-Particle (MCNP) Visual Editor (MCNPVised) to read in Computer Aided Design (CAD) files
Software
·
Sun Jan 07 19:00:00 EST 2024
·
OSTI ID:code-117498
OpenMC
Software
·
Sat Sep 11 20:00:00 EDT 2021
·
OSTI ID:code-64709
Modification to the Monte N-Particle (MCNP) Visual Editor (MCNPVised) to read in Computer Aided Design (CAD) files
Technical Report
·
Wed Jan 28 23:00:00 EST 2004
·
OSTI ID:821143