CardSharp: A python library for generating MCNP6 input decks

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Deshmukh, Nikhil, Zalavadia, Mital
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910841205424128
author Deshmukh, Nikhil
Zalavadia, Mital
author_facet Deshmukh, Nikhil
Zalavadia, Mital
contents A python library for the creation of MCNP6 input decks is described. The library supports geometry generation with automatic assignment of surface/facet numbers, cell numbers, transform numbers and material numbers along with MCNP Universes and FILL feature. Rectangular and Hexagonal Lattices are also supported. A large material library is included. Support for a good selection of common sources and tallies is also provided. Cards or features which are currently not supported in the library can also be inserted as raw strings into the output stream. Combining Python features like descriptively named variables, functions and for loops with library functions provides an intuitive and parametric way to create, modify and maintain complicated geometries and simulation models. The generated card deck also has human readable comments which makes it easy to read and relate back to the python source. Some support for running MCNP, reading tallies and plotting is also provided.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16678
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CardSharp: A python library for generating MCNP6 input decks
Deshmukh, Nikhil
Zalavadia, Mital
Computational Physics
A python library for the creation of MCNP6 input decks is described. The library supports geometry generation with automatic assignment of surface/facet numbers, cell numbers, transform numbers and material numbers along with MCNP Universes and FILL feature. Rectangular and Hexagonal Lattices are also supported. A large material library is included. Support for a good selection of common sources and tallies is also provided. Cards or features which are currently not supported in the library can also be inserted as raw strings into the output stream. Combining Python features like descriptively named variables, functions and for loops with library functions provides an intuitive and parametric way to create, modify and maintain complicated geometries and simulation models. The generated card deck also has human readable comments which makes it easy to read and relate back to the python source. Some support for running MCNP, reading tallies and plotting is also provided.
title CardSharp: A python library for generating MCNP6 input decks
topic Computational Physics
url https://arxiv.org/abs/2502.16678