pymcnp.inp.dxt Subpackage

AST Classes

Shell Class

class pymcnp.inp.dxt.Shell(x: str | int | float | Real, y: str | int | float | Real, z: str | int | float | Real, inner_radius: str | int | Integer, outer_radius: str | int | Integer)

Represents INP shell elements.

classmethod from_mcnp(source: str)

Generates Entry from INP.

Parameters:

sourceEntry for INP.

Returns:

Entry.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Entry.

Returns:

INP for Entry.

property inner_radius: Integer

Inner sphere radius

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property outer_radius: Integer

Outer sphere radius

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property x: Real

Vector x coordinate

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property y: Real

Vector y coordinate

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property z: Real

Vector z coordinate

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError