# He3 detector comparison to experimental results

**URL:** <https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799>\
**Category:** User Support\
**Created:** [March 3, 2023, 3:52pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799 "2023-03-03T15:52:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickschw](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@nickschw](https://openmc.discourse.group/u/nickschw)\
**Post date:** [March 3, 2023, 3:52pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/1 "2023-03-03T15:52:13Z")

</div>

Hello, I’m new to OpenMC, and I’ve got code running. I found [this](https://github.com/fusion-energy/neutronics-workshop/tree/main/tasks/task_17_detectors_examples) example of a He3 detector. I would like to compare this to experimental results from a neutron point source.

While the total neutron flux is important, the detector has some efficiency which may be unknown. My question is whether it’s possible to use openmc to compare directly to the experimental results? Perhaps with getting the reaction rate with He3 instead of just the neutron flux? Thank you!

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [March 3, 2023, 6:33pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/2 "2023-03-03T18:33:04Z")

</div>

That is a great example you found there 😁

I think this PR on pulse height tallies might be of interest to you

> <https://github.com/openmc-dev/openmc/pull/1881>
>
> Hi everyone,
> 
> this is my first git pull request. Further, I am not really expe…rienced in C++. I have done my best, but if I have made mistakes, I apologize.
> 
> For simulating gamma spectroscopy applications, a so-called \*\*pulse-height tally\*\* is needed. Here I would like to present the implementation of the pulse-height tally for \*\*photons\*\* in OpenMC. This tally calculates how much energy is deposited in a cell by an entire particle history (means a particle and its progenies). 
> 
> The basic idea is that the particle gets a new attribute pht\_storage\_ which is an array. In this array, the deposited energy of the particle for every cell is stored. After every Compton scattering, pair production, and photoelectric event, or the death of the particle since it falls under the cutoff energy, this array is updated. It also needs to take care to remove the energy of created secondary particles in these reactions (to prevent double counting). If the particle and all its progenies are dead, we take the value of the index of the analyzed cell for the pulse-height tally value.
> 
> There are currently several limitations. It only runs in a single thread mode, can not be combined with other tallies, and can only tally a single volume per simulation.
> 
> Details of an extensive validation and information on the tally can be found in the attached paper.
> 
> We validated the results with an analytical model in which only simplified versions of the reactions are modeled. For reproducing these results, I attach the two files (physics.cpp and run\_shuttleworth.py - since GitHub does not allow uploading these file endings, I changed them to txt). The physics.cpp file contains the simplified reaction versions. To run this version, it needs to be swapped with the physics.cpp file in OpenMC and after compiling, the script run\_shuttleworth.py will produce the analytical results.
> 
> Further, I attach a small example that can model the spectrum of a Cs-137 point source in a simple NaI scintilation detector. When you compare these simulation results with experimental data, you realize that the experimental data is broadened. I have an additional python script for doing this, but we could also discuss implementing it directly into the OpenMC code.
> 
> Looking forward to your feedback.
> 
> Best Christopher
> 
> 
> 
> \[Implementation and Validation of the Pulse-Height Tally in OpenMC.pdf\](https://github.com/openmc-dev/openmc/files/7188213/Implementation.and.Validation.of.the.Pulse-Height.Tally.in.OpenMC.pdf)
> \[example\_cs137.txt\](https://github.com/openmc-dev/openmc/files/7188216/example\_cs137.txt)
> \[physics.txt\](https://github.com/openmc-dev/openmc/files/7188217/physics.txt)
> \[run\_shuttleworth.txt\](https://github.com/openmc-dev/openmc/files/7188218/run\_shuttleworth.txt)

---

<div class="post-metadata">

**Author:** ![A66](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@A66](https://openmc.discourse.group/u/A66)\
**Post date:** [March 3, 2023, 11:48pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/3 "2023-03-03T23:48:54Z")

</div>

Hi,  
Can we also use these codes for gamma point sources?  
Thank u

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [March 4, 2023, 8:29am UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/4 "2023-03-04T08:29:28Z")

</div>

Yes gamma sources can be created and simulated.

Here is a minimal example for the same workshop

> <https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_04_make_sources/5_gamma_source_example.ipynb>

---

<div class="post-metadata">

**Author:** ![nickschw](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@nickschw](https://openmc.discourse.group/u/nickschw)\
**Post date:** [March 4, 2023, 8:05pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/5 "2023-03-04T20:05:21Z")

</div>

Wow I’m getting help straight from the source! I’ve read through the PR, and I see the brief discussion on applying the pulse height tally to neutrons. They mention that ‘absorption’ tally should be sufficient for neutron detectors.

I do agree that pulse height would be very interesting, but since He3 detectors simply provide count and don’t give spectroscopic data, the absorption rate would give the same results as an experiment. Am I thinking about that the right way?

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [March 4, 2023, 8:39pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/6 "2023-03-04T20:39:46Z")

</div>

I think absorption is a nice improvement to using flux, I’ve just updated the workshop accordingly.

@cp-f might be keen to comment on your last question @nickschw

---

<div class="post-metadata">

**Author:** ![A66](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@A66](https://openmc.discourse.group/u/A66)\
**Post date:** [March 5, 2023, 12:24pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/7 "2023-03-05T12:24:26Z")

</div>

Can I plot an energy-count plot for a gamma source?

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [March 5, 2023, 1:03pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/8 "2023-03-05T13:03:44Z")

</div>

If I have understood correctly then I think a tally with an EnergyFilter would be the closest thing I know of in the code. I would still recommend that PR with pulse height tally but perhaps an EnergyFilter is part of the way there

Scripts 2, 3 and 4 show use of such a filter to get a spectrum.

[neutronics-workshop/tasks/task\_07\_CSG\_cell\_tally\_spectra at main · fusion-energy/neutronics-workshop · GitHub](https://github.com/fusion-energy/neutronics-workshop/tree/main/tasks/task_07_CSG_cell_tally_spectra)

---

<div class="post-metadata">

**Author:** ![A66](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@A66](https://openmc.discourse.group/u/A66)\
**Post date:** [March 6, 2023, 12:16am UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/9 "2023-03-06T00:16:48Z")

</div>

And I want to use two sources in my simulation. I tried to add the 2nd source in this way, but it didn’t work. How can I add the 2nd source?  
[multiplesource.py](https://openmc.discourse.group/uploads/short-url/1ioFeiLL96YxYaspuDkfNu4adqk.py) (791 Bytes)

---

<div class="post-metadata">

**Author:** ![A66](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@A66](https://openmc.discourse.group/u/A66)\
**Post date:** [March 6, 2023, 2:07am UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/10 "2023-03-06T02:07:36Z")

</div>

I get this warning (" module ‘openmc’ has no attribute ‘TimeFilter’) when I want to run this code([neutronics-workshop/3\_time\_and\_energy\_filter\_tally.py at main · fusion-energy/neutronics-workshop · GitHub](https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_17_detectors_examples/3_time_and_energy_filter_tally.py)). How can I solve it?

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [March 6, 2023, 11:32am UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/11 "2023-03-06T11:32:46Z")

</div>

`TimeFilter` was introduced in openmc version 0.13.0. Perhaps you have an older version?

---

<div class="post-metadata">

**Author:** ![cp-f](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/cp-f/32/2266_2.png) [@cp-f](https://openmc.discourse.group/u/cp-f)\
**Post date:** [March 8, 2023, 3:17pm UTC](https://openmc.discourse.group/t/he3-detector-comparison-to-experimental-results/2799/12 "2023-03-08T15:17:41Z")

</div>

Hi,

the pulse-height tally is only necessary for the simulation of gamma detectors. For He3 neutron detectors, the absorption tally is sufficient.

It probably makes sense to take a look at this:  
[https://www.researchgate.net/publication/349455477\_Experimental\_validation\_of\_a\_He-3\_neutron\_detector\_Monte\_Carlo\_simulation\_model](https://www.researchgate.net/publication/349455477_Experimental_validation_of_a_He-3_neutron_detector_Monte_Carlo_simulation_model)

> The F4 tally of MCNP5 was used to obtain the neutron fluence rate (in neutrons per cm2-s), and the reaction rate (in reactions s−1) of the (n,p) reaction (Equation 1) which was estimated to be equal to the experimental neutron counts

I hope this helps a little.

Christopher
