MCNPX Fatal error: "electron importances are zero"

  • #1
Elizabeth Vega
2
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

  • Xray_0.1cmPb_ep1.txt
    7.9 KB · Views: 43
Engineering news on Phys.org
  • #3
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

What does the "MCNPX Fatal error: electron importances are zero" error mean?

This error typically occurs in the MCNPX (Monte Carlo N-Particle eXtended) simulation tool when the importance values for electrons in a certain region or cell are set to zero. Importance values in MCNPX are used to guide the simulation's particle tracking by altering the probability of particle survival. A zero importance effectively means that no electrons are expected to contribute to the simulation results in that region, which can halt the simulation if electrons enter these areas.

How can I fix the "electron importances are zero" error in my MCNPX simulation?

To resolve this error, you need to check and adjust the importance values assigned to electrons in your input file. Make sure that all regions where electrons might travel have non-zero importance values. You can set these values in the cells or surfaces definitions in your MCNPX input file. Reviewing the geometry and logic of your setup can help ensure that all importance assignments are correct and logical.

Why does MCNPX require non-zero importance values for electrons?

MCNPX uses importance values as part of its variance reduction techniques to efficiently simulate particle transport by influencing the probability of particle survival and tracking. Non-zero importance values for electrons (or any particle) ensure that the simulation accurately models particle interactions and transport within the specified regions. Zero importance values can mislead the simulation into disregarding significant physics or artificially terminating particle tracks prematurely.

Can I set the electron importance to a very low value instead of zero?

Yes, setting the electron importance to a very low but non-zero value is possible and sometimes necessary, especially in regions where electron contribution to the simulation results is minimal but still non-negligible. This approach allows electrons to be tracked with reduced statistical weight, which can help in maintaining computational efficiency while still capturing necessary interaction data.

What should I do if changing the electron importance values doesn’t solve the problem?

If adjusting the electron importance values does not resolve the issue, it's advisable to further investigate other aspects of your simulation setup. Check for possible errors in geometry definitions, material assignments, or boundary conditions. Also, ensure that your source definition and particle type settings are correctly specified. Consulting the MCNPX user manual or seeking advice from other experienced users through forums or professional networks can also provide additional insights and solutions.

Similar threads

Replies
19
Views
2K
  • Nuclear Engineering
Replies
2
Views
2K
  • Nuclear Engineering
Replies
5
Views
1K
Replies
6
Views
1K
  • Nuclear Engineering
Replies
2
Views
2K
  • Nuclear Engineering
Replies
1
Views
1K
  • Nuclear Engineering
Replies
2
Views
14K
  • Nuclear Engineering
Replies
8
Views
3K
Replies
3
Views
2K
  • Nuclear Engineering
Replies
2
Views
2K
Back
Top