The ndc Command#
The NDChainer provides the ndc command to manage your chain files for
use with OpenMC.
All chain files are stored in the $NDMANAGER_HDF5/chains directory.
Listing Installed and Installable Library#
The ndc list shows the OpenMC chains installed on your system as well
the official chains that you can download from the OpenMC website:
$ ndc list
---------------------------------------- Installable Chains -----------------------------------------
endfb71-thermal [✓]: A chain based on the ENDF-B/VII.1 evaluation with thermal capture branching
ratios
endfb71-fast [✓]: A chain based on the ENDF-B/VII.1 evaluation with fast capture branching ratios
endfb8-thermal [✓]: A chain based on the ENDF-B/VIII.0 evaluation with thermal capture branching
ratios
endfb8-fast [✓]: A chain based on the ENDF-B/VIII.0 evaluation with thermal capture branching
ratios
casl-thermal [✓]: A simplified chain as described by https://doi.org/10.2172/1256820 with thermal
capture branching ratios
casl-fast [✓]: A simplified chain as described by https://doi.org/10.2172/1256820 with fast
capture branching ratios
------------------------------------------- Custom Chains -------------------------------------------
jeff33-fast jeff33-thermal
As you can see, I have installed all official chains available and added my own based on JEFF-3.3.
Installing Official Chains#
The ndc install lets you download and install chains from OpenMC’s official website:
$ ndc install endfb8-fast
Removing a Library#
You can remove installed chains as well:
$ ndc remove endfb8-fast
Building Your Own Chain#
The main purpose of the NDChainer module is to build depletion chains in OpenMC’s XML format
for use in OpenMC depletion calculation.
To do this the ndc build command should be provided the path to a YAML file containing a
structured description of the target chain’s content.
A valid ndc input file contain the following information:
A
nameelement which will be used to refer the chain with NDManager’s APIA
descriptionelement to give some context on the chainA
branching_ratioselement with a value of eithersfrorpwr, to set radiative capture branching ratios for fast or thermal problems. Values are taken from OpenMC’s official website. sfr, pwd)An optional
halflifeelement with a floating point value. Nuclides with a shorter halflife than this value will be removed from the chain and branching ratios will be redirected accordinglyA
nelement for incident neutron files with the following sub-elementsThe
baseelement should refer to an ENDF6 library installed with NDFetcher, this is the main source of the ENDF6 tapes for your libraryThe
ommitelement lists the nuclide present in the ENDF6 library that you want to discardThe
addelement tells NDOmcer to use ENDF6 tapes from a library different that the base one. It contains keys named after the desired library, with a list of the desired nuclides
A
decayelement with keys similar to that of thenelementA
nfpyelement for neutron-induced fission product yields, with keys similar to that of thenelement
Here is a sample of what an ndc input file to build a JEFF-3.3 based chain should look like:
name: jeff33-fast
description: |
A depletion chain based on the JEFF-3.3 evaluations.
branching_ratios: sfr
n:
base: jeff33
ommit: C0
add:
endfb8: Ta180 C12 C13 O17
decay:
base: jeff33
nfpy:
base: jeff33
Just like I did for NDOmcer, I replace JEFF’s C0 nuclide with C12 and C13 from ENDF-B/VIII.0. Once the Yaml file is done, you can execute the build command:
ndc build jeff33-chain.yml