Calculating Microdosimetry in MCNP

In summary, "Calculating Microdosimetry in MCNP" discusses the methods and techniques for assessing microdosimetric parameters using the MCNP (Monte Carlo N-Particle Transport Code) simulation software. It highlights the importance of microdosimetry in radiation therapy and radiation protection, detailing the steps involved in setting up simulations, modeling biological tissues, and analyzing energy deposition at microscopic scales. The paper emphasizes the accuracy and versatility of MCNP in calculating dose distributions, aiding in the optimization of radiation treatments and understanding radiobiological effects.
  • #1
Mingzhu
8
0
TL;DR Summary
hello,everyone!I simulated a neutron source to irradiate a tepc to obtain a microdosimetry spectrum. After confirming the geometric correctness, I changed the energy and other information of the source and found that the line energy of photons remained around 1e3kev/um, which should be around 10 in theory. I hope someone can help me to look the input files to check whether it is right?Need I to add any physical processes or cut off energy?
the code file is attached
 

Attachments

  • tepc_lnl_after.txt
    12.8 KB · Views: 49
Engineering news on Phys.org
  • #2
Ok, so this is a lineal energy calculation for a Tissue Equivalent Proportional Counter. I do not know how to do that but two things jump out at me

Density of propane is 1.85g/cc in the problem. At STP propane is 0.00188g/cc according to a quick search. Even liquid propane would be under 0.5g/cc. Your air also seems to be the mg/cc value not the g/cc value.

The neutron source has an energy of 58 MeV. That is unusual, but it may not be important.

Oh and welcome to PF @Mingzhu
 
Last edited:
  • #3
Hi,
For a TEPC irradiated with neutrons you must calculated the energy deposition of all secondary charged particules: protons, alpha, heavy ions and possibly deuterons, tritons. Electrons and photons can be neglected. For neutrons of 14 MeV a lineal energy of 10 keV/µm gives the maximum of the microdosimetric spectrum in y(dy) but for protons not photons!
In MCNP The lineal energy distribution for each secondary heavy charged particle is estimated using a F6 tally type for energy deposit coupled to a pulse height tally F8 for each heavy charged particle specie.
it is explain in this publication :
https://www.sciencedirect.com/science/article/abs/pii/S1350448719304755?via=ihub
You have a full example in § 1.VII of this referrence:
https://www.researchgate.net/public...lems_from_analytical_to_monte-carlo_solutions
for example a calculation with MCNP for 14 MeV neutrons gives (from Antoni et Bourgois radiation measurements vol. 128, spet 2019, 106189):

Présentation1.jpg

good luck
 
Last edited:
  • Informative
Likes Alex A
  • #4
PSRB191921 said:
Hi,
For a TEPC irradiated with neutrons you must calculated the energy deposition of all secondary charged particules: protons, alpha, heavy ions and possibly deuterons, tritons. Electrons and photons can be neglected. For neutrons of 14 MeV a lineal energy of 10 keV/µm gives the maximum of the microdosimetric spectrum in y(dy) but for protons not photons!
In MCNP The lineal energy distribution for each secondary heavy charged particle is estimated using a F6 tally type for energy deposit coupled to a pulse height tally F8 for each heavy charged particle specie.
it is explain in this publication :
https://www.sciencedirect.com/science/article/abs/pii/S1350448719304755?via=ihub
You have a full example in § 1.VII of this referrence:
https://www.researchgate.net/public...lems_from_analytical_to_monte-carlo_solutions
for example a calculation with MCNP for 14 MeV neutrons gives (from Antoni et Bourgois radiation measurements vol. 128, spet 2019, 106189):

View attachment 336484
good luck
Thank you very much!
I am a bit confused about how to apply the F6 and F8 tally types in MCNP to calculate lineal energy. I understand that the F6 Tally can be used to obtain the total deposited energy for each track during the simulation, while the F8 Tally outputs pulse height information for different energy bins through E8.

In my simulations, I have been using the F6 Tally to retrieve the total deposited energy for each track. However, I am uncertain about how to use the information from the F8 Tally to derive the lineal energy. At one point, I considered using the energy bin information from the F8 Tally as the deposited energy, but I am now beginning to suspect that the correct measure for deposited energy should come from the F6 Tally. Could you please clarify the correct methodology for calculating lineal energy, and how I should integrate the results from both F6 and F8 Tally types?

Additionally, I have some questions regarding the probability distribution generated from the pulse height information obtained through the F8 Tally. I am unsure whether the pulse height values output by F8 reliably represent the probability distribution or if there are additional steps to accurately acquire this information.

I appreciate your time and guidance; your assistance will have a significant impact on my research.

Thank you very much again.
 
  • #5
The lineal energy distribution for each secondary heavy charged particle is estimated using a F6 tally type for energy deposit coupled to a pulse height tally F8 for each heavy charged particle specie. An anticoincidence pulse height card, i.e., “ft8 phl”, is added to the F8 tally for counting single-event of energy imparted in gas arising from specific nuclear reaction in the cavity wall. For example, the following instructions are set to determine the occurrence number of reaction in the gas. For setting up this card, 185 logarithmic lineal energy bins are defined to ensure about 50 equal subdivisions per decade between 0.6 and 3030 keV/μm−1. In the command lines hereafter, this card provides the lineal energy spectrum for
all charged particles:
F6:h,a,# 10 $ 10 is cell of the internal cavity
F8:N 10
E8 0 1.39E-11 0.0004 183LOG 2.02
FT8 PHL 1 66 1 0 $ for He-3 and gas is material 1

after that you must calculate y (y=e/l with l the the mean chord of your detector)
and yd(y)

there are some adjustments to take into account for the MCNP parameters, for that please read the publications I cited.
 
  • #6
PSRB191921 said:
The lineal energy distribution for each secondary heavy charged particle is estimated using a F6 tally type for energy deposit coupled to a pulse height tally F8 for each heavy charged particle specie. An anticoincidence pulse height card, i.e., “ft8 phl”, is added to the F8 tally for counting single-event of energy imparted in gas arising from specific nuclear reaction in the cavity wall. For example, the following instructions are set to determine the occurrence number of reaction in the gas. For setting up this card, 185 logarithmic lineal energy bins are defined to ensure about 50 equal subdivisions per decade between 0.6 and 3030 keV/μm−1. In the command lines hereafter, this card provides the lineal energy spectrum for
all charged particles:
F6:h,a,# 10 $ 10 is cell of the internal cavity
F8:N 10
E8 0 1.39E-11 0.0004 183LOG 2.02
FT8 PHL 1 66 1 0 $ for He-3 and gas is material 1

after that you must calculate y (y=e/l with l the the mean chord of your detector)
and yd(y)

there are some adjustments to take into account for the MCNP parameters, for that please read the publications I cited.
Thank you very much for your patient explanation. I believe I have a clearer understanding of microdosimetry in MCNP now. However, when it comes to calculating alpha particles, I excluded heavy ions from the simulation. I obtained a record of alpha counts, and I wonder if this approach is appropriate?
Regarding the F8 output, I processed it using the code below. However, the results differ from the reference literature, which is the one you attached in your initial response.
1702048811717.png

I'm not sure if there is an issue with my post-processing. Specifically, I considered the first column as deposited energy and the second column as pulse, f(y), for subsequent calculations. I have attached the detailed code and would appreciate it if you could take a look. Your assistance would be immensely helpful. thank you again!
code:
import matplotlib.pyplot as plt
import numpy as np
data = np.loadtxt('E:/alpha_germay_1208.txt')
x = data[:, 0]
y = data[:, 1]
x=np.array(x)
y_=1500*x
y=np.array(y)
fy=y/sum(y)
# fy=y
yfy=y_*fy
yF = 0
for i in range(len(y)-1):
yF += (y_[i+1]-y_)*(y_*fy)
print(yF)
dy=yfy/yF
ydy=y_*dy
plt.plot(np.log10(y_),yfy)
plt.title("linear energy distribution")
plt.xlabel("y")
plt.ylabel("yfy")
plt.show()
plt.plot(np.log10(y_),ydy)
plt.title("linear energy distribution")
plt.xlabel("y")
plt.ylabel("ydy")
plt.show()
 
  • #7
can you give your mcnp input file ?
 
  • #8
yes,I have placed the input file in the attachment.
 

Attachments

  • tepc_germay.txt
    1.4 KB · Views: 63
  • #9
you must change your importance (you have imp:n,e=1) put in block 3 :
imp:n 1 1 1 0
imp:h,a 1 1 0 0

The 7th parameter of the “phys:n” card and “phys:p” is set to 1 to ensure the generation and transport of recoil and (n,p) protons as well as recoil heavy ions :
PHYS:N 20 20 0 J J J 1 -1 J J J 0 0 $ 7th entry set to 1
PHYS;h 20 20 -1 J 0 J 1 J J J 0 0 0 0.917

you can calculated H and A once:
C PROTON Energy Deposition
F6:h 1
F8:N 1
E8 0 1.39E-11 0.0004 183LOG 2.02
FT8 PHL 1 6 1 0
C ALPHA Energy Deposition
F26:A 1
F28:N 1
E28 0 1.39E-11 0.0004 183LOG 2.02
FT28 PHL 1 26 1 0

and the density of gas is too high it must be 7.77e-5 instead of 1.85

and it must be ok
 
  • Informative
Likes Alex A
  • #10
Thank you very much for your guidance. it has been immensely helpful to me.The gas density is 0.000185,I writen wrong. now I change it to 7.77e-5.However, I noticed a small difference. When plotting the yfy/ydy graphs for alpha particles based on my previous code, I observed that the y-ydy plot has a maximum y-axis value of 2(below figure). According to the reference to the 13.9 MeV article you mentioned earlier, it should be around 0.1. I am unsure if there is an issue here. Upon normalizing, I found that the y-axis for alpha particles becomes 0.1, but after normalization for protons, it becomes 0.035. I am not sure if there is something wrong or if there are specific considerations to be taken into account. I have attached the modified MCNP input file and processing code. I express my gratitude again.
processing code:
import matplotlib.pyplot as plt
import numpy as np
data = np.loadtxt('E:/h_1210_density.txt')
x = data[:, 0]
y = data[:, 1]
x=np.array(x)
y_=1500*x
y=np.array(y)
fy=y/sum(y)
# fy=y
yfy=y_*fy
# yfy=yfy/sum(yfy)
yF = 0
for i in range(len(y)-1):
yF += (y_[i+1]-y_)*(y_*fy)
print(yF)
dy=yfy/yF
ydy=y_*dy
ydy=ydy/sum(ydy)
plt.plot(np.log10(y_),yfy)
plt.title("linear energy distribution")
plt.xlabel("y")
plt.ylabel("yfy")
plt.show()
plt.plot(np.log10(y_),ydy)
plt.title("linear energy distribution")
plt.xlabel("y")
plt.ylabel("ydy")
plt.show()
1702144008247.png
 

Attachments

  • tepc_germay.txt
    1.4 KB · Views: 79
  • #11
I don't know your processing code, can you give your output file I will try with my processing code (Excel :-))
I think your curve is for alpha, can your try with protons and alpha+ protons ?
 
  • #12
yes,this is alpha and I have also processed protons, but they do not match.I have placed the output file in the attachment.
Thank you very much!
 

Attachments

  • tepc_germay_h_alpha_1209_density_out.txt
    95.2 KB · Views: 81
  • #13
with your file and my processing it gives:
Présentation1.jpg

not so bad! Some convergence problem (with more nps it will be ok)
 
  • #14
Thank you very much.
This indicates that there is no issue with the simulation code, but there might be an error in the processing code. I exported tally8/tally28 to a txt file and used the above code for processing. I'm unsure where the problem lies.
Could you please share your code or any subsequent code with me? I would greatly appreciate it. Additionally, I'm curious about how to handle proton and alpha particles together. Your guidance on this matter would be immensely helpful to me.
Thank you in advance for your assistance.
 
Last edited:
  • #15
this is my Excel file
 

Attachments

  • TEPC_phys_forum.xlsx
    171.2 KB · Views: 78
  • #16
Thank you very much for sharing!I have a rough idea of where the issue in my code might be, and I'll thoroughly check it.
At the same time, I have another question.
I want to calculate the energy spectrum for photons and neutrons using an MCNP input file. Could you help me to check the following MCNP input file is correct? Currently, I'm getting only a single value in the output, and I'm not sure if it's due to an issue with the energy range set by e8.
I would appreciate any advice you could provide.
 

Attachments

  • tepc_germay_p.txt
    1.3 KB · Views: 56

FAQ: Calculating Microdosimetry in MCNP

What is Microdosimetry in the context of MCNP?

Microdosimetry is the study of energy deposition by ionizing radiation at microscopic levels, typically within a single cell or a small group of cells. In the context of MCNP (Monte Carlo N-Particle), it involves using the simulation capabilities of MCNP to model the interactions of radiation with matter at these small scales to understand the spatial distribution of energy deposition.

How do I set up a microdosimetry simulation in MCNP?

To set up a microdosimetry simulation in MCNP, you need to define a detailed geometry that represents the microscopic structure of interest, such as cell nuclei or sub-cellular components. You also need to specify the appropriate physics models and tally options to record the energy deposition events. This involves creating input files that describe the materials, geometry, sources, and tallies accurately.

What types of tallies are used for microdosimetry calculations in MCNP?

For microdosimetry calculations, energy deposition tallies such as *F8 (energy deposition per unit mass) or *F6 (energy deposition per unit volume) are commonly used. These tallies can be set up to record energy deposition in very small volumes, which is essential for capturing the microscopic dose distribution accurately. Additionally, event-based tallies like F4 (flux) can be used to understand particle interactions at a microscopic level.

How do I interpret the results of a microdosimetry simulation in MCNP?

Interpreting the results of a microdosimetry simulation involves analyzing the energy deposition data to understand the dose distribution at a microscopic level. This can include calculating dose-volume histograms, evaluating the frequency and magnitude of energy deposition events, and comparing these results with biological endpoints. The results can provide insights into the radiation effects on cellular structures and help in optimizing radiotherapy treatments.

What are the common challenges in microdosimetry simulations using MCNP?

Common challenges include accurately modeling the complex geometry of biological structures at a microscopic scale, ensuring proper statistical convergence of the tallies due to the small volumes involved, and selecting appropriate physics models that accurately represent the interactions of radiation with matter at these scales. Additionally, computational resources and time can be significant due to the detailed nature of the simulations.

Back
Top