afedynitch / pyENDF6

Python tools for reading ENDF6 files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyENDF6

This python module provides a minimal set of function for reading tabulated data from ENDF nuclear data files (see https://www-nds.iaea.org/public/endf/).

Note: I won't further develop this script, since I'm not working with ENDF files anymore.

Example

import ENDF6
f = open('C006.endf')
lines = f.readlines()
sec = ENDF6.find_section(lines, MF=3, MT=3)  # total cross-section
x, y = ENDF6.read_table(sec)

figure()
plot(x, y)
xlabel('Photon energy [eV]')
ylabel('Cross-section [barn]')
show()

About

Python tools for reading ENDF6 files

License:MIT License


Languages

Language:Python 100.0%