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

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.

Comment Class

class pymcnp.inp.Comment(text: String = None)

Represents INP comment cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Comment.

Returns:

INP comment card.

property text: String

Comment text.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property density: Real

Cell density.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property geometry: Geometry

Cell geometry.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property material: Integer

Cell material.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property number: Integer

Cell number.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property options: _Tuple

Cell options.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

cell subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Like.

Returns:

INP cell card.

property cell: Integer

Base cell number.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property number: Integer

Cell number.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property options: _Tuple

Cell options.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

like subpackage

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:

sourceCard 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.

property number: Integer

Surface number.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property option: SurfaceOption

Surface option.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property prefix: String

Surface whitebody/reflecting flag.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property transform: Integer

Surface transform.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

surface subpackage

Act Class

class pymcnp.inp.Act(options: list[str] | list[ActOption] = None)

Represents INP act cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

act subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property areas: _Tuple

Tuple of surface areas

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property weight_ratios: _Tuple

Tuple of atomic weight ratios

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property bias_9: Real

Bias factor #9 for bremsstrahlung specturm

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property materials: _Tuple

Material to bias

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of BFLD map numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property kind: String

Magnetic field type

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

bfld subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Upper cosine bounds for bin

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property c: String

Notation to make bin values cumulative

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property t: String

Notation to provide totals

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tallies for problem cell numbers to flag

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Cosine bin multiplier to apply

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of COSY map numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property axsh: Integer

Horiztonal axis orientation

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property axsv: Integer

Vertical axis orientation

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property emaps: _Tuple

Tuple of operating beam energies

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property pre: Integer

Prefix number of the COSY map files

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Ctme Class

class pymcnp.inp.Ctme(tme: str | int | Integer)

Represents INP ctme cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property tme: Integer

Maximum amount of minutes for Monte Carlo calculation

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property energy_cutoff: Real

Lower energy cutoff

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property source_weight: Real

Minimum source weight

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_cutoff: Real

Time cutoff in shakes

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property weight_cutoff1: Real

Weight cutoff #1

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property weight_cutoff2: Real

Weight cutoff #2

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

dawwg subpackage

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:

sourceCard 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 x2: Integer

Debug print interval

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x20: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x21: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x22: Integer

Unsued

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 x25: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x26: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x27: Integer

Antiparticle promotion settings

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x28: Integer

Bank size

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x29: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x3: Integer

Lower history number inclusive limit for logging

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x30: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x31: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x32: Integer

GENXS behavior setting

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 x42: Integer

Model cross section 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 x47: Integer

Cosmic-rasy spectra setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x48: Integer

MCNP6 threading on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x49: Integer

Normal input checking on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x5: Integer

Maximnum number of events per history for logging

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x50: Integer

TFC priting setting

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 x56: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x57: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x58: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x59: Integer

Unused

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 x63: Integer

Unused

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 x68: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x69: Integer

LJA array size setting

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 x73: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x74: Integer

Unused

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 x80: Integer

Unused

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

property x90: Integer

Mximum number of terms for Goudsmit-Saunderson distribution

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x91: Integer

Minimum ROC curve count value

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x92: Integer

Maximum ROC curve count value

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x93: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x94: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x95: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x96: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x97: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x98: Integer

Unused

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x99: Integer

Unused

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property diagnostics: _Tuple

Detector diagnostic entries

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

dd subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property method: String

Interpolation method for energy table

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property values: _Tuple

Energy values

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property method: String

Interpolation method for dose function table

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property values: _Tuple

Dose function values

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

df_1 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zaids: _Tuple

Tuple of ZAID aliases

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Drxs Class

class pymcnp.inp.Drxs(zaids: list[str] | list[Zaid] = None)

Represents INP drxs cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property zaids: _Tuple

Tuple of ZAID aliases

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property js: _Tuple

Depdented source dependent variables

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property option: String

Dependent variable setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Ds_1.

Returns:

INP for Ds_1.

property ijs: _Tuple

Dependent source independent & dependent variables

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ds_1 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Ds_2.

Returns:

INP for Ds_2.

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property vss: _Tuple

Dependent source independent & dependent variables

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ds_2 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Ds_3.

Returns:

INP for Ds_3.

property distributions: _Tuple

Distribution numbers.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 probabilities: _Tuple

Probability of contribution to DXTRAN

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard 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

property spheres_1: Shell

DXTRAN spheres #1

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_10: Shell

DXTRAN spheres #10

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_2: Shell

DXTRAN spheres #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_3: Shell

DXTRAN spheres #3

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_4: Shell

DXTRAN spheres #4

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_5: Shell

DXTRAN spheres #5

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_6: Shell

DXTRAN spheres #6

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_7: Shell

DXTRAN spheres #7

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_8: Shell

DXTRAN spheres #8

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres_9: Shell

DXTRAN spheres #9

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property weight: Real

Minimum photon weight

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

dxt subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Upper energy bounds for bin

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property c: String

Notation to make bin values cumulative

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property nt: String

Notation to inhibit automatic totaling

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property cutoffs: _Tuple

Tuple of cell lower energy cutoffs

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Energy bin multiplier to apply

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Tuple of upper dose energy bounds

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Tuple of dose energy multipliers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Tuple of upper energy bounds

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

embed subpackage

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:

sourceCard 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 options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

embee subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Tuple of energy multipliers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Tuple of upper time bounds

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Tuple of time multipliers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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_1: Real

Splitting/roulette ratio #1

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

property ratio_2: Real

Splitting/roulette ratio #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_20: Real

Splitting/roulette ratio #20

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_3: Real

Splitting/roulette ratio #3

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_4: Real

Splitting/roulette ratio #4

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_5: Real

Splitting/roulette ratio #5

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_6: Real

Splitting/roulette ratio #6

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_7: Real

Splitting/roulette ratio #7

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_8: Real

Splitting/roulette ratio #8

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_9: Real

Splitting/roulette ratio #9

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:

sourceCard 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 stretching: _Tuple

Stretching direction for the cell

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:

sourceCard 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 prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property problems: _Tuple

Problem numbers of surface or cell

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property t: String

Notation to make bin values cumulative

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:

sourceCard 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 nd: String

Total/average specified surfaces/cells option

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property spheres: _Tuple

Detector points

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

f_1 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from F_2.

Returns:

INP for F_2.

property a: String

Letter

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property designator: Designator

Data card particle designator

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property nd: String

Total/average specified surfaces/cells option

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property rings: _Tuple

Detector points

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

f_2 subpackage

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:

sourceCard 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 prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property problems: _Tuple

Problem numbers of cell

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property t: String

Average tallies option

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:

sourceCard 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 prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property problems: _Tuple

Problem numbers of surface or cell

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property t: String

Notation to make bin values cumulative

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property info: String

Title for tally in output and MCTAL file

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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:

sourceCard 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 f1: Real

Source contributions on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f2: Real

Radial view of field

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f3: Real

Contribution offset setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ro: Real

Cylindrical grid exclusion radius

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x1: Real

Cylindrical grid center x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x2: Real

Reference direction x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y1: Real

Cylindrical grid center y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y2: Real

Reference direction y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z1: Real

Cylindrical grid center z-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z2: Real

Reference direction z-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Files Class

class pymcnp.inp.Files(creations: list[str] | list[File])

Represents INP files cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property creations: _Tuple

Files to create

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

files subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of universe numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 f1: Real

Cylindrical collimator radius

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f2: Real

Pinhole radius in the direction perpendiuclar to the reference direction

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f3: Real

Distance between pinhole and and detector grid

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ro: Real

Pinhole exclusion radius

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x1: Real

Pinhole center x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x2: Real

Reference direction x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y1: Real

Pinhole center y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y2: Real

Reference direction y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z1: Real

Pinhole center z-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z2: Real

Reference direction z-coordinate

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:

sourceCard 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 f1: Real

Source contributions on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f2: Real

Radial view of field

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property f3: Real

Contribution offset setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ro: Real

Rectangular grid exclusion radius

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x1: Real

Rectangular grid center x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x2: Real

Reference direction x-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y1: Real

Rectangular grid center y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y2: Real

Reference direction y-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z1: Real

Rectangular grid center z-coordinate

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z2: Real

Reference direction z-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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bins: String

Tally multiplier bins

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

fmesh subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zaid: Zaid

Nuclide for which data are entered

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

fmult subpackage

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:

sourceCard 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

property a8: String

Letters representing tally bin types

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard 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

property numbers: _Tuple

Signed problem number of a segmenting surface.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property t: String

Notation to provide totals

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property treatments: String

Tally special treatments

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property nt: String

Notation to inhibit automatic totaling

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property cells: _Tuple

Cell numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property lhist: Integer

Number of words written to a HISTP file

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property x_maximum: Real

Maximum x-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x_minimum: Real

Minimum x-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x_number: Integer

Number of mesh intervals in x direction

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y_maximum: Real

Maximum y-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y_minimum: Real

Minimum y-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y_number: Integer

Number of mesh intervals in y direction

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z_maximum: Real

Maximum z-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z_minimum: Real

Minimum z-value for mesh

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z_number: Integer

Number of mesh intervals in z 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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property intergers: _Tuple

Integer array

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 importances: _Tuple

Cell importance

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:

sourceCard 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

property nsrck: Integer

Number of source histories per cycle

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property rkk: Real

Initial guess of keff

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

kopts subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

kpert subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property sen: String

Type of sensitivity

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ksen subpackage

Ksrc Class

class pymcnp.inp.Ksrc(locations: list[str] | list[Location])

Represents INP ksrc cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property locations: _Tuple

Tuple of inital source points

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ksrc subpackage

Lat Class

class pymcnp.inp.Lat(type: list[str] | list[int] | list[Integer])

Represents INP lat cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property type: _Tuple

Tuple of lattice types

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 ielas: Integer

Elastic scattering controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property iexisa: Integer

Model choice controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ilaq: Integer

Choose light ion and nucleon physics modules

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ipreg: Integer

Pre-equilibrium model

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

property nexite: Integer

Subtract nuclear recoil energy to get excitation energy

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property noact: Integer

Particle transport settings

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property npidk: Integer

Cutoff interact/terminate control

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:

sourceCard 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

property flenb5: Real

Kinetic energy for nucleons ISABEL

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property flenb6: Real

Kinetic energy for appropriate model

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:

sourceCard 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

property stincl: Real

Rescaling factor of the cascade duration

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property v0incl: Real

Potential depth

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xfoisaincl: Real

Maximum impact parameter for Pauli blocking

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:

sourceCard 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

property nobale: Integer

Mass-energy balancing in evaporation setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property nofis: Integer

Fission 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:

sourceCard 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

property yzere: Real

Y0 parameter in level-density formula for Z≤70

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yzero: Real

Y0 parameter in level-density formula for Z≥71

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property lost1: Integer

Number of particles which can be lost before job termination

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property lost2: Integer

Maximum number of debug prints for lost particles.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property substances: _Tuple

Tuple of material constituents

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

m_0 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property abx: String

Material library

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

mesh subpackage

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:

sourceCard 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

property iplt: Integer

Weight windows usage indicator

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property mcal: String

Problem type setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property rim: Real

Generated weight windows compression limit

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property particles: _Tuple

Tuple of particle designators

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Mphys Class

class pymcnp.inp.Mphys(setting: str | String = None)

Represents INP mphys cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property setting: String

Physics models on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

mplot subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property identifiers: _Tuple

Corresponding S(α,β) identifier

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zaids: _Tuple

Zaid substitutions for particles

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property settings: _Tuple

Tuple of fission settings

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Notrn Class

class pymcnp.inp.Notrn

Represents INP notrn cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property npp: Integer

Total number of histories to run

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property npsmg: Integer

Number of history with direct source contributions

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Otfdb Class

class pymcnp.inp.Otfdb(zaids: list[str] | list[Zaid])

Represents INP otfdb cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property zaids: _Tuple

Identifiers for the broadening tables

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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 probabilities: _Tuple

Probability of contribution to DXTRAN

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard 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 options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

pert subpackage

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:

sourceCard 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 emax: Real

Upper limit for neutron energy

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property emcnf: Real

Analog energy limit

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

property iunr: Integer

Unresolved resonanace controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ngam: Integer

Secondary photon production 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:

sourceCard 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

property nocoh: Integer

Coherent Thomson scattering controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property nodop: Integer

Photon Doppler energy broadening 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:

sourceCard 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 emax: Real

Upper limit for electron energy

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 j: Real

Not used.

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property numb: Integer

Bremsstrahlung electron creation controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property rnok: Integer

Knock-on electron creation controls

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xnum: Real

Sampling of electron-induced x-rays 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:

sourceCard 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 drp: Real

Lower energy delta-ray cutoff

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ean: Real

Analog energy limit

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property efac: Real

Stopping power energy spacing

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property emax: Real

Upper proton energy limit

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

property recl: Real

Light ion recoil control

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property tabl: Real

Table-based physics cutoff

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:

sourceCard 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 drp: Real

Lower energy delta-ray cutoff

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property efac: Real

Stopping power energy spacing

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property emax: Real

Upper energy limit

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

property xmugam: Real

Probability for emitting k-shell photon

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xmunum: Integer

Selection of muonic x-ray 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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property biases: _Tuple

Biases for proton production

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

pikmt subpackage

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:

sourceCard 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

property ndmp: Integer

Maximum number of dumps on RUNTPE file

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ndp: Integer

Increment for printing tallies

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ptrac subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property weights: _Tuple

Relative threshold weight of photons produced at neutron collisions in cell

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

rand subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property floats: _Tuple

Floating point array

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property biases: _Tuple

Particle source biases

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property option: String

Bias kind setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property a: Real

Built-in function parameter #1

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property b: Real

Built-in function parameter #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property function: Integer

Built-in function designator

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property comment: _Tuple

Source comment

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property information: _Tuple

Area, volume, or mass by segmented, surface/cell

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

sdef subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tallies for problem surface numbers to flag

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property information: _Tuple

Particle source information

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property option: String

Information kind setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property information: _Tuple

Particle source information

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property option: String

Information kind setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property option: String

Probability kind setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property probabilities: _Tuple

Particle source probabilities

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property a: Real

Built-in function parameter #1

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property b: Real

Built-in function parameter #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property function: Integer

Built-in function designator

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Spdtl Class

class pymcnp.inp.Spdtl(keyword: str | String)

Represents INP spdtl cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property keyword: String

Keyword in {“force”, “off”}

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Ssr Class

class pymcnp.inp.Ssr(options: list[str] | list[SsrOption] = None)

Represents INP ssr cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ssr subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property cells: _Tuple

Problem cells

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property surfaces: _Tuple

Problem surfaces

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

ssw subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

stop subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Upper time bounds for bin

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property c: String

Notation to make bin values cumulative

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property nt: String

Notation to inhibit automatic totaling

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

t_1 subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property tallies: _Tuple

Tallies to exclude from output

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property times: _Tuple

Tuple of times when thermal temperatures are specified

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property ic1: Integer

Cosine bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property id1: Integer

Total, flagged, or un-collided bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ie1: Integer

Energy bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property if1: Integer

Cell, surface, or detector bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property im1: Integer

Multiplier bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property is1: Integer

Segment bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property it1: Integer

Time bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property iu1: Integer

User bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property ic1: Integer

Cosine bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ic2: Integer

Cosine bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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 ie1: Integer

Energy bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ie2: Integer

Energy bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property if1: Integer

Cell, surface, or detector bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property if2: Integer

Cell, surface, or detector bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property im1: Integer

Multiplier bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property im2: Integer

Multiplier bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property is1: Integer

Segment bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property is2: Integer

Segment bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property it1: Integer

Time bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property it2: Integer

Time bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property iu1: Integer

User bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property iu2: Integer

User bin number

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property multipliers: _Tuple

Time bin multiplier to apply

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Totnu Class

class pymcnp.inp.Totnu(no: str | String = None)

Represents INP totnu cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property no: String

Delay fission sampling on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property system: Integer

Coordinate system setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x: Real

Displacement vector x component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xx: Real

Rotation matrix xx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xy: Real

Rotation matrix xy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xz: Real

Rotation matrix xz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y: Real

Displacement vector y component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yx: Real

Rotation matrix yx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yy: Real

Rotation matrix yy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yz: Real

Rotation matrix yz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z: Real

Displacement vector z component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zx: Real

Rotation matrix zx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zy: Real

Rotation matrix zy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property zz: Real

Rotation matrix zz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property system: Integer

Coordinate system setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x: Real

Displacement vector x component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xx: Real

Rotation matrix xx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xy: Real

Rotation matrix xy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xz: Real

Rotation matrix xz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y: Real

Displacement vector y component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yx: Real

Rotation matrix yx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yy: Real

Rotation matrix yy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yz: Real

Rotation matrix yz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z: Real

Displacement vector z component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property system: Integer

Coordinate system setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x: Real

Displacement vector x component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xx: Real

Rotation matrix xx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xy: Real

Rotation matrix xy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xz: Real

Rotation matrix xz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y: Real

Displacement vector y component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yx: Real

Rotation matrix yx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property yy: Real

Rotation matrix yy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z: Real

Displacement vector z component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property system: Integer

Coordinate system setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x: Real

Displacement vector x component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xx: Real

Rotation matrix xx’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xy: Real

Rotation matrix xy’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property xz: Real

Rotation matrix xz’ component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y: Real

Displacement vector y component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z: Real

Displacement vector z component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property prefix: String

Star prefix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property system: Integer

Coordinate system setting

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property x: Real

Displacement vector x component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property y: Real

Displacement vector y component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property z: Real

Displacement vector z component

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

tropt subpackage

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:

sourceCard 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_1: Real

Splitting/roulette ratio #1

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

property ratio_2: Real

Splitting/roulette ratio #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_20: Real

Splitting/roulette ratio #20

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_3: Real

Splitting/roulette ratio #3

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_4: Real

Splitting/roulette ratio #4

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_5: Real

Splitting/roulette ratio #5

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_6: Real

Splitting/roulette ratio #6

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_7: Real

Splitting/roulette ratio #7

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_8: Real

Splitting/roulette ratio #8

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property ratio_9: Real

Splitting/roulette ratio #9

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_1: Real

Splitting/roulette time #1

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_10: Real

Splitting/roulette time #10

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_11: Real

Splitting/roulette time #11

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_12: Real

Splitting/roulette time #12

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_13: Real

Splitting/roulette time #13

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_14: Real

Splitting/roulette time #14

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_15: Real

Splitting/roulette time #15

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_16: Real

Splitting/roulette time #16

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_17: Real

Splitting/roulette time #17

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_18: Real

Splitting/roulette time #18

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_19: Real

Splitting/roulette time #19

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_2: Real

Splitting/roulette time #2

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_20: Real

Splitting/roulette time #20

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_3: Real

Splitting/roulette time #3

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_4: Real

Splitting/roulette time #4

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_5: Real

Splitting/roulette time #5

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_6: Real

Splitting/roulette time #6

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_7: Real

Splitting/roulette time #7

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_8: Real

Splitting/roulette time #8

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property time_9: Real

Splitting/roulette time #9

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

U Class

class pymcnp.inp.U(numbers: list[str] | list[int] | list[Integer])

Represents INP u cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of cell numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property settings: _Tuple

Tuple of uncollided secondary settings

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property transformations: _Tuple

Tuple of stochastic transformations

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

uran subpackage

Var Class

class pymcnp.inp.Var(options: list[str] | list[VarOption] = None)

Represents INP var cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property options: _Tuple

Dictionary of options

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

var subpackage

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of cell numbers

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property no: String

Volume calculation on/off

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property volumes: _Tuple

Tuple of cell volumes

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Upper energy/time bound

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard 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

property setting: Integer

Energy- or time-dependent weight window toggle

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property tally: Integer

Problem tally number

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:

sourceCard 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:

sourceCard 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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Lower weight bound

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property designator: Designator

Data card particle designator

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property suffix: Integer

Data card option suffix

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:

sourceCard 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

property wu: Real

Limits the maximum lower weight-window bound for any particle, energy, or time

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property wupn: Real

Multiplier to define the weight window upper limit

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property bounds: _Tuple

Upper time bound

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

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:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property suffix: Integer

Data card option suffix

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

property weight_ratios: _Tuple

Tuple of atomic weight ratios

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Za Class

class pymcnp.inp.Za(anything: str | String = None)

Represents INP za cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property anything: String

Any parameters

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Zb Class

class pymcnp.inp.Zb(anything: str | String = None)

Represents INP zb cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property anything: String

Any parameters

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Zc Class

class pymcnp.inp.Zc(anything: str | String = None)

Represents INP zc cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property anything: String

Any parameters

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError

Zd Class

class pymcnp.inp.Zd(anything: str | String = None)

Represents INP zd cards.

classmethod from_mcnp(source: str)

Generates Card from INP.

Parameters:

sourceCard for INP.

Returns:

Card.

Raises:

InpError – SYNTAX_CARD.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property anything: String

Any parameters

Raises:
  • InpError – SEMANTICS_CARD.

  • TypeError