Skip to main content

Collection of scripts for managing data for OpenMC

Project description

test_urls

test_package

test_convert_scripts

OpenMC Data Scripts

This repository contains a collection of scripts for generating HDF5 data libraries that can be used with OpenMC. Some of these scripts convert existing ACE libraries (such as those produced by LANL) whereas generate scripts use NJOY to process ENDF files directly

Note that unless you are interested in making a customized library, you can find pregenerated HDF5 libraries at https://openmc.org.

Another source of data libraries for OpenMC is the Windowed Multipole Library repository which enables on-the-fly Doppler broadening to an arbitrary temperature.

Prerequisites

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

Installation

Currently the package can be installed from this temporary repository.

pip install openmc_data

In the future pip installing from PyPi or Conda could be provided

Usage

Once install several scripts are added to your python path 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_nndc71 --help

A few categories of scripts are available:

  • Scripts that generate h5 cross section files for using in OpenMC from either ACE or ENDF files.
  • Scripts that generate chain files for use in depletion simulations.
  • Other scripts that don't fall into either category.

Cross Section

Script name Library Release Processed by Download available Downloads ACE files and convert to HDF5 Downloads ENDF files and convert to HDF5 Convert local ACE files
generate_cendl CENDL 3.1
3.2
:heavy_check_mark:
convert_mcnp70 ENDF/B VII.0 LANL openmc.org :heavy_check_mark:
convert_mcnp71 ENDF/B VII.1 LANL openmc.org :heavy_check_mark:
generate_endf ENDF/B VII.1 NNDC openmc.org :heavy_check_mark:
convert_nndc71 ENDF/B VII.1 NNDC openmc.org :heavy_check_mark: :heavy_check_mark:
convert_lib80x ENDF/B VIII.0 LANL openmc.org :heavy_check_mark:
generate_endf ENDF/B VIII.0 NNDC openmc.org :heavy_check_mark:
convert_fendl FENDL 2.1
3.0
3.1a
3.1d
3.2
openmc.org 3.2 :heavy_check_mark:
generate_jendl JENDL 4.0 :heavy_check_mark:
convert_jeff32 JEFF 3.2 openmc.org :heavy_check_mark:
convert_jeff33 JEFF 3.3 openmc.org :heavy_check_mark:
convert_tendl TENDL 2015
2017
2019
2021
:heavy_check_mark:

Depletion Chains

Sctipt name Library Release Download available Download ENDF files and generates XML chain files
generate_endf71_chain_casl ENDF/B - https://github.com/openmc-dev/data/tree/master/depletion :heavy_check_mark:
generate_endf71_chain ENDF/B - https://github.com/openmc-dev/data/tree/master/depletion :heavy_check_mark:
generate_serpent_fissq - - https://github.com/openmc-dev/data/tree/master/depletion :heavy_check_mark:
generate_tendl_chain TENDL 2019
2021
https://github.com/openmc-dev/data/tree/master/depletion :heavy_check_mark:

Other scripts

Sctipt 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 Writes a depletion chain XML file from a depletion chain XML file and branching ratios
reduce_chain

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-0.0.2.tar.gz (758.7 kB view details)

Uploaded Source

Built Distribution

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

openmc_data-0.0.2-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openmc_data-0.0.2.tar.gz
  • Upload date:
  • Size: 758.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for openmc_data-0.0.2.tar.gz
Algorithm Hash digest
SHA256 330278b38048f5cfe57200b37fc107f655d648ee94c742f67c7960e4bf6bceb9
MD5 e9c3165fe5a50c91784525def469f803
BLAKE2b-256 c0818e05245e178656f5fc0617a375d8d33f5f8a7f1d52299d302d064d86efd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openmc_data-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 59.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for openmc_data-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed806428eda9a8a83d516668e98fc188be596109cd2e4173373a4ed6f9b04b9
MD5 0310a1450ef1557fd688f11199428d6b
BLAKE2b-256 2876b128ffcebf3af3eb58ebb9aa14e1fcfabe4599e53a3d61aa2d73463a45dd

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