Skip to content

Tool for converting MCNP input files to OpenMC classes/XML

License

Notifications You must be signed in to change notification settings

MC-kit/openmc_mcnp_adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%