terrapower / armicontrib-openmc

ARMI plugin for building and running OpenMC models
Apache License 2.0
7 stars 3 forks source link

Open-Source ARMI-OpenMC Plugin

This code connects TerraPower's ARMI® engineering automation code with ANL's OpenMC monte carlo radiation transport code.

Features

Limitations

Installation

The ARMI-OpenMC plugin and demonstration application, along with ARMI and all non-OpenMC required dependencies can be installed by running

pip install -r requirements.txt

from within a Python environment. It is recommended to do this inside of a Python Virtual Environment to gain better control of installed dependencies and their versions.

The OpenMC dcoumentation has brief and more detailed instructions for installing OpenMC.

Running the Example Case

The plugin contains an example case that simulates the Fast Flux Test Facility (FFTF) and generates two flux spectrum plots. To run the example case,

  1. Switch to the "develop" branch of the ARMI-OpenMC repository.

  2. Clone the FFTF ARMI model and switch to the "openmcSettings" branch. Note that this fork differs from the main FFTF ARMI model only in some execution settings in FFTF.yaml. It is recommended to check FFTF.yaml and choose execution settings appropriate for your system.

  3. From the FFTF case directory, execute the "run-fftf" entry point with

    python -m openmcdemo run-fftf

    This will instatiate the ARMI model, create the OpenMC model, and run the OpenMC model. Two flux spectrum plots will be displayed after OpenMC finishes executing. Instructions for exploring the OpenMC output in more detail can be found in the OpenMC documentation.