pymcnp.inp.embed.matcell Subpackage

AST Classes

Entry Class

class pymcnp.inp.embed.matcell.Entry(material: str | int | Integer, cell: str | int | Integer)

Represents INP entry 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 cell: Integer

Geometry number

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property material: Integer

Material number

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError