pymcnp.inp Subpackage¶
Warning
The following non-terminals are not currently supported:
Field (3.3.3.12)
Mplot (3.3.7.2.5)
Burn (3.3.4.13)
Embed.Overlap (3.3.1.6.2)
Tmesh (3.3.5.24)
Spabi (3.3.6.16)
The following non-terminals are partial supported:
Fm (3.3.5.7)
Ft (3.3.5.18)
pymcnp.inp contains the INP parser. PyMCNP implements an object-oriented recursive
descent parser, approximating INP as the following context-free-grammar described in modified Backus-Naur form:
<CellOption> = ...;
<Cell> = <Integer> " " <Integer> ( " " <Real> )? " " <Geometry> ( " " <CellOption>)*;
<SurfaceOption> = ...;
<Surface> = ( "+" | "*" ) <Integer> ( " " <Integer> )? <SurfaceOption>;
<DataOption> = ...;
<Data> = <DataOption>;
Table of Contents¶
pymcnp.inp.cellSubpackagepymcnp.inp.likeSubpackagepymcnp.inp.surfaceSubpackagepymcnp.inp.actSubpackagepymcnp.inp.bfldSubpackagepymcnp.inp.dawwgSubpackagepymcnp.inp.ddSubpackagepymcnp.inp.df_1Subpackagepymcnp.inp.ds_1Subpackagepymcnp.inp.ds_2Subpackagepymcnp.inp.dxtSubpackagepymcnp.inp.embedSubpackagepymcnp.inp.embeeSubpackagepymcnp.inp.f_1Subpackagepymcnp.inp.f_2Subpackagepymcnp.inp.filesSubpackagepymcnp.inp.fmeshSubpackagepymcnp.inp.fmultSubpackagepymcnp.inp.koptsSubpackagepymcnp.inp.kpertSubpackagepymcnp.inp.ksenSubpackagepymcnp.inp.ksrcSubpackagepymcnp.inp.m_0Subpackagepymcnp.inp.meshSubpackagepymcnp.inp.mplotSubpackagepymcnp.inp.pertSubpackagepymcnp.inp.pikmtSubpackagepymcnp.inp.ptracSubpackagepymcnp.inp.randSubpackagepymcnp.inp.sdefSubpackagepymcnp.inp.ssrSubpackagepymcnp.inp.sswSubpackagepymcnp.inp.stopSubpackagepymcnp.inp.t_1Subpackagepymcnp.inp.troptSubpackagepymcnp.inp.uranSubpackagepymcnp.inp.varSubpackage
AST Classes¶
PyMCNP represents INP non-terminals with AST classes and stores them in nested subpackages. These AST class have methods for translating between PyMCNP and INP:
from_mcnp. Parses INP source, checking for syntax and semantic errors.to_mcnp. Generates INP source from PyMCNP objects, reformatting.
Cell Class¶
- class pymcnp.inp.Cell(material: ~pymcnp.types.Integer.Integer, geometry: ~pymcnp.types.Geometry.Geometry, density: ~pymcnp.types.Real.Real = None, number: ~pymcnp.types.Integer.Integer = 1, options: ~pymcnp.types.Tuple.Tuple.<locals>._Tuple = None)¶
Represents INP cell cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Cell.
- Returns:
INP cell card.
- to_show(surfaces: dict[str, ~pymcnp._show._shape.Shape], cells: dict[str, ~pymcnp._show._shape.Shape], shapes: ~types.ModuleType = <module 'pymcnp._show.pyvista' from '/home/docs/checkouts/readthedocs.org/user_builds/pymcnp/envs/stable/lib/python3.12/site-packages/pymcnp/_show/pyvista/__init__.py'>) Shape¶
Generates Visualization from Cell.
- Paramaters:
surfaces: Dictionary of surfaces and visualizations. shapes: Collection of shapes.
- Returns:
Visualization for Cell
Like Class¶
- class pymcnp.inp.Like(number: ~pymcnp.types.Integer.Integer, cell: ~pymcnp.types.Integer.Integer, options: ~pymcnp.types.Tuple.Tuple.<locals>._Tuple = None)¶
Represents INP cell cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Like.
- Returns:
INP cell card.
Surface Class¶
- class pymcnp.inp.Surface(option: SurfaceOption, number: Integer = 1, transform: Integer = None, prefix: str = None)¶
Represents INP surface cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Surface.
- Returns:
INP surface card.
- to_show(shapes: ~types.ModuleType = <module 'pymcnp._show.pyvista' from '/home/docs/checkouts/readthedocs.org/user_builds/pymcnp/envs/stable/lib/python3.12/site-packages/pymcnp/_show/pyvista/__init__.py'>) Shape¶
Generates Visualization from Surface.
- Returns:
pyvista.PolySurface for Surface.
Act Class¶
Area Class¶
- class pymcnp.inp.Area(areas: list[str] | list[float] | list[Real])¶
Represents INP area cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Awtab Class¶
- class pymcnp.inp.Awtab(weight_ratios: list[str] | list[Substance])¶
Represents INP awtab cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Bbrem Class¶
- class pymcnp.inp.Bbrem(bias_1: str | int | float | Real, bias_2: str | int | float | Real, bias_3: str | int | float | Real, bias_4: str | int | float | Real, bias_5: str | int | float | Real, bias_6: str | int | float | Real, bias_7: str | int | float | Real, bias_8: str | int | float | Real, bias_9: str | int | float | Real, bias_10: str | int | float | Real, bias_11: str | int | float | Real, bias_12: str | int | float | Real, bias_13: str | int | float | Real, bias_14: str | int | float | Real, bias_15: str | int | float | Real, bias_16: str | int | float | Real, bias_17: str | int | float | Real, bias_18: str | int | float | Real, bias_19: str | int | float | Real, bias_20: str | int | float | Real, bias_21: str | int | float | Real, bias_22: str | int | float | Real, bias_23: str | int | float | Real, bias_24: str | int | float | Real, bias_25: str | int | float | Real, bias_26: str | int | float | Real, bias_27: str | int | float | Real, bias_28: str | int | float | Real, bias_29: str | int | float | Real, bias_30: str | int | float | Real, bias_31: str | int | float | Real, bias_32: str | int | float | Real, bias_33: str | int | float | Real, bias_34: str | int | float | Real, bias_35: str | int | float | Real, bias_36: str | int | float | Real, bias_37: str | int | float | Real, bias_38: str | int | float | Real, bias_39: str | int | float | Real, bias_40: str | int | float | Real, bias_41: str | int | float | Real, bias_42: str | int | float | Real, bias_43: str | int | float | Real, bias_44: str | int | float | Real, bias_45: str | int | float | Real, bias_46: str | int | float | Real, bias_47: str | int | float | Real, bias_48: str | int | float | Real, bias_49: str | int | float | Real, materials: list[str] | list[int] | list[Integer])¶
Represents INP bbrem cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bias_1: Real¶
Bias factor #1 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_10: Real¶
Bias factor #10 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_11: Real¶
Bias factor #11 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_12: Real¶
Bias factor #12 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_13: Real¶
Bias factor #13 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_14: Real¶
Bias factor #14 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_15: Real¶
Bias factor #15 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_16: Real¶
Bias factor #16 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_17: Real¶
Bias factor #17 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_18: Real¶
Bias factor #18 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_19: Real¶
Bias factor #19 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_2: Real¶
Bias factor #2 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_20: Real¶
Bias factor #20 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_21: Real¶
Bias factor #21 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_22: Real¶
Bias factor #22 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_23: Real¶
Bias factor #23 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_24: Real¶
Bias factor #24 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_25: Real¶
Bias factor #25 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_26: Real¶
Bias factor #26 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_27: Real¶
Bias factor #27 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_28: Real¶
Bias factor #28 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_29: Real¶
Bias factor #29 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_3: Real¶
Bias factor #3 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_30: Real¶
Bias factor #30 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_31: Real¶
Bias factor #31 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_32: Real¶
Bias factor #32 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_33: Real¶
Bias factor #33 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_34: Real¶
Bias factor #34 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_35: Real¶
Bias factor #35 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_36: Real¶
Bias factor #36 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_37: Real¶
Bias factor #37 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_38: Real¶
Bias factor #38 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_39: Real¶
Bias factor #39 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_4: Real¶
Bias factor #4 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_40: Real¶
Bias factor #40 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_41: Real¶
Bias factor #41 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_42: Real¶
Bias factor #42 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_43: Real¶
Bias factor #43 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_44: Real¶
Bias factor #44 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_45: Real¶
Bias factor #45 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_46: Real¶
Bias factor #46 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_47: Real¶
Bias factor #47 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_48: Real¶
Bias factor #48 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_49: Real¶
Bias factor #49 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_5: Real¶
Bias factor #5 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_6: Real¶
Bias factor #6 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_7: Real¶
Bias factor #7 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bias_8: Real¶
Bias factor #8 for bremsstrahlung specturm
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Bflcl Class¶
- class pymcnp.inp.Bflcl(numbers: list[str] | list[int] | list[Integer])¶
Represents INP bflcl cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Bfld Class¶
- class pymcnp.inp.Bfld(suffix: str | int | Integer, kind: str | String, options: list[str] | list[BfldOption] = None)¶
Represents INP bfld cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
C Class¶
- class pymcnp.inp.C(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real], prefix: str | String = None, t: str | String = None, c: str | String = None)¶
Represents INP c cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Cf Class¶
- class pymcnp.inp.Cf(suffix: str | int | Integer, numbers: list[str] | list[int] | list[Integer])¶
Represents INP cf cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Cm Class¶
- class pymcnp.inp.Cm(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP cm cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Cosy Class¶
- class pymcnp.inp.Cosy(numbers: list[str] | list[int] | list[Integer])¶
Represents INP cosy cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Cosyp Class¶
- class pymcnp.inp.Cosyp(pre: str | int | Integer, axsh: str | int | Integer, axsv: str | int | Integer, emaps: list[str] | list[float] | list[Real])¶
Represents INP cosyp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Ctme Class¶
Cut Class¶
- class pymcnp.inp.Cut(designator: str | Designator, time_cutoff: str | int | float | Real = None, energy_cutoff: str | int | float | Real = None, weight_cutoff1: str | int | float | Real = None, weight_cutoff2: str | int | float | Real = None, source_weight: str | int | float | Real = None)¶
Represents INP cut cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data option particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Dawwg Class¶
- class pymcnp.inp.Dawwg(options: list[str] | list[DawwgOption] = None)¶
Represents INP dawwg cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Dbcn Class¶
- class pymcnp.inp.Dbcn(x1: str | int | Integer = None, x2: str | int | Integer = None, x3: str | int | Integer = None, x4: str | int | Integer = None, x5: str | int | Integer = None, x6: str | int | Integer = None, x7: str | int | Integer = None, x8: str | int | Integer = None, x9: str | int | Integer = None, x10: str | int | Integer = None, x11: str | int | Integer = None, x12: str | int | Integer = None, x13: str | int | Integer = None, x14: str | int | Integer = None, x15: str | int | Integer = None, x16: str | int | Integer = None, x17: str | int | Integer = None, x18: str | int | Integer = None, x19: str | int | Integer = None, x20: str | int | Integer = None, x21: str | int | Integer = None, x22: str | int | Integer = None, x23: str | int | Integer = None, x24: str | int | Integer = None, x25: str | int | Integer = None, x26: str | int | Integer = None, x27: str | int | Integer = None, x28: str | int | Integer = None, x29: str | int | Integer = None, x30: str | int | Integer = None, x31: str | int | Integer = None, x32: str | int | Integer = None, x33: str | int | Integer = None, x34: str | int | Integer = None, x35: str | int | Integer = None, x36: str | int | Integer = None, x37: str | int | Integer = None, x38: str | int | Integer = None, x39: str | int | Integer = None, x40: str | int | Integer = None, x41: str | int | Integer = None, x42: str | int | Integer = None, x43: str | int | Integer = None, x44: str | int | Integer = None, x45: str | int | Integer = None, x46: str | int | Integer = None, x47: str | int | Integer = None, x48: str | int | Integer = None, x49: str | int | Integer = None, x50: str | int | Integer = None, x51: str | int | Integer = None, x52: str | int | Integer = None, x53: str | int | Integer = None, x54: str | int | Integer = None, x55: str | int | Integer = None, x56: str | int | Integer = None, x57: str | int | Integer = None, x58: str | int | Integer = None, x59: str | int | Integer = None, x60: str | int | Integer = None, x61: str | int | Integer = None, x62: str | int | Integer = None, x63: str | int | Integer = None, x64: str | int | Integer = None, x65: str | int | Integer = None, x66: str | int | Integer = None, x67: str | int | Integer = None, x68: str | int | Integer = None, x69: str | int | Integer = None, x70: str | int | Integer = None, x71: str | int | Integer = None, x72: str | int | Integer = None, x73: str | int | Integer = None, x74: str | int | Integer = None, x75: str | int | Integer = None, x76: str | int | Integer = None, x77: str | int | Integer = None, x78: str | int | Integer = None, x79: str | int | Integer = None, x80: str | int | Integer = None, x81: str | int | Integer = None, x82: str | int | Integer = None, x83: str | int | Integer = None, x84: str | int | Integer = None, x85: str | int | Integer = None, x86: str | int | Integer = None, x87: str | int | Integer = None, x88: str | int | Integer = None, x89: str | int | Integer = None, x90: str | int | Integer = None, x91: str | int | Integer = None, x92: str | int | Integer = None, x93: str | int | Integer = None, x94: str | int | Integer = None, x95: str | int | Integer = None, x96: str | int | Integer = None, x97: str | int | Integer = None, x98: str | int | Integer = None, x99: str | int | Integer = None, x100: str | int | Integer = None)¶
Represents INP dbcn cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property x1: Integer¶
Obsolete; pseudorandom number for the first particle history
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x10: Integer¶
Half-life threshold for stable nuclides
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x100: Integer¶
Coincident-surface method old/new setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x11: Integer¶
Collision event lost particle logging on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x12: Integer¶
Expected number of random numbers
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x13: Integer¶
Obsolete; random number stride
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x14: Integer¶
Obsolete; random number multiplier
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x15: Integer¶
Usual selection of statistics quantities printing on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x16: Integer¶
History score grid accumulation scaling
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x17: Integer¶
Angular treatment for secondary particles setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x18: Integer¶
Energy-indexing alogrithm for election transport settings
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x19: Integer¶
Developer; Quadratic polynomical interpolation parameter
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x23: Integer¶
Pulse-height tally variance reducation tress setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x24: Integer¶
Grazing contribution cutoff for surface fluxx tallies settings
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x27: Integer¶
Antiparticle promotion settings
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x3: Integer¶
Lower history number inclusive limit for logging
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x33: Integer¶
Additional interpolation/smoothing method for heavy ions on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x34: Integer¶
Developer; Muon-induced gammas bug parameter
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x35: Integer¶
Slight spreading of nuclear exitation on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x36: Integer¶
User-provided data for muon-induced gamma rays on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x37: Integer¶
Mimumum of internal bremsstrahlung spectrum
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x38: Integer¶
Barashenkov/Polanski data file on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x39: Integer¶
Default S(α,β) smoothing behavior on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x4: Integer¶
Upper history number inclusive limit for logging
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x40: Integer¶
Developer; MCPLIB and XSDIR lines writing setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x41: Integer¶
Developer; Phonton/election data printing setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x43: Integer¶
Developer; Photo form-factor interpolation setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x44: Integer¶
Developer; Coherent scattering in isolation setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x45: Integer¶
MCNP6/MCNPX elastic scattering method selector
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x46: Integer¶
CEM-to_LAQGSM photonuclear energy boundary setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x5: Integer¶
Maximnum number of events per history for logging
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x51: Integer¶
Developer; Photon-induced fluoresence on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x52: Integer¶
Developer; Compton-induced relaxation on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x53: Integer¶
Photoelectric relazation data setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x54: Integer¶
Sampling method for ENDF Law 9 setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x55: Integer¶
Spontaneous decay integration time
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x6: Integer¶
Detector/DXTRAN underflow limit
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x60: Integer¶
Print number of calls to each high-energy model
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x61: Integer¶
Developer; models of knock-on electron angles
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x62: Integer¶
Developer; single-event electrons excitation energy loss debugger
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x64: Integer¶
Developer; single-event electrons angular deflaction debugger
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x65: Integer¶
Developer; single-event ionization and treat deflection dubgger
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x66: Integer¶
Developer; single-event bremsstrahlung photon angles setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x67: Integer¶
Particle histories setting for detectors and DXTRAN
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x7: Integer¶
Volume and sufrace area printing on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x70: Integer¶
Developer; interaction models setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x71: Integer¶
Model photonuclear capability on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x72: Integer¶
Log-log/linear interpolation in ELXS_MOD setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x75: Integer¶
Print extra info for F-matrix calculation on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x76: Integer¶
Print array storage info after setup on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x77: Integer¶
Has-based cross-section serach bin number
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x78: Integer¶
Developer; S(A,B) method old/new setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x79: Integer¶
MT for absorption and fission setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x8: Integer¶
Obsolete; starting history offset
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x81: Integer¶
Developer; interpolation for electron elastic scatter setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x82: Integer¶
Developer; interpolation for electron elastic scatter setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x83: Integer¶
Developer; interpolation for electron partial x-s setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x84: Integer¶
Developer; interpolation for electron bremsstrahlung energy setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x85: Integer¶
Developer; interpolation for electron bremsstrahlung energy setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x86: Integer¶
Developer; interpolation for electron excitation setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x87: Integer¶
Developer; interpolation for electron knock-on energy setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x88: Integer¶
Developer; interpolation for electron knock-on energy setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x89: Integer¶
Developer; interpolation for electron ionization x-s setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x9: Integer¶
Distance allowed between cpincident repeated-structures
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Dd Class¶
- class pymcnp.inp.Dd(diagnostics: list[str] | list[Diagnostic], suffix: str | int | Integer = None)¶
Represents INP dd cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
De Class¶
- class pymcnp.inp.De(suffix: str | int | Integer, values: list[str] | list[float] | list[Real], method: str | String = None)¶
Represents INP de cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Df_0 Class¶
- class pymcnp.inp.Df_0(suffix: str | int | Integer, values: list[str] | list[float] | list[Real], method: str | String = None)¶
Represents INP df cards variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Df_1 Class¶
- class pymcnp.inp.Df_1(suffix: str | int | Integer, options: list[str] | list[DfOption_1])¶
Represents INP df cards variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Dm Class¶
- class pymcnp.inp.Dm(suffix: str | int | Integer, zaids: list[str] | list[Zaid])¶
Represents INP dm cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Drxs Class¶
Ds_0 Class¶
- class pymcnp.inp.Ds_0(suffix: str | int | Integer, js: list[str] | list[float] | list[Real], option: str | String = None)¶
Represents INP ds elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Ds_1 Class¶
- class pymcnp.inp.Ds_1(suffix: str | int | Integer, ijs: list[str] | list[Variables])¶
Represents INP ds elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Ds_1.
- Returns:
INP for Ds_1.
Ds_2 Class¶
- class pymcnp.inp.Ds_2(suffix: str | int | Integer, vss: list[str] | list[Variables])¶
Represents INP ds elements variation #2.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Ds_2.
- Returns:
INP for Ds_2.
Ds_3 Class¶
- class pymcnp.inp.Ds_3(suffix: str | int | Integer, distributions: list[str] | list[Distribution])¶
Represents INP ds elements variation #3.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Ds_3.
- Returns:
INP for Ds_3.
Dxc Class¶
- class pymcnp.inp.Dxc(suffix: str | int | Integer, designator: str | Designator, probabilities: list[str] | list[float] | list[Real])¶
Represents INP dxc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Dxt Class¶
- class pymcnp.inp.Dxt(designator: str | Designator, spheres_1: str | Shell, spheres_2: str | Shell, spheres_3: str | Shell, spheres_4: str | Shell, spheres_5: str | Shell, spheres_6: str | Shell, spheres_7: str | Shell, spheres_8: str | Shell, spheres_9: str | Shell, spheres_10: str | Shell, cutoff_1: str | int | float | Real, cutoff_2: str | int | float | Real, weight: str | int | float | Real)¶
Represents INP dxt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property cutoff_1: Real¶
Upper weight cutoff in the spheres
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property cutoff_2: Real¶
Lower weight cutoff in the spheres
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
E Class¶
- class pymcnp.inp.E(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real], nt: str | String = None, c: str | String = None)¶
Represents INP e cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property c: String¶
Notation to make bin values cumulative
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Elpt Class¶
- class pymcnp.inp.Elpt(cutoffs: list[str] | list[float] | list[Real])¶
Represents INP elpt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Em Class¶
- class pymcnp.inp.Em(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP em cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embdb Class¶
- class pymcnp.inp.Embdb(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real])¶
Represents INP embdb cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embdf Class¶
- class pymcnp.inp.Embdf(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP embdf cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embeb Class¶
- class pymcnp.inp.Embeb(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real])¶
Represents INP embeb cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embed Class¶
- class pymcnp.inp.Embed(suffix: str | int | Integer, options: list[str] | list[EmbedOption] = None)¶
Represents INP embed cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embee Class¶
- class pymcnp.inp.Embee(suffix: str | int | Integer, designator: str | Designator, options: list[str] | list[EmbeeOption] = None)¶
Represents INP embee cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Embem Class¶
- class pymcnp.inp.Embem(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP embem cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embtb Class¶
- class pymcnp.inp.Embtb(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real])¶
Represents INP embtb cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Embtm Class¶
- class pymcnp.inp.Embtm(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP embtm cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Esplt Class¶
- class pymcnp.inp.Esplt(designator: str | Designator, ratio_1: str | int | float | Real = None, energy_1: str | int | float | Real = None, ratio_2: str | int | float | Real = None, energy_2: str | int | float | Real = None, ratio_3: str | int | float | Real = None, energy_3: str | int | float | Real = None, ratio_4: str | int | float | Real = None, energy_4: str | int | float | Real = None, ratio_5: str | int | float | Real = None, energy_5: str | int | float | Real = None, ratio_6: str | int | float | Real = None, energy_6: str | int | float | Real = None, ratio_7: str | int | float | Real = None, energy_7: str | int | float | Real = None, ratio_8: str | int | float | Real = None, energy_8: str | int | float | Real = None, ratio_9: str | int | float | Real = None, energy_9: str | int | float | Real = None, ratio_10: str | int | float | Real = None, energy_10: str | int | float | Real = None, ratio_11: str | int | float | Real = None, energy_11: str | int | float | Real = None, ratio_12: str | int | float | Real = None, energy_12: str | int | float | Real = None, ratio_13: str | int | float | Real = None, energy_13: str | int | float | Real = None, ratio_14: str | int | float | Real = None, energy_14: str | int | float | Real = None, ratio_15: str | int | float | Real = None, energy_15: str | int | float | Real = None, ratio_16: str | int | float | Real = None, energy_16: str | int | float | Real = None, ratio_17: str | int | float | Real = None, energy_17: str | int | float | Real = None, ratio_18: str | int | float | Real = None, energy_18: str | int | float | Real = None, ratio_19: str | int | float | Real = None, energy_19: str | int | float | Real = None, ratio_20: str | int | float | Real = None, energy_20: str | int | float | Real = None)¶
Represents INP esplt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_1: Real¶
Splitting/roulette energy #1
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_10: Real¶
Splitting/roulette energy #10
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_11: Real¶
Splitting/roulette energy #11
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_12: Real¶
Splitting/roulette energy #12
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_13: Real¶
Splitting/roulette energy #13
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_14: Real¶
Splitting/roulette energy #14
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_15: Real¶
Splitting/roulette energy #15
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_16: Real¶
Splitting/roulette energy #16
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_17: Real¶
Splitting/roulette energy #17
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_18: Real¶
Splitting/roulette energy #18
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_19: Real¶
Splitting/roulette energy #19
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_2: Real¶
Splitting/roulette energy #2
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_20: Real¶
Splitting/roulette energy #20
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_3: Real¶
Splitting/roulette energy #3
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_4: Real¶
Splitting/roulette energy #4
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_5: Real¶
Splitting/roulette energy #5
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_6: Real¶
Splitting/roulette energy #6
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_7: Real¶
Splitting/roulette energy #7
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_8: Real¶
Splitting/roulette energy #8
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property energy_9: Real¶
Splitting/roulette energy #9
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_10: Real¶
Splitting/roulette ratio #10
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_11: Real¶
Splitting/roulette ratio #11
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_12: Real¶
Splitting/roulette ratio #12
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_13: Real¶
Splitting/roulette ratio #13
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_14: Real¶
Splitting/roulette ratio #14
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_15: Real¶
Splitting/roulette ratio #15
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_16: Real¶
Splitting/roulette ratio #16
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_17: Real¶
Splitting/roulette ratio #17
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_18: Real¶
Splitting/roulette ratio #18
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_19: Real¶
Splitting/roulette ratio #19
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Ext Class¶
- class pymcnp.inp.Ext(designator: str | Designator, stretching: list[str] | list[String])¶
Represents INP ext cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
F_0 Class¶
- class pymcnp.inp.F_0(suffix: str | int | Integer, problems: list[str] | list[int] | list[Integer], prefix: str | String = None, designator: str | Designator = None, t: str | String = None)¶
Represents INP f elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
F_1 Class¶
- class pymcnp.inp.F_1(suffix: str | int | Integer, spheres: list[str] | list[Sphere], prefix: str | String = None, designator: str | Designator = None, nd: str | String = None)¶
Represents INP f elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
F_2 Class¶
- class pymcnp.inp.F_2(suffix: str | int | Integer, a: str | String, rings: list[str] | list[Ring], prefix: str | String = None, designator: str | Designator = None, nd: str | String = None)¶
Represents INP f elements variation #2.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from F_2.
- Returns:
INP for F_2.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
F_3 Class¶
- class pymcnp.inp.F_3(suffix: str | int | Integer, problems: list[str] | list[int] | list[Integer], prefix: str | String = None, designator: str | Designator = None, t: str | String = None)¶
Represents INP f elements variation #3.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
F_4 Class¶
- class pymcnp.inp.F_4(suffix: str | int | Integer, problems: list[str] | list[Lattice], prefix: str | String = None, designator: str | Designator = None, t: str | String = None)¶
Represents INP f elements variation #4.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fc Class¶
- class pymcnp.inp.Fc(suffix: str | int | Integer, info: str | String)¶
Represents INP fc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Fcl Class¶
- class pymcnp.inp.Fcl(designator: str | Designator, control: list[str] | list[float] | list[Real])¶
Represents INP fcl cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property control: _Tuple¶
Forced-collision control for cell
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fic Class¶
- class pymcnp.inp.Fic(suffix: str | int | Integer, designator: str | Designator, x1: str | int | float | Real, y1: str | int | float | Real, z1: str | int | float | Real, ro: str | int | float | Real, x2: str | int | float | Real, y2: str | int | float | Real, z2: str | int | float | Real, f1: str | int | float | Real, f2: str | int | float | Real, f3: str | int | float | Real)¶
Represents INP fic cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x1: Real¶
Cylindrical grid center x-coordinate
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property y1: Real¶
Cylindrical grid center y-coordinate
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Files Class¶
Fill Class¶
- class pymcnp.inp.Fill(numbers: list[str] | list[int] | list[Integer])¶
Represents INP fill cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Fip Class¶
- class pymcnp.inp.Fip(suffix: str | int | Integer, designator: str | Designator, x1: str | int | float | Real, y1: str | int | float | Real, z1: str | int | float | Real, ro: str | int | float | Real, x2: str | int | float | Real, y2: str | int | float | Real, z2: str | int | float | Real, f1: str | int | float | Real, f2: str | int | float | Real, f3: str | int | float | Real)¶
Represents INP fip cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property f2: Real¶
Pinhole radius in the direction perpendiuclar to the reference direction
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fir Class¶
- class pymcnp.inp.Fir(suffix: str | int | Integer, x1: str | int | float | Real, y1: str | int | float | Real, z1: str | int | float | Real, ro: str | int | float | Real, x2: str | int | float | Real, y2: str | int | float | Real, z2: str | int | float | Real, f1: str | int | float | Real, f2: str | int | float | Real, f3: str | int | float | Real, designator: str | Designator = None)¶
Represents INP fir cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property x1: Real¶
Rectangular grid center x-coordinate
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property y1: Real¶
Rectangular grid center y-coordinate
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fm Class¶
- class pymcnp.inp.Fm(suffix: str | int | Integer, bins: str | String, prefix: str | String = None)¶
Represents INP fm cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Fmesh Class¶
- class pymcnp.inp.Fmesh(suffix: str | int | Integer, designator: str | Designator, options: list[str] | list[FmeshOption] = None)¶
Represents INP fmesh cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fmult Class¶
- class pymcnp.inp.Fmult(zaid: str | Zaid, options: list[str] | list[FmultOption] = None)¶
Represents INP fmult cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Fq Class¶
- class pymcnp.inp.Fq(suffix: str | int | Integer = None, a1: str | String = None, a2: str | String = None, a3: str | String = None, a4: str | String = None, a5: str | String = None, a6: str | String = None, a7: str | String = None, a8: str | String = None)¶
Represents INP fq cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property a1: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a2: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a3: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a4: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a5: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a6: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property a7: String¶
Letters representing tally bin types
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Fs Class¶
- class pymcnp.inp.Fs(suffix: str | int | Integer, numbers: list[str] | list[int] | list[Integer], t: str | String = None, c: str | String = None)¶
Represents INP fs cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property c: String¶
Notation to make bin values cumulative
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Ft Class¶
- class pymcnp.inp.Ft(suffix: str | int | Integer, treatments: str | String)¶
Represents INP ft cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Fu Class¶
- class pymcnp.inp.Fu(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real], nt: str | String = None, c: str | String = None)¶
Represents INP fu cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bounds: _Tuple¶
Input parameters for user bins
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property c: String¶
Notation to make bin values cumulative
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Histp Class¶
- class pymcnp.inp.Histp(lhist: str | int | Integer = None, cells: list[str] | list[int] | list[Integer] = None)¶
Represents INP histp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Hsrc Class¶
- class pymcnp.inp.Hsrc(x_number: str | int | Integer, x_minimum: str | int | float | Real, x_maximum: str | int | float | Real, y_number: str | int | Integer, y_minimum: str | int | float | Real, y_maximum: str | int | float | Real, z_number: str | int | Integer, z_minimum: str | int | float | Real, z_maximum: str | int | float | Real)¶
Represents INP hsrc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property x_number: Integer¶
Number of mesh intervals in x direction
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Idum Class¶
- class pymcnp.inp.Idum(intergers: list[str] | list[int] | list[Integer])¶
Represents INP idum cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Imp Class¶
- class pymcnp.inp.Imp(designator: str | Designator, importances: list[str] | list[float] | list[Real])¶
Represents INP imp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Kcode Class¶
- class pymcnp.inp.Kcode(nsrck: str | int | Integer = None, rkk: str | int | float | Real = None, ikz: str | int | Integer = None, kct: str | int | Integer = None, msrk: str | int | Integer = None, knrm: str | int | Integer = None, mrkp: str | int | Integer = None, kc8: str | int | Integer = None)¶
Represents INP kcode cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property ikz: Integer¶
Number of cycles to be skipped before beginning tally accumulation
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property kc8: Integer¶
Number of cylces for average setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property kct: Integer¶
Total number of cycles to be done
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property knrm: Integer¶
Normalization of tallies setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property mrkp: Integer¶
Maximum number of cycle values on MCTAL or RUNTPE files
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property msrk: Integer¶
Number of source points to allocate for
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Kopts Class¶
- class pymcnp.inp.Kopts(options: list[str] | list[KoptsOption] = None)¶
Represents INP kopts cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Kpert Class¶
- class pymcnp.inp.Kpert(suffix: str | int | Integer, options: list[str] | list[KpertOption] = None)¶
Represents INP kpert cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Ksen Class¶
- class pymcnp.inp.Ksen(suffix: str | int | Integer, sen: str | String, options: list[str] | list[KsenOption] = None)¶
Represents INP ksen cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Ksrc Class¶
Lat Class¶
Lca Class¶
- class pymcnp.inp.Lca(ielas: str | int | Integer = None, ipreg: str | int | Integer = None, iexisa: str | int | Integer = None, ichoic: str | int | Integer = None, jcoul: str | int | Integer = None, nexite: str | int | Integer = None, npidk: str | int | Integer = None, noact: str | int | Integer = None, icem: str | int | Integer = None, ilaq: str | int | Integer = None, nevtype: str | int | Integer = None)¶
Represents INP lca cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property icem: Integer¶
Choose alternative physics model
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ichoic: Integer¶
ISABEL intranuclear cascade model control
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ilaq: Integer¶
Choose light ion and nucleon physics modules
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property jcoul: Integer¶
Coulomb barrier for incident charged particle controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property nevtype: Integer¶
Choose number of evaporation particles for GEM2
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Lcb Class¶
- class pymcnp.inp.Lcb(flenb1: str | int | float | Real = None, flenb2: str | int | float | Real = None, flenb3: str | int | float | Real = None, flenb4: str | int | float | Real = None, flenb5: str | int | float | Real = None, flenb6: str | int | float | Real = None, cotfe: str | int | float | Real = None, film0: str | int | float | Real = None)¶
Represents INP lcb cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property cotfe: Real¶
Cutoff kinetic energy for particle escape
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property film0: Real¶
Maximum correction allowed for masss-energy balancing
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property flenb1: Real¶
Kinetic energy for nucleons CEM/Bertini/INCL
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property flenb2: Real¶
Kinetic energy for nucleons LAQGSM03.03
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property flenb3: Real¶
Kinetic energy for pions CEM/Bertini/INCL
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property flenb4: Real¶
Kinetic energy for pions LAQGSM03.03
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Lcc Class¶
- class pymcnp.inp.Lcc(stincl: str | int | float | Real = None, v0incl: str | int | float | Real = None, xfoisaincl: str | int | float | Real = None, npaulincl: str | int | Integer = None, nosurfincl: str | int | Integer = None, ecutincl: str | int | float | Real = None, ebankincl: str | int | float | Real = None, ebankabia: str | int | float | Real = None)¶
Represents INP lcc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property ebankabia: Real¶
ABLA bank particles below this energy
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ebankincl: Real¶
INCL bank particles below this energy
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ecutincl: Real¶
Bertini model energy below this energy
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property nosurfincl: Integer¶
Difuse nuclear surface based on Wood-Saxon density setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property npaulincl: Integer¶
Pauli blocking parameter setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Lea Class¶
- class pymcnp.inp.Lea(ipht: str | int | Integer = None, icc: str | int | Integer = None, nobalc: str | int | Integer = None, nobale: str | int | Integer = None, ifbrk: str | int | Integer = None, ilvden: str | int | Integer = None, ievap: str | int | Integer = None, nofis: str | int | Integer = None)¶
Represents INP lea cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property icc: Integer¶
Level of physics for PHT physics setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ievap: Integer¶
Evaporation and fission model setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ifbrk: Integer¶
Mass-energy balancing in Fermi-breakup setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ilvden: Integer¶
Level-density model setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ipht: Integer¶
Generation of de-excitation photons setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property nobalc: Integer¶
Mass-energy balancing in cascade setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Leb Class¶
- class pymcnp.inp.Leb(yzere: str | int | float | Real = None, bzere: str | int | float | Real = None, yzero: str | int | float | Real = None, bzero: str | int | float | Real = None)¶
Represents INP leb cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bzere: Real¶
B0 parameter in level-density formula for Z≤70
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property bzero: Real¶
B0 parameter in level-density formula for Z≥70
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Lost Class¶
- class pymcnp.inp.Lost(lost1: str | int | Integer, lost2: str | int | Integer)¶
Represents INP lost cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
M_0 Class¶
- class pymcnp.inp.M_0(substances: list[str] | list[Substance], suffix: str | int | Integer = 1, options: list[str] | list[MOption_0] = None)¶
Represents INP m elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- static from_formula(formulas: dict[str, float], is_weight: bool = True, cutoff: float = 0.01)¶
Generates M_0 from INP.
- Parameters:
formulas – Dictionary of formulas and atomic/weight fractions.
is_weight – Weight (atomic) fraction true (false) flag.
cutoff – Nuclide fraction cutoff.
- Returns:
M_0 object.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
M_1 Class¶
- class pymcnp.inp.M_1(suffix: str | int | Integer, abx: str | String)¶
Represents INP m elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Mesh Class¶
- class pymcnp.inp.Mesh(options: list[str] | list[MeshOption] = None)¶
Represents INP mesh cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Mgopt Class¶
- class pymcnp.inp.Mgopt(mcal: str | String, igm: str | int | Integer, iplt: str | int | Integer = None, iab: str | int | Integer = None, icw: str | int | Integer = None, fnw: str | int | float | Real = None, rim: str | int | float | Real = None)¶
Represents INP mgopt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property fnw: Real¶
Normalization value for generated weight windows
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property iab: Integer¶
Adjoint biasing for adjoint problems contorls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property icw: Integer¶
Name of the reference cell for generated weight windows
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property igm: Integer¶
Total number of energy groups for all kinds of particle
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Mode Class¶
- class pymcnp.inp.Mode(particles: list[str] | list[Designator])¶
Represents INP mode cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Mphys Class¶
Mplot Class¶
- class pymcnp.inp.Mplot(options: list[str] | list[MplotOption] = None)¶
Represents INP mplot cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Mt Class¶
- class pymcnp.inp.Mt(suffix: str | int | Integer, identifiers: list[str] | list[String])¶
Represents INP mt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Mx Class¶
- class pymcnp.inp.Mx(suffix: str | int | Integer, designator: str | Designator, zaids: list[str] | list[String])¶
Represents INP mx cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Nonu Class¶
- class pymcnp.inp.Nonu(settings: list[str] | list[int] | list[Integer] = None)¶
Represents INP nonu cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Notrn Class¶
Nps Class¶
- class pymcnp.inp.Nps(npp: str | int | Integer, npsmg: str | int | Integer = None)¶
Represents INP nps cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Otfdb Class¶
Pd Class¶
- class pymcnp.inp.Pd(suffix: str | int | Integer, designator: str | Designator, probabilities: list[str] | list[float] | list[Real])¶
Represents INP pd cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Pert Class¶
- class pymcnp.inp.Pert(suffix: str | int | Integer, designator: str | Designator, options: list[str] | list[PertOption] = None)¶
Represents INP pert cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Phys_0 Class¶
- class pymcnp.inp.Phys_0(emax: str | int | float | Real = None, emcnf: str | int | float | Real = None, iunr: str | int | Integer = None, coilf: str | int | float | Real = None, cutn: str | int | Integer = None, ngam: str | int | Integer = None, i_int_model: str | int | Integer = None, i_els_model: str | int | Integer = None)¶
Represents INP phys elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property coilf: Real¶
Light-ion and heavy-ion recoil and NCIA control
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property cutn: Integer¶
Table-based physics cutoff controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_els_model: Integer¶
Treatment of nuclear elastic scattering controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_int_model: Integer¶
Treataement of nuclear interactions controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Phys_1 Class¶
- class pymcnp.inp.Phys_1(emcpf: str | int | float | Real = None, ides: str | int | Integer = None, nocoh: str | int | Integer = None, ispn: str | int | Integer = None, nodop: str | int | Integer = None, fism: str | int | Integer = None)¶
Represents INP phys elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property emcpf: Real¶
Upper energy limit for photon treatment
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property fism: Integer¶
Selection of photofission method controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ides: Integer¶
Generation of elections by photon controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ispn: Integer¶
Photonuclear particle production controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Phys_2 Class¶
- class pymcnp.inp.Phys_2(emax: str | int | float | Real = None, ides: str | int | Integer = None, iphot: str | int | Integer = None, ibad: str | int | Integer = None, istrg: str | int | Integer = None, bnum: str | int | float | Real = None, xnum: str | int | float | Real = None, rnok: str | int | Integer = None, enum: str | int | Integer = None, numb: str | int | Integer = None, i_mcs_model: str | int | Integer = None, j: str | String = None, efac: str | int | float | Real = None, electron_method_boundary: str | int | float | Real = None, ckvnum: str | int | float | Real = None)¶
Represents INP phys elements variation #2.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bnum: Real¶
Bremsstrahlung photon production controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ckvnum: Real¶
Crenkov photon emission scalar
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property efac: Real¶
Stopping power energy spacing controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property electron_method_boundary: Real¶
Single-event transport start sontrols
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property enum: Integer¶
Photon-induced secondary electron creation controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_mcs_model: Integer¶
Choice of Coulomb scattering model controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ibad: Integer¶
Bremsstrahlung angular distribution method controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ides: Integer¶
Photon electron production controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property iphot: Integer¶
Electron photon production controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property istrg: Integer¶
Electron continuous-energy straggling controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property numb: Integer¶
Bremsstrahlung electron creation controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Phys_3 Class¶
- class pymcnp.inp.Phys_3(emax: str | int | float | Real = None, ean: str | int | float | Real = None, tabl: str | int | float | Real = None, istrg: str | int | Integer = None, recl: str | int | float | Real = None, i_mcs_model: str | int | Integer = None, i_int_model: str | int | Integer = None, i_els_model: str | int | Integer = None, efac: str | int | float | Real = None, ckvnum: str | int | float | Real = None, drp: str | int | float | Real = None)¶
Represents INP phys elements variation #3.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property ckvnum: Real¶
Crenkov photon emission scalar
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_els_model: Integer¶
Treatment of nuclear elastic scattering controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_int_model: Integer¶
Treatment of nuclear interactions controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_mcs_model: Integer¶
Choice of Coulomb scattering model controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Phys_4 Class¶
- class pymcnp.inp.Phys_4(designator: str | Designator, emax: str | int | float | Real = None, istrg: str | int | Integer = None, xmunum: str | int | Integer = None, xmugam: str | int | float | Real = None, i_mcs_model: str | int | Integer = None, i_int_model: str | int | Integer = None, i_els_model: str | int | Integer = None, efac: str | int | float | Real = None, ckvnum: str | int | float | Real = None, drp: str | int | float | Real = None)¶
Represents INP phys elements variation #4.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property ckvnum: Real¶
Crenkov photon emission scalar
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_els_model: Integer¶
Treatment of nuclear elastic scattering controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_int_model: Integer¶
Treatment of nuclear interactions controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property i_mcs_model: Integer¶
Choice of Coulomb scattering model controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property istrg: Integer¶
Charged-particle straggling controls
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Pikmt Class¶
- class pymcnp.inp.Pikmt(biases: list[str] | list[Photonbias])¶
Represents INP pikmt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Prdmp Class¶
- class pymcnp.inp.Prdmp(ndp: str | int | Integer = None, ndm: str | int | Integer = None, mct: str | int | Integer = None, ndmp: str | int | Integer = None, dmmp: str | int | Integer = None)¶
Represents INP prdmp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property dmmp: Integer¶
Controls frequently of tally fluctuation chart
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property mct: Integer¶
Controls printing of MCTAL file
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ndm: Integer¶
Increment for dumping to RUNTPE file
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Print Class¶
- class pymcnp.inp.Print(tables: list[str] | list[int] | list[Integer] = None)¶
Represents INP print cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Ptrac Class¶
- class pymcnp.inp.Ptrac(options: list[str] | list[PtracOption] = None)¶
Represents INP ptrac cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Pwt Class¶
- class pymcnp.inp.Pwt(weights: list[str] | list[float] | list[Real])¶
Represents INP pwt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Rand Class¶
- class pymcnp.inp.Rand(options: list[str] | list[RandOption] = None)¶
Represents INP rand cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Rdum Class¶
- class pymcnp.inp.Rdum(floats: list[str] | list[float] | list[Real])¶
Represents INP rdum cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sb_0 Class¶
- class pymcnp.inp.Sb_0(suffix: str | int | Integer, biases: list[str] | list[float] | list[Real], option: str | String = None)¶
Represents INP sb elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sb_1 Class¶
- class pymcnp.inp.Sb_1(function: str | int | Integer, a: str | int | float | Real, b: str | int | float | Real = None)¶
Represents INP sb elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sc Class¶
- class pymcnp.inp.Sc(suffix: str | int | Integer, comment: list[str] | list[String])¶
Represents INP sc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sd Class¶
- class pymcnp.inp.Sd(suffix: str | int | Integer, information: list[str] | list[float] | list[Real])¶
Represents INP sd cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sdef Class¶
- class pymcnp.inp.Sdef(options: list[str] | list[SdefOption] = None)¶
Represents INP sdef cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sf Class¶
- class pymcnp.inp.Sf(suffix: str | int | Integer, numbers: list[str] | list[int] | list[Integer])¶
Represents INP sf cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Si_0 Class¶
- class pymcnp.inp.Si_0(suffix: str | int | Integer, information: list[str] | list[Distribution], option: str | String = None)¶
Represents INP si elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Si_1 Class¶
- class pymcnp.inp.Si_1(suffix: str | int | Integer, information: list[str] | list[float] | list[Real], option: str | String = None)¶
Represents INP si elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sp_0 Class¶
- class pymcnp.inp.Sp_0(suffix: str | int | Integer, probabilities: list[str] | list[float] | list[Real], option: str | String = None)¶
Represents INP sp elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Sp_1 Class¶
- class pymcnp.inp.Sp_1(function: str | int | Integer, a: str | int | float | Real, b: str | int | float | Real = None)¶
Represents INP sp elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Spdtl Class¶
Ssr Class¶
Ssw Class¶
- class pymcnp.inp.Ssw(surfaces: list[str] | list[int] | list[Integer], cells: list[str] | list[int] | list[Integer] = None, options: list[str] | list[SswOption] = None)¶
Represents INP ssw cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Stop Class¶
- class pymcnp.inp.Stop(options: list[str] | list[StopOption] = None)¶
Represents INP stop cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
T_0 Class¶
- class pymcnp.inp.T_0(suffix: str | int | Integer, bounds: list[str] | list[float] | list[Real], nt: str | String = None, c: str | String = None)¶
Represents INP t elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property c: String¶
Notation to make bin values cumulative
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
T_1 Class¶
- class pymcnp.inp.T_1(suffix: str | int | Integer, options: list[str] | list[TOption_1])¶
Represents INP t elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Talnp Class¶
- class pymcnp.inp.Talnp(tallies: list[str] | list[int] | list[Integer] = None)¶
Represents INP talnp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Thtme Class¶
- class pymcnp.inp.Thtme(times: list[str] | list[float] | list[Real])¶
Represents INP thtme cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tf_0 Class¶
- class pymcnp.inp.Tf_0(suffix: str | int | Integer, if1: str | int | Integer = None, id1: str | int | Integer = None, iu1: str | int | Integer = None, is1: str | int | Integer = None, im1: str | int | Integer = None, ic1: str | int | Integer = None, ie1: str | int | Integer = None, it1: str | int | Integer = None)¶
Represents INP tf elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property id1: Integer¶
Total, flagged, or un-collided bin number
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Tf_1 Class¶
- class pymcnp.inp.Tf_1(suffix: str | int | Integer, if1: str | int | Integer = None, id1: str | int | Integer = None, iu1: str | int | Integer = None, is1: str | int | Integer = None, im1: str | int | Integer = None, ic1: str | int | Integer = None, ie1: str | int | Integer = None, it1: str | int | Integer = None, if2: str | int | Integer = None, id2: str | int | Integer = None, iu2: str | int | Integer = None, is2: str | int | Integer = None, im2: str | int | Integer = None, ic2: str | int | Integer = None, ie2: str | int | Integer = None, it2: str | int | Integer = None)¶
Represents INP tf elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property id1: Integer¶
Total, flagged, or un-collided bin number
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property id2: Integer¶
Total, flagged, or un-collided bin number
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property if1: Integer¶
Cell, surface, or detector bin number
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Tm Class¶
- class pymcnp.inp.Tm(suffix: str | int | Integer, multipliers: list[str] | list[float] | list[Real])¶
Represents INP tm cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Totnu Class¶
Tr_0 Class¶
- class pymcnp.inp.Tr_0(suffix: str | int | Integer, x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, xx: str | int | float | Real, xy: str | int | float | Real, xz: str | int | float | Real, yx: str | int | float | Real, yy: str | int | float | Real, yz: str | int | float | Real, zx: str | int | float | Real, zy: str | int | float | Real, zz: str | int | float | Real, prefix: str | String = None, system: str | int | Integer = None)¶
Represents INP tr elements variation #0.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tr_1 Class¶
- class pymcnp.inp.Tr_1(suffix: str | int | Integer, x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, xx: str | int | float | Real, xy: str | int | float | Real, xz: str | int | float | Real, yx: str | int | float | Real, yy: str | int | float | Real, yz: str | int | float | Real, prefix: str | String = None, system: str | int | Integer = None)¶
Represents INP tr elements variation #1.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tr_2 Class¶
- class pymcnp.inp.Tr_2(suffix: str | int | Integer, x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, xx: str | int | float | Real, xy: str | int | float | Real, xz: str | int | float | Real, yx: str | int | float | Real, yy: str | int | float | Real, prefix: str | String = None, system: str | int | Integer = None)¶
Represents INP tr elements variation #2.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tr_3 Class¶
- class pymcnp.inp.Tr_3(suffix: str | int | Integer, x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, xx: str | int | float | Real, xy: str | int | float | Real, xz: str | int | float | Real, prefix: str | String = None, system: str | int | Integer = None)¶
Represents INP tr elements variation #3.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tr_4 Class¶
- class pymcnp.inp.Tr_4(suffix: str | int | Integer, x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, prefix: str | String = None, system: str | int | Integer = None)¶
Represents INP tr elements variation #4.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tropt Class¶
- class pymcnp.inp.Tropt(options: list[str] | list[TroptOption] = None)¶
Represents INP tropt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Tsplt Class¶
- class pymcnp.inp.Tsplt(designator: str | Designator, ratio_1: str | int | float | Real = None, time_1: str | int | float | Real = None, ratio_2: str | int | float | Real = None, time_2: str | int | float | Real = None, ratio_3: str | int | float | Real = None, time_3: str | int | float | Real = None, ratio_4: str | int | float | Real = None, time_4: str | int | float | Real = None, ratio_5: str | int | float | Real = None, time_5: str | int | float | Real = None, ratio_6: str | int | float | Real = None, time_6: str | int | float | Real = None, ratio_7: str | int | float | Real = None, time_7: str | int | float | Real = None, ratio_8: str | int | float | Real = None, time_8: str | int | float | Real = None, ratio_9: str | int | float | Real = None, time_9: str | int | float | Real = None, ratio_10: str | int | float | Real = None, time_10: str | int | float | Real = None, ratio_11: str | int | float | Real = None, time_11: str | int | float | Real = None, ratio_12: str | int | float | Real = None, time_12: str | int | float | Real = None, ratio_13: str | int | float | Real = None, time_13: str | int | float | Real = None, ratio_14: str | int | float | Real = None, time_14: str | int | float | Real = None, ratio_15: str | int | float | Real = None, time_15: str | int | float | Real = None, ratio_16: str | int | float | Real = None, time_16: str | int | float | Real = None, ratio_17: str | int | float | Real = None, time_17: str | int | float | Real = None, ratio_18: str | int | float | Real = None, time_18: str | int | float | Real = None, ratio_19: str | int | float | Real = None, time_19: str | int | float | Real = None, ratio_20: str | int | float | Real = None, time_20: str | int | float | Real = None)¶
Represents INP tsplt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_10: Real¶
Splitting/roulette ratio #10
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_11: Real¶
Splitting/roulette ratio #11
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_12: Real¶
Splitting/roulette ratio #12
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_13: Real¶
Splitting/roulette ratio #13
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_14: Real¶
Splitting/roulette ratio #14
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_15: Real¶
Splitting/roulette ratio #15
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_16: Real¶
Splitting/roulette ratio #16
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_17: Real¶
Splitting/roulette ratio #17
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_18: Real¶
Splitting/roulette ratio #18
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property ratio_19: Real¶
Splitting/roulette ratio #19
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
U Class¶
Unc Class¶
- class pymcnp.inp.Unc(designator: str | Designator, settings: list[str] | list[int] | list[Integer])¶
Represents INP unc cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data option particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Uran Class¶
- class pymcnp.inp.Uran(transformations: list[str] | list[Stochastic])¶
Represents INP uran cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Var Class¶
Void Class¶
- class pymcnp.inp.Void(numbers: list[str] | list[int] | list[Integer] = None)¶
Represents INP void cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Vol Class¶
- class pymcnp.inp.Vol(volumes: list[str] | list[float] | list[Real], no: str | String = None)¶
Represents INP vol cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
Wwe Class¶
- class pymcnp.inp.Wwe(designator: str | Designator, bounds: list[str] | list[float] | list[Real])¶
Represents INP wwe cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwg Class¶
- class pymcnp.inp.Wwg(tally: str | int | Integer, cell: str | int | Integer, lower: str | int | float | Real, setting: str | int | Integer = None)¶
Represents INP wwg cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property cell: Integer¶
Cell-based or mesh-based weight window generator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property lower: Real¶
Value of the generated lower weight-window bound for cell
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwge Class¶
- class pymcnp.inp.Wwge(designator: str | Designator, bounds: list[str] | list[float] | list[Real])¶
Represents INP wwge cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bounds: _Tuple¶
Upper energy bound for weight-window group to be generated
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwgt Class¶
- class pymcnp.inp.Wwgt(designator: str | Designator, bounds: list[str] | list[float] | list[Real])¶
Represents INP wwgt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property bounds: _Tuple¶
Upper time bound for weight-window group to be generated
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwn Class¶
- class pymcnp.inp.Wwn(suffix: str | int | Integer, designator: str | Designator, bounds: list[str] | list[float] | list[Real])¶
Represents INP wwn cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwp Class¶
- class pymcnp.inp.Wwp(designator: str | Designator, wupn: str | int | float | Real = None, wsurvn: str | int | float | Real = None, mxspln: str | int | float | Real = None, mwhere: str | int | Integer = None, switchn: str | int | float | Real = None, mtime: str | int | Integer = None, wnrom: str | int | float | Real = None, etsplt: str | int | Integer = None, wu: str | int | float | Real = None, nmfp: str | int | float | Real = None)¶
Represents INP wwp cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property etsplt: Integer¶
ESLPT & TSPLT split/roulette on/off
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property mtime: Integer¶
Energy/time-dependent window setting
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property mwhere: Integer¶
Controls where to check a particle’s weight
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property mxspln: Real¶
Maximum number of integer splits
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property nmfp: Real¶
Limits the maximum lower weight-window bound for any particle, energy, or time
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property switchn: Real¶
Controls where to get the lower weight-window bounds
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property wnrom: Real¶
Weight-window normalization factor
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
- property wsurvn: Real¶
Multiplier to define the maximum Russian roulette survival weight within the window
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Wwt Class¶
- class pymcnp.inp.Wwt(designator: str | Designator, bounds: list[str] | list[float] | list[Real])¶
Represents INP wwt cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
- property designator: Designator¶
Data card particle designator
- Raises:
InpError – SEMANTICS_CARD.
TypeError –
Xs Class¶
- class pymcnp.inp.Xs(suffix: str | int | Integer, weight_ratios: list[str] | list[Substance])¶
Represents INP xs cards.
- classmethod from_mcnp(source: str)¶
Generates Card from INP.
- Parameters:
source – Card for INP.
- Returns:
Card.
- Raises:
InpError – SYNTAX_CARD.
- to_mcnp()¶
Generates INP from Option.
- Returns:
INP for Option.
CommentClass¶Represents INP comment cards.
Generates Card from INP.
source – Card for INP.
Card.
InpError – SYNTAX_CARD.
Generates INP from Comment.
INP comment card.
Comment text.
InpError – SEMANTICS_CARD.
TypeError –