This package aids the creation, and modification, of input files for common nuclear science and engineering codes. Currently, only MCNP (Monte Carlo N-Particle Transport) is supported.
This page presents an overview of the simplesim package, including a discussion of why it was made, how it is used, and some examples. This guide is not intended by any means to be a replacmenet for a specific code’s own documentation.
It is expected that when using this package, the user has the library reference, at Simple Simulation Input – pyne.simplesim, open. The reference contains descriptions and examples of every card that is implemented.
If you are interested in developing this package further or are looking for information about the state of development, visit Simple Simulation Input – pyne.simplesim and/or contact the developers.
Some may feel that it is fairly easy and straight-forward to create input files for the popular codes in nuclear science and engineering. However, the following functionality may be desirable:
This package aims to achieve these four objectives. Currently, only MCNP is supported.
The structure of the package, showing key methods, is illustrated in the following diagram (the pyne.simplesim.nestedgeom module is omitted). The basic unit of input for a simulation is a card, and there is a slew of cards in the pyne.simplesim.cards module. The cards are added to defintions, and the definition is handed over to an input file object which actually creates the input file.
An input file is generated by the following procedure:
Here are some things to keep in mind:
In general, a definition, or the cards that make up the definition, can be modified at any point, and a new input file can be generated with these changes. This makes it easy to do parameter space studies and the like. See the examples to see how this is done.
Furthermore, if the functionality of a card is silly, the user can override it themselves. Say the user does not like how the method cards.ICellSurfTally.mcnp() works: a method can be overloaded by subclassing the card and overloading the method.
These pages contain examples of how the package is expected to be used. The examples all come from pyne/examples/simplesim.py.