Giter Club home page Giter Club logo

openxsconverter's Introduction

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/output 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.

openxsconverter's People

Stargazers

 avatar

Watchers

 avatar

openxsconverter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.