Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MC-kit/openmc_mcnp_adapter

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
47 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, ELL, WED, and ARB macrobodies
  • 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

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.