Zero lattice element hit in MCNP6 (but I cannot find the wrong area)

Click For Summary
SUMMARY

The forum discussion addresses a "zero lattice element hit" error encountered in MCNP6 code. The issue arises from an incomplete coverage of the square lattice by a 6x6 fill. A solution is provided, recommending a change to a 7x6 fill to resolve the error. The user confirms that this adjustment successfully fixed the problem.

PREREQUISITES
  • Understanding of MCNP6 code structure and syntax
  • Familiarity with lattice geometry in computational physics
  • Knowledge of cross-section visualization techniques in MCNP6
  • Basic troubleshooting skills in simulation software
NEXT STEPS
  • Research MCNP6 lattice configurations and their implications
  • Learn how to effectively use the "ip" command for debugging in MCNP6
  • Explore advanced fill options in MCNP6 for complex geometries
  • Study cross-section analysis techniques for better visualization of simulation results
USEFUL FOR

This discussion is beneficial for computational physicists, MCNP6 users, and anyone involved in simulating lattice structures in nuclear engineering or radiation transport studies.

yqh
Messages
2
Reaction score
2
TL;DR
The mcnp6 code I wrote contains a "zero lattice element hit" error, but I am unable to identify the problem. My code has been uploaded, and I kindly ask someone with the ability to assist me. Thank you
The mcnp6 code I wrote contains a "zero lattice element hit" error, but I am unable to identify the problem. My code has been uploaded, and I kindly ask someone with the ability to assist me. Thank you
 

Attachments

Engineering news on Phys.org
Welcome to PhysicsForums @yqh,
If you run the program with ip, and show a cross section with "pz 23", you can see the square lattice isn't fully covered, by the 6x6 fill. Changing it to a 7x6 fill might fix it.
Code:
5      1 0.100104 -401 402 -403 404 lat=1 u=4
         fill=0:6 0:5 0:0
         5 41r
 
  • Informative
Likes   Reactions: berkeman
Alex A said:
Welcome to PhysicsForums @yqh,
If you run the program with ip, and show a cross section with "pz 23", you can see the square lattice isn't fully covered, by the 6x6 fill. Changing it to a 7x6 fill might fix it.
Code:
5      1 0.100104 -401 402 -403 404 lat=1 u=4
         fill=0:6 0:5 0:0
         5 41r
Thank you very much for your help, this solved my problem, thank you again.
 
  • Like
Likes   Reactions: Alex A and berkeman

Similar threads

  • · Replies 3 ·
Replies
3
Views
5K
Replies
3
Views
8K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 65 ·
3
Replies
65
Views
8K
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K