Major refactoring of MGXS subclasses to eliminate tallies properties

This commit is contained in:
Will Boyd 2016-05-12 21:08:55 -04:00
parent 9e843de1bd
commit 19feb55e6d
13 changed files with 704 additions and 750 deletions

View file

@ -372,6 +372,7 @@
"\n",
"* `TotalXS`\n",
"* `TransportXS`\n",
"* `NuTransportXS`\n",
"* `AbsorptionXS`\n",
"* `CaptureXS`\n",
"* `FissionXS`\n",
@ -409,7 +410,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 26,
"metadata": {
"collapsed": false
},
@ -418,25 +419,27 @@
"data": {
"text/plain": [
"OrderedDict([('flux', Tally\n",
" \tID =\t10000\n",
" \tName =\t\n",
" \tFilters =\t\n",
" \t\tcell\t[1]\n",
" \t\tenergy\t[ 0.00000000e+00 6.25000000e-07 2.00000000e+01]\n",
" \tNuclides =\ttotal \n",
" \tScores =\t['flux']\n",
" \tEstimator =\ttracklength), ('absorption', Tally\n",
" \tID =\t10001\n",
" \tName =\t\n",
" \tFilters =\t\n",
" \t\tcell\t[1]\n",
" \t\tenergy\t[ 0.00000000e+00 6.25000000e-07 2.00000000e+01]\n",
" \tNuclides =\ttotal \n",
" \tScores =\t['absorption']\n",
" \tEstimator =\ttracklength)])"
"\tID =\t10012\n",
"\tName =\t\n",
"\tFilters =\t\n",
" \t\tcell\t[1]\n",
" \t\tenergy\t[ 0.00000000e+00 6.25000000e-07 2.00000000e+01]\n",
"\tNuclides =\ttotal \n",
"\tScores =\t[u'flux']\n",
"\tEstimator =\ttracklength\n",
"), ('absorption', Tally\n",
"\tID =\t10013\n",
"\tName =\t\n",
"\tFilters =\t\n",
" \t\tcell\t[1]\n",
" \t\tenergy\t[ 0.00000000e+00 6.25000000e-07 2.00000000e+01]\n",
"\tNuclides =\ttotal \n",
"\tScores =\t[u'absorption']\n",
"\tEstimator =\ttracklength\n",
")])"
]
},
"execution_count": 13,
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
@ -510,8 +513,8 @@
" Copyright: 2011-2016 Massachusetts Institute of Technology\n",
" License: http://openmc.readthedocs.io/en/latest/license.html\n",
" Version: 0.7.1\n",
" Git SHA1: 502482dcf630ee6e290c15b8535e6e850a351c88\n",
" Date/Time: 2016-05-10 20:52:19\n",
" Git SHA1: ae588276014a905ecc6e0967bf08288ecec5b550\n",
" Date/Time: 2016-05-12 20:41:27\n",
" MPI Processes: 1\n",
"\n",
" ===========================================================================\n",
@ -597,20 +600,20 @@
"\n",
" =======================> TIMING STATISTICS <=======================\n",
"\n",
" Total time for initialization = 5.3200E-01 seconds\n",
" Reading cross sections = 1.3300E-01 seconds\n",
" Total time in simulation = 2.3438E+01 seconds\n",
" Time in transport only = 2.3419E+01 seconds\n",
" Time in inactive batches = 2.9490E+00 seconds\n",
" Time in active batches = 2.0489E+01 seconds\n",
" Time synchronizing fission bank = 6.0000E-03 seconds\n",
" Sampling source sites = 3.0000E-03 seconds\n",
" SEND/RECV source sites = 1.0000E-03 seconds\n",
" Time accumulating tallies = 0.0000E+00 seconds\n",
" Total time for initialization = 4.7500E-01 seconds\n",
" Reading cross sections = 9.7000E-02 seconds\n",
" Total time in simulation = 1.8074E+01 seconds\n",
" Time in transport only = 1.8055E+01 seconds\n",
" Time in inactive batches = 2.1180E+00 seconds\n",
" Time in active batches = 1.5956E+01 seconds\n",
" Time synchronizing fission bank = 4.0000E-03 seconds\n",
" Sampling source sites = 4.0000E-03 seconds\n",
" SEND/RECV source sites = 0.0000E+00 seconds\n",
" Time accumulating tallies = 2.0000E-03 seconds\n",
" Total time for finalization = 0.0000E+00 seconds\n",
" Total time elapsed = 2.3985E+01 seconds\n",
" Calculation Rate (inactive) = 8477.45 neutrons/second\n",
" Calculation Rate (active) = 4880.67 neutrons/second\n",
" Total time elapsed = 1.8559E+01 seconds\n",
" Calculation Rate (inactive) = 11803.6 neutrons/second\n",
" Calculation Rate (active) = 6267.23 neutrons/second\n",
"\n",
" ============================> RESULTS <============================\n",
"\n",
@ -1121,7 +1124,7 @@
" <td>6.250000e-07</td>\n",
" <td>total</td>\n",
" <td>(((absorption / flux) / (total / flux)) + ((sc...</td>\n",
" <td>1</td>\n",
" <td>1.0</td>\n",
" <td>0.007763</td>\n",
" </tr>\n",
" <tr>\n",
@ -1131,7 +1134,7 @@
" <td>2.000000e+01</td>\n",
" <td>total</td>\n",
" <td>(((absorption / flux) / (total / flux)) + ((sc...</td>\n",
" <td>1</td>\n",
" <td>1.0</td>\n",
" <td>0.003739</td>\n",
" </tr>\n",
" </tbody>\n",
@ -1178,7 +1181,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
"version": "2.7.6"
}
},
"nbformat": 4,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long