MCNPX Fatal error: "electron importances are zero"

  • Thread starter Thread starter Elizabeth Vega
  • Start date Start date
  • Tags Tags
    Application Mcnpx
AI Thread Summary
The discussion centers on a fatal error in MCNPX related to "electron importances are zero." The issue arises because a blank line in the input file is interpreted as the end of input, preventing the program from reading subsequent lines that set the importance for cells. Users are advised to check Section 2.9 of the referenced User Manual for guidance. Specifically, attention is drawn to line 124, which sets the importance to zero. Addressing these quirks in the code can resolve the error effectively.
Elizabeth Vega
Messages
2
Reaction score
1
When I run the application, I get an error message. Fatal error electron importances are zero, I can't find what's wrong in the code.
 

Attachments

Engineering news on Phys.org
Welcome to physicsforums Elizabeth,

Line 122 is blank and MCNP is interpreting that as end of input, so the lines that set the importance for the cells are never read. Those lines look fine to me. MCNP has a few quirks because the core code dates from the days of mainframes. Blank lines being the section breaks is probably the biggest gotcha.
 
  • Informative
  • Like
Likes Elizabeth Vega and berkeman
Hello, I'm currently trying to compare theoretical results with an MCNP simulation. I'm using two discrete sets of data, intensity (probability) and linear attenuation coefficient, both functions of energy, to produce an attenuated energy spectrum after x-rays have passed through a thin layer of lead. I've been running through the calculations and I'm getting a higher average attenuated energy (~74 keV) than initial average energy (~33 keV). My guess is I'm doing something wrong somewhere...
Back
Top