Skip to content

Commit 2626a13

Browse files
committed
examples: fixed read_ptrac
1 parent 2fc668b commit 2626a13

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

examples/read_ptrac.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@
1313
print(ptrac)
1414

1515
# Reading PTRAC using ``from_mcnp``.
16-
ptrac = pymcnp.Ptrac.from_mcnp("""""")
16+
ptrac = pymcnp.Ptrac.from_mcnp(""" -1
17+
mcnp 6 05/08/13 07/14/25 11:39:04
18+
Sample Problem Input Deck
19+
1.4000E+01 1.0000E+00 1.0000E+02 0.0000E+00 0.0000E+00 1.0000E+00 1.0000E+00 0.0000E+00 1.0000E+00 1.0000E+04
20+
0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 1.0000E+00 1.0000E+00 0.0000E+00 0.0000E+00
21+
2 5 3 6 3 6 3 6 3 6 3 1 4 0 0 0 0 0 0 0
22+
1 2 7 8 9 17 18 20 21 22 7 8 10 11 17 18 20 21 22 7 8 12 13 17 18 20 21 22 7 8
23+
10 11 17 18 20 21 22 7 8 14 15 17 18 20 21 22
24+
1 1000
25+
3000 1 40 1 1
26+
0.00000E+00 -0.40000E+01 -0.25000E+01
27+
4000 2 7 0 3 3
28+
0.25424E+00 -0.37634E+01 -0.21403E+01
29+
4000 2 6000 51 3 3
30+
0.14362E+01 -0.26632E+01 -0.46819E+00
31+
4000 2 6000 2 3 3
32+
0.13310E+01 -0.10442E+01 0.70227E-02
33+
3000 2 6000 2 3 3
34+
0.34660E+01 -0.27738E+01 0.17002E+00
35+
5000 3 5 55 4 0
36+
0.50000E+01 -0.45169E+01 0.15231E+01
37+
9000 3 1 1 4 0
38+
0.50000E+01 -0.45169E+01 0.15231E+01
39+
9000 1 40 1 1
40+
0.00000E+00 -0.40000E+01 -0.25000E+01
41+
""")
1742

1843
print(ptrac)

0 commit comments

Comments
 (0)