Incorporating energy into score of scattering reaction rate

Hi everyone,

OpenMC score scattering rate as shown by equation 1 in the following image but i want result obtained by equation 2. I simply want to incorporate energy into scattering reaction rate (or equation 1), please let me know whether openMC has provision of it or not.

Best regards
Amna Zulfiqar

Hi Amna,

The score you’ve written there does not exist in OpenMC. However, it would be fairly straightforward to create a modified version of the code that changes the “scatter” score to tally what you want.

Best,
Paul

Hi Paul,

thank you very much Paul for always replying me on time, please tell me how to score required tally, i am a little bit confused about it.

Regards,
Amna Zulfiqar

If you make the following changes in tally.F90 then tallying the ‘scatter’ score should give you the quantity you desire:

diff --git a/src/tally.F90 b/src/tally.F90
index f7d8ab5…9d511ea 100644
— a/src/tally.F90
+++ b/src/tally.F90
@@ -105,6 +105,12 @@ contains
real(8) :: score ! analog tally score
real(8) :: E ! particle energy

  • if (t % estimator == ESTIMATOR_TRACKLENGTH) then
  • E = p % E
  • else
  • E = p % last_E
  • end if