openmc-dev / openmc_mcnp_adapter

Tool for converting MCNP input files to OpenMC classes/XML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MCNP Conversion Tools for OpenMC

License

This repository provides tools for parsing/converting MCNP models to OpenMC classes and/or XML files. To install these tools, run:

python -m pip install git+https://github.com/openmc-dev/openmc_mcnp_adapter.git

This makes the openmc_mcnp_adapter Python module and mcnp_to_openmc console script available. To convert an MCNP model, run:

mcnp_to_openmc mcnp_input

Disclaimer

There has been no methodical V&V on this converter; use at your own risk!

Known Limitations

The converter currently only handles geometry and material information; source definition (SDEF) and tally specifications are ignored.

The converter will try to set surface boundary conditions to match the MCNP model, but in many cases it doesn't work cleanly. For these cases, you will need to manually set boundary conditions on the outermost surfaces.

Some geometry features are not currently supported:

  • Periodic boundary conditions
  • X, Y, and Z surfaces with 1 or 3 coordinate pairs
  • RHP, REC, TRC, ELL, WED, and ARB macrobodies
  • Macrobody facets
  • Hexagonal lattices
  • One-dimensional lattices
  • Two-dimensional lattices with basis other than x-y
  • U, LAT, and FILL cards specified in the data card block

About

Tool for converting MCNP input files to OpenMC classes/XML

License:MIT License


Languages

Language:Python 100.0%