The docstring of the OpenMCSettings class currently says that power should be given in MeV/sec-cm. The same units are mentioned in scripts/example_run.py as well. I'm really not understanding where the cm comes from there. Taking a look at Operator.unpack_tallies_and_normalize, it looks like the energy per source particle is calculated in the local variable power:
sum(reaction rates [rx / source particle] * Q [eV/rx] * 1e-6 [MeV/eV]) = [MeV/source particle]
Then the reaction rates are multipled by settings.power/power and divided by the number density which would give:
reaction rate [rx/source particle] * settings.power [MeV/sec-cm] / power [MeV/source particle] / number [atoms] = [rx/sec-cm]
Based on this, it seems that the units on OpenMCSettings.power are really MeV/sec (which seems more intuitive to me) rather than MeV/sec-cm. Am I missing something here?
Along the same lines, I would propose that we change settings.power to simply use Watts rather than whatever it currently is. Every MC depletion code I've seen uses W or MW, so I think it would be best to be consistent.
The docstring of the
OpenMCSettingsclass currently says that power should be given in MeV/sec-cm. The same units are mentioned inscripts/example_run.pyas well. I'm really not understanding where the cm comes from there. Taking a look atOperator.unpack_tallies_and_normalize, it looks like the energy per source particle is calculated in the local variablepower:sum(reaction rates [rx / source particle] * Q [eV/rx] * 1e-6 [MeV/eV]) = [MeV/source particle]
Then the reaction rates are multipled by settings.power/power and divided by the number density which would give:
reaction rate [rx/source particle] * settings.power [MeV/sec-cm] / power [MeV/source particle] / number [atoms] = [rx/sec-cm]
Based on this, it seems that the units on
OpenMCSettings.powerare really MeV/sec (which seems more intuitive to me) rather than MeV/sec-cm. Am I missing something here?Along the same lines, I would propose that we change settings.power to simply use Watts rather than whatever it currently is. Every MC depletion code I've seen uses W or MW, so I think it would be best to be consistent.