iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://github.com/nfherrin/OpenXSConverter
GitHub - nfherrin/OpenXSConverter: An open source utility to convert various publicly available macroscopic nuclear cross section formats
Skip to content

An open source utility to convert various publicly available macroscopic nuclear cross section formats

License

Notifications You must be signed in to change notification settings

nfherrin/OpenXSConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenXSConverter

An open source utility to convert various publicly available macroscopic nuclear cross section formats.

This converter takes one of several different input XS formats and converts them to one of several different output XS formats.

To compile OpenXSConverter, navigate to the source folder and then make the converter by typing:

  >> make

A successful compilation of OpenXSConverter will conclude with the line:

  >> mv ./OpenXSConverter.exe ../

To run OpenXSConverter, simply invoke the OpenXSConverter binary and follow it immediately with the XS input file followed by the XS output format (where <xs_in> is the name of the XS input file, <out_form> is the output format, and <pn_ord> is the $P_n$ order to use and is optional):

  >> <path_to_OpenXSConverter>/OpenXSConverter.exe <xs_in> <out_form> <pn_ord>

The output file will be titled <xs_in>_<out_form>.out unless the output is for an HDF5 format (such as OpenMC cross sections), in which case it will be of the form <xs_in>_<out_form>.out.h5. Note that if the optional parameter <pn_ord> is given, then that is the $P_n$ scattering order that OpenXSConverter will attempt to use for creating the output XS. If <pn_ord> is greater than the scattering order available in the input file, then OpenXSConverter will throw a warning message and default to the scattering order available in the input file, if it is not given then OpenXSConverter will similarly default to he maximum available scattering order in the input file.

Currently, the OpenXSConverter only supports the following input/output formats:

NOTE: Anisotropic MCNP output seems to be working, however it does not match well with anisotropic OpenMC for the same XS, so caution should be used trusting it. Isotropic MCNP output however does seem to match well.

There are also plans to add the following formats for input as well:

  • MPACT/VERA.

Examples


The folder examples contains an example of an OpenMC generated cross section, example.h5, that has been converted to both OpenMC input, example.py, as well as THOR cross sections example.xs. These cross sections are from a nonphysical 5 cm sphere of 1 kg/cm3 pure U235 surrounded by another 5 cm of 1 kg/cm3 hydrogen. These particular cross sections have 3 energy groups and $P_4$ scattering. The OpenMC generated XS as well as the THOR XS can be converted to either THOR or OpenMC output by the user if they so wish to compare to the examples in the folder.

About

An open source utility to convert various publicly available macroscopic nuclear cross section formats

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published