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 git+https://github.com/openmc-data-storage/openmc_data.git

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.1.tar.gz (757.9 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.1-py3-none-any.whl (57.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openmc_data-0.0.1.tar.gz
  • Upload date:
  • Size: 757.9 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.1.tar.gz
Algorithm Hash digest
SHA256 a1dbfd7b5caa4712b721b313f5e393f912a2d79f26860f57020ffa8249ded18c
MD5 0cf197aecbf2f8d62d6692e8bb7ffc60
BLAKE2b-256 f2bfa24c64815baebc777886173e00a62f2e819dca500d6f48a3ea51f7396496

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openmc_data-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 57.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57cf356975685d2ca0700f572b4e52796c909378753aa7faad2cfb7c03414dd7
MD5 8c94c51b5634177dc54cee8c7a8f6383
BLAKE2b-256 705af3d78cf0124ec8d2c4b1003246a39fb587de09f2627d5decdc1be409ee29

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