Skip to content

Commit a5accb9

Browse files
committed
Cleaning things (I think).
1 parent 3866691 commit a5accb9

11 files changed

Lines changed: 1048 additions & 0 deletions

ChargedParticle.ipynb

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Charged-Particle\n",
8+
"\n",
9+
"These are materials that have a library type of one of the following:\n",
10+
"- `h`— incident hydrogen\n",
11+
"- `o`— incident deuteron\n",
12+
"- `r`— incident triton\n",
13+
"- `s`— incident helion/He-3\n",
14+
"- `a`— incident alpha \n",
15+
"\n",
16+
"## Listing\n",
17+
"To get a list of discrete-energy neutron data, execute the following cells. To execute, select the cell and press `CTRL-Enter`.\n",
18+
"## Columns\n",
19+
"The main columns shown for fast neutrons are:\n",
20+
"\n",
21+
"`ZAID`\n",
22+
": ZAID\n",
23+
"\n",
24+
"`AWR`\n",
25+
": atomic weight ratio\n",
26+
"\n",
27+
"`library`\n",
28+
": The collection of data tables making up a library of data\n",
29+
"\n",
30+
"`path`\n",
31+
": Relative path to where the actual data file is found\n",
32+
"\n",
33+
"`ZA`\n",
34+
": ZA of the target material\n",
35+
"\n",
36+
"`T(K)`\n",
37+
": The temperature (in Kelvin) of the material\n",
38+
"\n",
39+
"`Date`\n",
40+
": The date the data was processed. There is some *very* old data"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": null,
46+
"metadata": {},
47+
"outputs": [],
48+
"source": [
49+
"import listing\n",
50+
"XSDIR = listing.loadXSDIR()\n",
51+
"lib_type = ['h', 'o', 'r', 's', 'a']\n",
52+
"display = listing.DisplayData(XSDIR, lib_type)"
53+
]
54+
},
55+
{
56+
"cell_type": "markdown",
57+
"metadata": {},
58+
"source": [
59+
"To show the listing for a particular `ZA`, execute the `display` function which takes the `ZA` as an argument. If no `ZA` is given as an argument, *all* the entries will be displayed (and abbreviated) which is probably not what you want."
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": null,
65+
"metadata": {},
66+
"outputs": [],
67+
"source": [
68+
"ZA = 1001\n",
69+
"display()"
70+
]
71+
}
72+
],
73+
"metadata": {
74+
"kernelspec": {
75+
"display_name": "Python 3",
76+
"language": "python",
77+
"name": "python3"
78+
},
79+
"language_info": {
80+
"codemirror_mode": {
81+
"name": "ipython",
82+
"version": 3
83+
},
84+
"file_extension": ".py",
85+
"mimetype": "text/x-python",
86+
"name": "python",
87+
"nbconvert_exporter": "python",
88+
"pygments_lexer": "ipython3",
89+
"version": "3.8.5"
90+
}
91+
},
92+
"nbformat": 4,
93+
"nbformat_minor": 4
94+
}

