MontePy API#
Base Problem#
A class to represent an entire MCNP problem in a semantic way. |
|
Reads the specified MCNP Input file. |
Base Objects#
Object to represent a single MCNP cell defined in CSG. |
|
Class to represent an MCNP universe, but not handle the input directly. |
Collections#
A collections of multiple |
|
A container of multiple |
|
A collection of multiple |
|
A container of multiple |
|
A container of multiple |
Surface Objects#
General Surface utilities#
Object to hold a single MCNP surface |
|
Class representing a geometry half_space. |
Cylinders#
Represents surfaces: C/X, C/Y, C/Z |
|
Represents surfaces: CX, CY, CZ |
Planes#
Represents P |
|
Represents PX, PY, PZ |
Data Inputs#
Materials#
Class to represent an element e.g., Aluminum. |
|
A class to represent an MCNP material. |
|
A class to represent an MCNP nuclide with nuclear data library information. |
|
Class to hold MT Inputs |
Cell Modifiers#
Note
You will rarely create these directly,
rather use the corresponding property in montepy.Cell
.
Object to handle the |
|
A data input that sets the importance for a cell(s). |
|
Represents the options for the lattice |
|
Object to handle the inputs from |
|
Object to actually handle the |
|
Class for the data input that modifies cell volumes; |
Misc.#
Class for the particle mode for a problem. |
|
Input to represent a transform input (TR). |
Developer Focused Objects#
Abstract Classes#
Abstract class for semantic representations of MCNP inputs. |
|
Abstract Parent class for Data Inputs that modify cells / geometry. |
|
Parent class to describe all MCNP data inputs. |
|
MCNP data input that is not actually parsed and only parroted out. |
|
An abstract class to represent an mcnp object that has a number. |
|
|
This is a an abstract collection for numbered objects that are also Data Inputs. |
A collections of MCNP objects. |
|
A metaclass for wrapping all class properties and methods in |
|
Custom MetaClass for allowing subclassing of MCNP_Parser. |
|
This is a fake logger meant to mostly make warnings dissapear. |
Enumerations#
Enumeration of the allowed geometry set logic. |
|
Supported MCNP supported particles. |
|
An enumeration of the surface types allowed. |
|
Enumeration of the possible MCNP shortcuts. |
|
An enumeration for the different blocks in an input file. |
Universal Utilities and constants#
Object Builders#
Parses the data input as the appropriate object if it is supported. |
|
Creates a generator function to return a new MCNP input for every new one that is encountered. |
|
Reads the bulk of an MCNP file for all of the MCNP data. |
|
Reads the beginning of an MCNP file for all of the unusual data there. |
|
Builds a Surface object for the type of Surface |
Parser Data Types#
A class to represent a distinct input file. |
|
Represents a single MCNP "Input" e.g. a single cell definition. |
|
Class to represent a default entry represented by a "jump". |
|
Object to represent an MCNP message. |
|
Object to represent a single coherent MCNP input, such as an input. |
|
A input for the read input that reads another input file |
|
Object to represent the title for an MCNP problem |
|
A node to represent the classifier for a |
|
Object to represent a comment in an MCNP problem. |
|
A syntax tree that is a binary tree for representing CSG geometry logic. |
|
A node to represent a list of values. |
|
A node for representing isotopes and their concentration, and the material parameters. |
|
A syntax tree node to represent a collection of sequential padding elements. |
|
A node to hold the parameters, key-value pairs, for this input. |
|
A node to hold particles information in a |
|
A node that pretends to be a |
|
A general syntax node for handling inner tree nodes. |
|
A base class for all syntax nodes. |
|
A syntax node to represent the leaf node. |
Parsers#
Base class for all MCNP parsers that provides basics. |
|
The parser for parsing a Cell input. |
|
A parser for almost all data inputs. |
|
A parser for parsing the first word or classifier of a data input. |
|
A parser for parsing parameter (key-value pair) only data inputs. |
|
A parser for handling "read" inputs. |
|
A parser for MCNP surfaces. |
|
A barebone parser for parsing tallies before they are fully implemented. |
|
A barebone parser for parsing tally segment inputs before they are fully implemented. |
|
A parser for thermal scattering law inputs. |
|
Base lexer for all MCNP lexers. |
|
A lexer for lexing an input that has particles in it. |
|
A lexer for cell inputs that allows particles. |
|
A lexer for data inputs. |
|
A lexer for Surface inputs. |
Deprecated Objects#
A class to represent an MCNP isotope |
|
A class to represent a single component in a material. |