pymcnp.inp.f_1 Subpackage

AST Classes

Sphere Class

class pymcnp.inp.f_1.Sphere(x: str | int | float | Real, y: str | int | float | Real, z: str | int | Integer, ro: str | int | Integer)

Represents INP sphere 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 ro: Integer

Sphere exclusion 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: Integer

Vector z coordinate

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError