Help to run input file (MCNPX)

  • Thread starter Thread starter zakaria
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on troubleshooting an MCNPX simulation related to internal radiotherapy. The user is unable to run their input file due to technical limitations, specifically a fatal error caused by incorrect parameters in the input file. The error arises from the line "corc1 0 1 90," which incorrectly specifies the angle for cylindrical geometry. Correcting this to "corc1 1 90" or "corc1 89i 90" resolves the issue by properly defining the mesh elements.

PREREQUISITES
  • Understanding of MCNPX simulation software
  • Familiarity with cylindrical geometry parameters in MCNPX
  • Knowledge of input file structure and syntax in MCNPX
  • Experience with error troubleshooting in simulation software
NEXT STEPS
  • Review MCNPX documentation on input file syntax and parameters
  • Learn about cylindrical geometry configurations in MCNPX
  • Explore common error messages and troubleshooting techniques in MCNPX
  • Investigate the use of energy bins and histogram distributions in MCNPX simulations
USEFUL FOR

Researchers and practitioners in medical physics, particularly those involved in internal radiotherapy simulations using MCNPX, as well as anyone troubleshooting input file errors in simulation software.

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:
Engineering 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?
 
  • 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.
 
  • Informative
Likes   Reactions: berkeman

Similar threads

Replies
0
Views
813
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
869
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K