ContinuousEnergyNeutron.ipynb

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Continuous-Energy Neutron Data\n",
8+
"This file will list the available data for incident, continuous energy, neutrons. These are materials that have a library type of `c` or `nc`.\n",
9+
"\n",
10+
"## Columns\n",
11+
"The main columns shown for fast neutrons are:\n",
12+
"\n",
13+
"`ZAID`\n",
14+
": ZAID\n",
15+
"\n",
16+
"`AWR`\n",
17+
": atomic weight ratio\n",
18+
"\n",
19+
"`library`\n",
20+
": The collection of data tables making up a library of data\n",
21+
"\n",
22+
"`path`\n",
23+
": Relative path to where the actual data file is found\n",
24+
"\n",
25+
"`ZA`\n",
26+
": ZA of the target material\n",
27+
"\n",
28+
"`T(K)`\n",
29+
": The temperature (in Kelvin) of the material\n",
30+
"\n",
31+
"`Date`\n",
32+
": The date the data was processed. There is some *very* old data\n",
33+
"\n",
34+
"`NE`\n",
35+
": The number of energies in the grid\n",
36+
"\n",
37+
"`Emax`\n",
38+
": The highest tabulated energy\n",
39+
"\n",
40+
"`GPD`\n",
41+
": Whether gamma production data is included in the file\n",
42+
"\n",
43+
"`nubar`\n",
44+
": Whether fission neutrons are tabulated. There are four possible values:\n",
45+
"\n",
46+
" - `no` No nubar data is given\n",
47+
" - `pr` Only prompt nubar is given \n",
48+
" - `tot` Only total nubar is given\n",
49+
" - `both` Both delayed and prompt nubar are given\n",
50+
" \n",
51+
" `CP`\n",
52+
" : Whether or not secondary charged-particle data are present\n",
53+
" \n",
54+
" `DN`\n",
55+
" : Whether or not delayed neutron data are present\n",
56+
" \n",
57+
" `UR`\n",
58+
" : Whether or not unresolved resonance data (probably tables) are present"
59+
]
60+
},
61+
{
62+
"cell_type": "markdown",
63+
"metadata": {},
64+
"source": [
65+
"## Listing\n",
66+
"To get a list of continuous-energy neutron data, execute the following cells. To execute, select the cell and press CTRL-Enter"
67+
]
68+
},
69+
{
70+
"cell_type": "code",
71+
"execution_count": null,
72+
"metadata": {},
73+
"outputs": [],
74+
"source": [
75+
"import listing\n",
76+
"XSDIR = listing.loadXSDIR()\n",
77+
"lib_type = ['c', 'nc']\n",
78+
"display = listing.DisplayData(XSDIR, lib_type)"
79+
]
80+
},
81+
{
82+
"cell_type": "markdown",
83+
"metadata": {},
84+
"source": [
85+
"To show the listing for a particular `ZA`, execute the `display` function which takes the `ZA` as an argument. If no `ZA` is given as an argument, *all* the entries will be displayed (and abbreviated) which is probably not what you want."
86+
]
87+
},
88+
{
89+
"cell_type": "code",
90+
"execution_count": null,
91+
"metadata": {},
92+
"outputs": [],
93+
"source": [
94+
"ZA = 5010\n",
95+
"display(ZA)"
96+
]
97+
},
98+
{
99+
"cell_type": "code",
100+
"execution_count": null,
101+
"metadata": {},
102+
"outputs": [],
103+
"source": [
104+
"plot(\"92235.00c\", mt=18)"
105+
]
106+
}
107+
],
108+
"metadata": {
109+
"kernelspec": {
110+
"display_name": "Python 3",
111+
"language": "python",
112+
"name": "python3"
113+
},
114+
"language_info": {
115+
"codemirror_mode": {
116+
"name": "ipython",
117+
"version": 3
118+
},
119+
"file_extension": ".py",
120+
"mimetype": "text/x-python",
121+
"name": "python",
122+
"nbconvert_exporter": "python",
123+
"pygments_lexer": "ipython3",
124+
"version": "3.8.5"
125+
}
126+
},
127+
"nbformat": 4,
128+
"nbformat_minor": 4
129+
}

DiscreteEnergy.ipynb

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Discrete-Energy Neutron Data\n",
8+
"\n",
9+
"These are materials that have a library type of `d`. \n",
10+
"\n",
11+
"## Listing\n",
12+
"To get a list of discrete-energy neutron data, execute the following cells. To execute, select the cell and press `CTRL-Enter`.\n",
13+
"## Columns\n",
14+
"The main columns shown for fast neutrons are:\n",
15+
"\n",
16+
"`ZAID`\n",
17+
": ZAID\n",
18+
"\n",
19+
"`AWR`\n",
20+
": atomic weight ratio\n",
21+
"\n",
22+
"`library`\n",
23+
": The collection of data tables making up a library of data\n",
24+
"\n",
25+
"`path`\n",
26+
": Relative path to where the actual data file is found\n",
27+
"\n",
28+
"`ZA`\n",
29+
": ZA of the target material\n",
30+
"\n",
31+
"`T(K)`\n",
32+
": The temperature (in Kelvin) of the material\n",
33+
"\n",
34+
"`Date`\n",
35+
": The date the data was processed. There is some *very* old data"
36+
]
37+
},
38+
{
39+
"cell_type": "code",
40+
"execution_count": null,
41+
"metadata": {},
42+
"outputs": [],
43+
"source": [
44+
"import listing\n",
45+
"XSDIR = listing.loadXSDIR()\n",
46+
"lib_type = 'd'\n",
47+
"display = listing.DisplayData(XSDIR, lib_type)"
48+
]
49+
},
50+
{
51+
"cell_type": "markdown",
52+
"metadata": {},
53+
"source": [
54+
"To show the listing for a particular `ZA`, execute the `display` function which takes the `ZA` as an argument. If no `ZA` is given as an argument, *all* the entries will be displayed (and abbreviated) which is probably not what you want."
55+
]
56+
},
57+
{
58+
"cell_type": "code",
59+
"execution_count": null,
60+
"metadata": {},
61+
"outputs": [],
62+
"source": [
63+
"ZA = 1001\n",
64+
"display(ZA)"
65+
]
66+
}
67+
],
68+
"metadata": {
69+
"kernelspec": {
70+
"display_name": "Python 3",
71+
"language": "python",
72+
"name": "python3"
73+
},
74+
"language_info": {
75+
"codemirror_mode": {
76+
"name": "ipython",
77+
"version": 3
78+
},
79+
"file_extension": ".py",
80+
"mimetype": "text/x-python",
81+
"name": "python",
82+
"nbconvert_exporter": "python",
83+
"pygments_lexer": "ipython3",
84+
"version": "3.8.5"
85+
}
86+
},
87+
"nbformat": 4,
88+
"nbformat_minor": 4
89+
}

0 commit comments

Comments
 (0)