pymcnp.inp.uran Subpackage¶
AST Classes¶
Stochastic Class¶
- class pymcnp.inp.uran.Stochastic(universe: str | int | Integer, maximum_x: str | int | float | Real, maximum_y: str | int | float | Real, maximum_z: str | int | float | Real)¶
Represents INP stochastic elements.
- classmethod from_mcnp(source: str)¶
Generates Entry from INP.
- Parameters:
source – Entry for INP.
- Returns:
Entry.
- Raises:
InpError – SYNTAX_OPTION.
- to_mcnp()¶
Generates INP from Entry.
- Returns:
INP for Entry.