pymcnp.ptrac.history Subpackage

Table of Contents

AST Classes

Event Class

class pymcnp.ptrac.history.Event(j_line: J_0 | J_1 | J_2 | J_3 | J_4 | J_5 | J_6 | J_7, p_line: P_0 | P_1)

Represents PTRAC history block events.

j_line

Event j-line.

p_line

Event p-line.

from_mcnp()

Generates Event from PTRAC.

Parameters:

source – PTRAC for Event.

Returns:

Event.

Raises:

PtracError – SYNTAX_LINE.

to_mcnp()

Generates PTRAC from Event.

Returns:

PTRAC for Event.

event subpackage

I Class

class pymcnp.ptrac.history.I(nps: Integer, event_type: EventType, number: Integer = None, tfc: Real = None)

Represents PTRAC history block I lines.

nps

I nps.

event_type

I first event type.

number

Cell/surface/tally number.

tfc

TFC bin tally.

from_mcnp()

Generates I from PTRAC.

Parameters:

source – PTRAC for I.

Returns:

I.

Raises:

PtracError – SYNTAX_LINE.

to_mcnp()

Generates PTRAC from I.

Returns:

PTRAC for I.