pymcnp.inp.ssr Subpackage

AST Classes

Axs Class

class pymcnp.inp.ssr.Axs(cosines: list[str] | list[float] | list[Real])

Represents INP axs elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property cosines: _Tuple

Direction cosines defining

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Bcw Class

class pymcnp.inp.ssr.Bcw(radius: str | int | float | Real, zb: str | int | float | Real, ze: str | int | float | Real)

Represents INP bcw elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property radius: Real

Radius of cylindrical window

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property zb: Real

Bottom of cylindrical window

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property ze: Real

Top of cylindrical window

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Cel Class

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

Represents INP cel elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of cell from subset of cells on SSW card

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Col Class

class pymcnp.inp.ssr.Col(setting: str | int | Integer)

Represents INP col elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property setting: Integer

Collision option setting

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Ext Class

class pymcnp.inp.ssr.Ext(number: str | Distribution)

Represents INP ext elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property number: Distribution

Distribution number for baising sampling

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

New Class

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

Represents INP new elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of surface numbers to start run

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Old Class

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

Represents INP old elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property numbers: _Tuple

Tuple of surface numbers from subset of surfaces on SSW card

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Poa Class

class pymcnp.inp.ssr.Poa(angle: str | int | float | Real)

Represents INP poa elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property angle: Real

Angle within which particles accepeted for transport

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Psc Class

class pymcnp.inp.ssr.Psc(constant: str | int | float | Real)

Represents INP psc elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property constant: Real

Constant for approximation in PSC evaluation

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Pty Class

class pymcnp.inp.ssr.Pty(particles: list[str] | list[Designator])

Represents INP pty elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property particles: _Tuple

Tuple of designators

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Tr_0 Class

class pymcnp.inp.ssr.Tr_0(number: str | Distribution)

Represents INP tr elements variation #0.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property number: Distribution

Particle weight

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Tr_1 Class

class pymcnp.inp.ssr.Tr_1(number: str | int | Integer)

Represents INP tr elements variation #1.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property number: Integer

Particle weight

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

Wgt Class

class pymcnp.inp.ssr.Wgt(constant: str | int | float | Real)

Represents INP wgt elements.

classmethod from_mcnp(source: str)

Generates Option from INP.

Parameters:

sourceOption for INP.

Returns:

Option.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Option.

Returns:

INP for Option.

property constant: Real

Particle weight multiplier

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError