MCNP5 LINAC Isocenter Dose Calculation Produces No Tally Results

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 936 views
Anisur Rahman
Messages
17
Reaction score
1
TL;DR
I am simulating a medical LINAC in MCNP5 and trying to calculate the absorbed dose at the isocenter, but my tally is not producing any meaningful results. I am looking for help identifying the problem with my source, geometry, or tally setup.
I am working on a Monte Carlo simulation of a medical linear accelerator (LINAC) using MCNP5. My objective is to calculate the radiation dose at the isocenter of the LINAC treatment setup.

I have constructed the LINAC geometry, including the relevant components of the treatment head, and defined an electron beam as the source. I have also defined a tally at the isocenter to estimate the dose delivered at that location.

However, after running the MCNP input file, I am not getting any useful tally data for the isocenter. The calculation itself appears to run, but the expected dose/tally result is zero (0).

I am particularly unsure whether the problem is related to:

  • The definition or placement of the tally at the isocenter
  • The source definition and electron beam parameters
  • Particle transport through the LINAC head
  • The choice of tally for calculating dose
  • The energy binning or DE/DF cards
  • The normalization of the tally
  • The geometry/material definitions
  • Particle importances or particle cutoffs
My main goal is to obtain the absorbed dose at the LINAC isocenter from the simulated electron/photon field.

I am using MCNP5. I have attached the complete input file, including the geometry, source definition, tally cards, and material definitions, if needed.

Could anyone help me identify what might be preventing the isocenter dose tally from producing a result? I would particularly appreciate advice on whether my tally setup is appropriate for calculating dose at the isocenter in a LINAC simulation.
 

Attachments

Physics news on Phys.org
I'm not an MCNP user, but I've done some Monte Carlo simulations.
Some common things to consider/check:
  • If you're simulating from the point of an electron source incident on your target, remember the bremsstrahlung process is not that efficient. How many histories are you running?
  • Are you implementing any variance reduction techniques? If say one in every hundred incident electron produces a photon, depending on your geometry there's finite probability that said electron will be directed toward your phantom setup.
  • What does your scoring volume consist of? Have you defined a water phantom at your isocenter? Or are you attempting to score dose in air?
  • How large is your scoring volume?
  • Does your output give you any error codes?
 
Reply
  • Like
Likes   Reactions: Alex A
I am not qualified in medical radiation physics. I assume this is an academic problem.

As written the input file contains elemental materials which are fine for scattering, but generate errors for photonuclear reactions. If you have the right libraries for this then using them is fine. I am struggling to find them and might try rewriting the input file in terms of isotopes to see if I can run the input file as intended.

When I run the file with default settings (I assume photonuclear processes are off), I get a result for total and non scattered F5 tally that is not zero. This is hopeful, but it rules out most of the input file as the problem.

You are using a DF card that seems to calculate equivalent Air Kerma in Sieverts (Anteroposterior position) from Grays. But the F5 tally does not output in Grays, it outputs photon flux in photons per square centimeter (per source particle). Where did your df5 line come from, please?

The cone on your collimator seems very wide, but this would increase the tally not block it.

105 is not a lot of histories, and your detector is a 10cm radius point detector 1m from the target. But it still should not be producing a zero answer. Something sounds wrong with the way the input file is running, for example your libraries or some of the PHYS switches you are using. Careful reading of your output file is a good next step. If you are allowed, please attach a copy to the thread. When we've fixed the big problem, we can look at some of the others.
 
Hi @Alex A and @Choppy. Hope you are doing well.

I initially ran the code with a relatively small number of particles. For example, when I used around 50,000 particles just to check whether photons were being produced, I could see that photons were indeed being generated.

For the DF5 data, I used the values from a paper. It provides a list of air kerma conversion factors corresponding to different photon energy ranges. For example, if the air kerma conversion factor for photons in the 10–12 MeV energy range is 0.3, then I understand that the photon fluence in that energy range can be multiplied by 0.3 to obtain the corresponding calculated air kerma.

As far as I understand, the F5 tally gives the photon fluence per source particle per unit area (cm²). My plan was to take the output from my MCNP calculation and multiply it by the total number of source particles and the detector area.

However, the problem is that the output is coming out as zero, which is of no use to me. I cannot figure out where the problem is.

I am quite new to MCNP. Basically, two of us are working together to solve this problem. I am not very experienced in medical physics either, although my co-researcher has more experience in this area. We have been working on the problem together and trying to figure out where the calculation is going wrong.

Thank you all very much for your kind and helpful replies. I have now run the code with 1,000,000 particles, but I am still getting zero as the result. I honestly cannot understand where I am making the mistake.

I have attached the output file here in both the original format and as a .txt file for convenience.

I would really appreciate any suggestions or guidance on where the problem might be.
 

Attachments

Hi @Anisur Rahman,

I hope you are also well. This is MCNPX not MCNP5, which explains a few things and narrows down the problem a bit.
Code:
phys:e 15 1 1 1 1
The format for this statement is,
PHYS:E emax ides iphot ibad istrg
So you are setting iphot=1 which disables photon production by electrons. Try fixing or removing this statement. Checking it works with a small number of particles is a good idea.

Please see if you can find the name of the paper you used for the DF5. I agree they are air kerma conversion curves, but I am not sure the units are correct.

I will take another look at the problem in the next day or two.
 
Reply
  • Like
Likes   Reactions: Choppy