diff --git a/mgxs-part-ii.ipynb b/mgxs-part-ii.ipynb index e6c458c..a32106c 100644 --- a/mgxs-part-ii.ipynb +++ b/mgxs-part-ii.ipynb @@ -383,7 +383,8 @@ " License | https://docs.openmc.org/en/latest/license.html\n", " Version | 0.13.1\n", " Git SHA1 | 33bc948f4b855c037975f16d16091fe4ecd12de3\n", - " Date/Time | 2022-10-04 12:38:13\n", + " Date/Time | 2022-10-05 23:55:59\n", + " MPI Processes | 1\n", " OpenMP Threads | 2\n", "\n", " Reading settings XML file...\n", @@ -458,100 +459,100 @@ " 48/1 1.22858 1.22190 +/- 0.00218\n", " 49/1 1.20952 1.22158 +/- 0.00214\n", " 50/1 1.20497 1.22117 +/- 0.00213\n", - " Triggers unsatisfied, max unc./thresh. is 1.258443881396485 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.2584438813928658 for flux in tally\n", " 53\n", " The estimated number of batches is 74\n", " Creating state point statepoint.050.h5...\n", " 51/1 1.22506 1.22126 +/- 0.00208\n", - " Triggers unsatisfied, max unc./thresh. is 1.2360657756715019 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.2360657756693463 for flux in tally\n", " 53\n", " The estimated number of batches is 73\n", " 52/1 1.22892 1.22144 +/- 0.00204\n", - " Triggers unsatisfied, max unc./thresh. is 1.2066960139701686 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.206696013966578 for flux in tally\n", " 53\n", " The estimated number of batches is 72\n", " 53/1 1.20425 1.22104 +/- 0.00203\n", - " Triggers unsatisfied, max unc./thresh. is 1.179403356279039 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.1794033562761703 for flux in tally\n", " 53\n", " The estimated number of batches is 70\n", " 54/1 1.18761 1.22028 +/- 0.00212\n", - " Triggers unsatisfied, max unc./thresh. is 1.174509036327948 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.1745090363258377 for flux in tally\n", " 53\n", " The estimated number of batches is 71\n", " 55/1 1.21624 1.22019 +/- 0.00208\n", - " Triggers unsatisfied, max unc./thresh. is 1.1488291965006945 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.1488291964971802 for flux in tally\n", " 53\n", " The estimated number of batches is 70\n", " 56/1 1.22056 1.22020 +/- 0.00203\n", - " Triggers unsatisfied, max unc./thresh. is 1.1253755542270594 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.1253755542228503 for flux in tally\n", " 53\n", " The estimated number of batches is 69\n", " 57/1 1.22213 1.22024 +/- 0.00199\n", - " Triggers unsatisfied, max unc./thresh. is 1.1013090664481884 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.1013090664425782 for flux in tally\n", " 53\n", " The estimated number of batches is 68\n", " 58/1 1.23192 1.22049 +/- 0.00196\n", - " Triggers unsatisfied, max unc./thresh. is 1.0814142069510033 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0814142069475086 for flux in tally\n", " 53\n", " The estimated number of batches is 67\n", " 59/1 1.23142 1.22071 +/- 0.00193\n", - " Triggers unsatisfied, max unc./thresh. is 1.0688144272740103 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0688144272705478 for flux in tally\n", " 53\n", " The estimated number of batches is 66\n", " 60/1 1.23744 1.22104 +/- 0.00192\n", - " Triggers unsatisfied, max unc./thresh. is 1.0845694915767077 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0845694915740336 for flux in tally\n", " 53\n", " The estimated number of batches is 69\n", " 61/1 1.24681 1.22155 +/- 0.00195\n", - " Triggers unsatisfied, max unc./thresh. is 1.0650160561431934 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0650160561418593 for flux in tally\n", " 53\n", " The estimated number of batches is 68\n", " 62/1 1.23159 1.22174 +/- 0.00192\n", - " Triggers unsatisfied, max unc./thresh. is 1.062883546252306 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0628835462503399 for flux in tally\n", " 53\n", " The estimated number of batches is 69\n", " 63/1 1.21588 1.22163 +/- 0.00189\n", - " Triggers unsatisfied, max unc./thresh. is 1.0440750211709433 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0440750211689802 for flux in tally\n", " 53\n", " The estimated number of batches is 68\n", " 64/1 1.21867 1.22158 +/- 0.00186\n", - " Triggers unsatisfied, max unc./thresh. is 1.0258844139300165 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0258844139280563 for flux in tally\n", " 53\n", " The estimated number of batches is 67\n", " 65/1 1.22410 1.22162 +/- 0.00182\n", - " Triggers unsatisfied, max unc./thresh. is 1.0384126882352387 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.038412688234605 for flux in tally\n", " 53\n", " The estimated number of batches is 70\n", " 66/1 1.20786 1.22138 +/- 0.00181\n", - " Triggers unsatisfied, max unc./thresh. is 1.0213633609662338 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0213633609643367 for flux in tally\n", " 53\n", " The estimated number of batches is 69\n", " 67/1 1.21064 1.22119 +/- 0.00178\n", - " Triggers unsatisfied, max unc./thresh. is 1.0191822472678496 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.019182247265982 for flux in tally\n", " 53\n", " The estimated number of batches is 70\n", " 68/1 1.23857 1.22149 +/- 0.00178\n", - " Triggers unsatisfied, max unc./thresh. is 1.012860968303348 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0128609683027328 for flux in tally\n", " 53\n", " The estimated number of batches is 70\n", " 69/1 1.21603 1.22139 +/- 0.00175\n", - " Triggers unsatisfied, max unc./thresh. is 1.011310730467471 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0113107304662599 for flux in tally\n", " 53\n", " The estimated number of batches is 71\n", " 70/1 1.19730 1.22099 +/- 0.00177\n", - " Triggers unsatisfied, max unc./thresh. is 1.025023774534994 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.025023774532644 for flux in tally\n", " 53\n", " The estimated number of batches is 74\n", " 71/1 1.22459 1.22105 +/- 0.00174\n", - " Triggers unsatisfied, max unc./thresh. is 1.0084011441774638 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0084011441757024 for flux in tally\n", " 53\n", " The estimated number of batches is 73\n", " 72/1 1.24564 1.22145 +/- 0.00176\n", - " Triggers unsatisfied, max unc./thresh. is 1.0083223109546262 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0083223109528934 for flux in tally\n", " 53\n", " The estimated number of batches is 74\n", " 73/1 1.21948 1.22142 +/- 0.00173\n", - " Triggers unsatisfied, max unc./thresh. is 1.0051824390044617 for flux in tally\n", + " Triggers unsatisfied, max unc./thresh. is 1.0051824390021815 for flux in tally\n", " 53\n", " The estimated number of batches is 74\n", " 74/1 1.20923 1.22123 +/- 0.00171\n", @@ -560,21 +561,21 @@ "\n", " =======================> TIMING STATISTICS <=======================\n", "\n", - " Total time for initialization = 6.5906e-01 seconds\n", - " Reading cross sections = 6.5113e-01 seconds\n", - " Total time in simulation = 2.8372e+02 seconds\n", - " Time in transport only = 2.8357e+02 seconds\n", - " Time in inactive batches = 1.4161e+01 seconds\n", - " Time in active batches = 2.6956e+02 seconds\n", - " Time synchronizing fission bank = 7.3528e-02 seconds\n", - " Sampling source sites = 5.6344e-02 seconds\n", - " SEND/RECV source sites = 1.7125e-02 seconds\n", - " Time accumulating tallies = 8.9480e-03 seconds\n", - " Time writing statepoints = 1.7131e-02 seconds\n", - " Total time for finalization = 6.5114e-03 seconds\n", - " Total time elapsed = 2.8444e+02 seconds\n", - " Calculation Rate (inactive) = 7061.79 particles/second\n", - " Calculation Rate (active) = 2374.27 particles/second\n", + " Total time for initialization = 1.0770e-01 seconds\n", + " Reading cross sections = 1.0300e-01 seconds\n", + " Total time in simulation = 2.9592e+01 seconds\n", + " Time in transport only = 2.9528e+01 seconds\n", + " Time in inactive batches = 1.8603e+00 seconds\n", + " Time in active batches = 2.7732e+01 seconds\n", + " Time synchronizing fission bank = 4.2199e-02 seconds\n", + " Sampling source sites = 2.5148e-02 seconds\n", + " SEND/RECV source sites = 1.6948e-02 seconds\n", + " Time accumulating tallies = 1.1797e-03 seconds\n", + " Time writing statepoints = 8.0299e-03 seconds\n", + " Total time for finalization = 1.1328e-03 seconds\n", + " Total time elapsed = 2.9709e+01 seconds\n", + " Calculation Rate (inactive) = 53753.6 particles/second\n", + " Calculation Rate (active) = 23078.2 particles/second\n", "\n", " ============================> RESULTS <============================\n", "\n", @@ -1694,20 +1695,12 @@ "openmoc keff = 1.218846\n", "bias [pcm]: -319.8\n" ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/pshriwise/.pyenv/versions/3.9.1/lib/python3.9/site-packages/openmc/statepoint.py:277: FutureWarning: The 'k_combined' property has been renamed to 'keff' and will be removed in a future version of OpenMC.\n", - " warnings.warn(\n" - ] } ], "source": [ "# Print report of keff and bias with OpenMC\n", "openmoc_keff = solver.getKeff()\n", - "openmc_keff = sp.k_combined.n\n", + "openmc_keff = sp.keff.n\n", "bias = (openmoc_keff - openmc_keff) * 1e5\n", "\n", "print('openmc keff = {0:1.6f}'.format(openmc_keff))\n", @@ -1715,6 +1708,13 @@ "print('bias [pcm]: {0:1.1f}'.format(bias))" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {}, @@ -2532,7 +2532,7 @@ "source": [ "# Print report of keff and bias with OpenMC\n", "openmoc_keff = solver.getKeff()\n", - "openmc_keff = sp.k_combined.n\n", + "openmc_keff = sp.keff.n\n", "bias = (openmoc_keff - openmc_keff) * 1e5\n", "\n", "print('openmc keff = {0:1.6f}'.format(openmc_keff))\n", @@ -2540,6 +2540,13 @@ "print('bias [pcm]: {0:1.1f}'.format(bias))" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {}, diff --git a/mgxs-part-iii.ipynb b/mgxs-part-iii.ipynb index 778bbc8..127ba26 100644 --- a/mgxs-part-iii.ipynb +++ b/mgxs-part-iii.ipynb @@ -621,7 +621,8 @@ " License | https://docs.openmc.org/en/latest/license.html\n", " Version | 0.13.1\n", " Git SHA1 | 33bc948f4b855c037975f16d16091fe4ecd12de3\n", - " Date/Time | 2022-10-04 12:49:47\n", + " Date/Time | 2022-10-05 23:45:30\n", + " MPI Processes | 1\n", " OpenMP Threads | 2\n", "\n", " Reading settings XML file...\n", @@ -701,21 +702,21 @@ "\n", " =======================> TIMING STATISTICS <=======================\n", "\n", - " Total time for initialization = 7.0587e-01 seconds\n", - " Reading cross sections = 6.9497e-01 seconds\n", - " Total time in simulation = 2.6490e+02 seconds\n", - " Time in transport only = 2.6482e+02 seconds\n", - " Time in inactive batches = 1.8031e+01 seconds\n", - " Time in active batches = 2.4687e+02 seconds\n", - " Time synchronizing fission bank = 5.0873e-02 seconds\n", - " Sampling source sites = 3.9332e-02 seconds\n", - " SEND/RECV source sites = 1.1498e-02 seconds\n", - " Time accumulating tallies = 4.3525e-03 seconds\n", - " Time writing statepoints = 6.7551e-03 seconds\n", - " Total time for finalization = 2.3500e-06 seconds\n", - " Total time elapsed = 2.6569e+02 seconds\n", - " Calculation Rate (inactive) = 5546.05 particles/second\n", - " Calculation Rate (active) = 1620.29 particles/second\n", + " Total time for initialization = 1.2070e-01 seconds\n", + " Reading cross sections = 1.1526e-01 seconds\n", + " Total time in simulation = 2.9052e+01 seconds\n", + " Time in transport only = 2.9007e+01 seconds\n", + " Time in inactive batches = 2.2160e+00 seconds\n", + " Time in active batches = 2.6836e+01 seconds\n", + " Time synchronizing fission bank = 3.0553e-02 seconds\n", + " Sampling source sites = 1.9077e-02 seconds\n", + " SEND/RECV source sites = 1.1409e-02 seconds\n", + " Time accumulating tallies = 1.0753e-03 seconds\n", + " Time writing statepoints = 6.1566e-03 seconds\n", + " Total time for finalization = 1.0271e-05 seconds\n", + " Total time elapsed = 2.9182e+01 seconds\n", + " Calculation Rate (inactive) = 45126.1 particles/second\n", + " Calculation Rate (active) = 14905.4 particles/second\n", "\n", " ============================> RESULTS <============================\n", "\n", @@ -768,21 +769,12 @@ "cell_type": "code", "execution_count": 25, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/pshriwise/.pyenv/versions/3.9.1/lib/python3.9/site-packages/openmc/statepoint.py:277: FutureWarning: The 'k_combined' property has been renamed to 'keff' and will be removed in a future version of OpenMC.\n", - " warnings.warn(\n" - ] - } - ], + "outputs": [], "source": [ "# Initialize MGXS Library with OpenMC statepoint data\n", "mgxs_lib.load_from_statepoint(sp)\n", "# Retrieve OpenMC's k-effective value\n", - "openmc_keff = sp.k_combined.nominal_value" + "openmc_keff = sp.keff.nominal_value" ] }, {