Help to run input file (MCNPX)

  • Thread starter Thread starter zakaria
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
zakaria
Messages
2
Reaction score
0
Hello,

I'm working on an MCNPX simulation related to internal radiotherapy. Unfortunately, I'm currently unable to run the code on my machine due to technical limitations.

If possible, could someone kindly run the input file and share the output or let me know whether the simulation runs successfully?

I'm not asking for result analysis just a quick check to see if my input file is correct and executable.

Thank you very much in advance
 

Attachments

Last edited:
Physics news on Phys.org
Welcome to PF.

zakaria said:
Unfortunately, I'm currently unable to run the code on my machine due to technical limitations.
What kind of limitations? We don't usually do folks' work for them.
 
berkeman said:
Welcome to PF.


What kind of limitations? We don't usually do folks' work for them.
Thank you very much for your reply.
I am not asking anyone to do my work for me, but I have tried many times to run the simulation myself without success. MCNPX stops immediately when the simulation starts.
 
Does it give any error message? What version of MCNP are you using?
 
Reply
  • Like
Likes   Reactions: Alex A
There seems to be at least one mistake in the input file.
Code:
  cora1 0.0 0.023 2.3
  corb1 0 0.25 2.5
  corc1 0 1 90
Is this intended to produce a mesh containing 8 or 90'000 elements (voxels)?

For cylindrical geometry corc is the angle, it has to start with a 0, so this is implied. In MCNP this is really common, energy bins, histogram distributions etc. Putting an extra 0 on this line is asking for mesh elements (voxels) between angle 0 and angle 0, which have zero volume. This triggers a fatal error. That may be a cause of this input file not working. I also don't know if corc is supposed to end with a 360, some implementations of mesh need this.

So "corc1 1 90" would fix that error, but if the intention is 1 division per degree up to 90 degrees, then "corc1 89i 90" would do it and the other lines might also need fixing. i{n} interpolates n values and saves having long lists in the input file, it would be the same as corc1 [0] 1 2 3 4 5 .... 87 88 89 90.
 
Reply
  • Informative
Likes   Reactions: berkeman