Skip to main content

A Python package containing a collection of scripts for producing and downloading data for OpenMC

Project description

test_urls test_package test_convert_scripts

OpenMC Data

Aims to facilitate the use of different nuclear data libraries with OpenMC by providing command line tools that process and download nuclear data automatically.

Prerequisites

You should have already installed OpenMC, see the docs for installation instructions.

Installation

The package is distributed on PYPI and can be installed with pip.

pip install openmc_data

Usage

Once installed several scripts are available in your terminal that are able to download and process nuclear data.

The scripts accept input arguments, to find out the input arguments available for a particular script run the script name with --help after the name. For example:

convert_endf --help

Some scripts (mainly the generate scripts) require NJOY to be installed and added to your path.

A few categories of scripts are available:

  • Scripts that produce h5 cross section files:
    • Convert ACE files to h5 files
    • Generate h5 file from ENDF files
    • Download h5 files
  • Scripts that produce xml chain files:
    • Generate xml chain files from ENDF files:
    • Download xml chain files:
  • Other scripts that don't fall into either category.

Produce Cross Section Files

Convert cross sections

Script name Library Release Processed by
convert_mcnp70 ENDF/B VII.0 LANL
convert_mcnp71 ENDF/B VII.1 LANL
convert_endf ENDF/B VII.1 NNDC
convert_lib80x ENDF/B VIII.0 LANL
convert_fendl FENDL 3.2c
3.2b
3.2a
3.2
3.1d
3.1a
3.1
3.0
2.1
convert_jeff32 JEFF 3.2
convert_jeff33 JEFF 3.3
convert_tendl TENDL 2015
2017
2019
2021

Generate cross sections

Script name Library Release Processed by
generate_cendl CENDL 3.1
3.2
generate_endf ENDF/B VII.1
VIII.0
NNDC
generate_fendl FENDL 3.2c
3.2b
3.2a
3.2
3.1d
3.1a
3.0
generate_jendl JENDL 4.0
5.0
generate_tendl TENDL 2023
2025

Download cross sections

Script name Library Release Processed by
download_endf ENDF/B VII.1
VIII.0
NNDC
download_tendl TENDL 2019
2021

Produce Depletion Chain files

Generate chain files

Script name Library Release
generate_endf_chain ENDF/B VII.1
VIII.0
generate_jeff_chain JEFF 3.3
generate_jendl_chain JENDL 5.0
generate_tendl_chain TENDL 2019
2021
generate_serpent_fissq
generate_endf71_chain_casl ENDF/B

Download chain files

Script name Library Release Branching options
download_chain ENDF/B


TENDL
VII.1
VIII.0

2019
None
SFR
PWR

FNS

Other scripts

Script name Description
convert_tendl_rand Download random TENDL libraries from PSI and convert it to a HDF5 library for use with OpenMC. Only certain nuclides are available from PSI. This script generates a cross_sections_tendl.xml file with random TENDL evaluations plus a standard library located in 'OPENMC_CROSS_SECTIONS'
sample_sandy This scripts generates random (gaussian) evaluations of a nuclear data file following its covariance matrix using SANDY, and converts them to HDF5 for use in OpenMC. Script generates a cross_sections_sandy.xml file with the standard library plus the sampled evaluations.
make_compton
make_stopping_powers
add_branching_ratios add branching ratios for n,gamma reactions to a preexisting chain files.
reduce_chain
combine_libraries Combines multiple cross_section.xml files into a single cross_section.xml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmc_data-2.3.4.tar.gz (58.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openmc_data-2.3.4-py3-none-any.whl (58.4 MB view details)

Uploaded Python 3

File details

Details for the file openmc_data-2.3.4.tar.gz.

File metadata

  • Download URL: openmc_data-2.3.4.tar.gz
  • Upload date:
  • Size: 58.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for openmc_data-2.3.4.tar.gz
Algorithm Hash digest
SHA256 71be0f83301d59e7f7bb05dc6cf558fee711c817e7c620d66bf53e4fb37593c8
MD5 e2cf7b6dfcd7cb8844c1cc6a30d267ba
BLAKE2b-256 8e5e3dc454e28457b38da4432c3ab8abc181ee7e787dded304571bef243c0b7d

See more details on using hashes here.

File details

Details for the file openmc_data-2.3.4-py3-none-any.whl.

File metadata

  • Download URL: openmc_data-2.3.4-py3-none-any.whl
  • Upload date:
  • Size: 58.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for openmc_data-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b04aa8e7789dd4f23b0a7cd564ecad3cef4f3177c3eac2788b761b42085ac864
MD5 e02388688077e764fe6811b0abbcbdbd
BLAKE2b-256 7aedad2cd350cf38028123463fdaf0892ae98d3dcf26b74bf3fcfda0ac8f5dfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page