Particles lost in MCNP running

  • Thread starter Thread starter flashcflash
  • Start date Start date
  • Tags Tags
    Mcnp Particle
Click For Summary
SUMMARY

The discussion focuses on issues related to particle loss in MCNP simulations due to geometry misconfigurations involving air bubbles. The user identified problematic cells (1500-1504, 2-7, and 1300) and attempted to resolve the issue by changing geometry definitions from planes to macro rectangles, but the errors persisted. The output file and source code were shared for further analysis. The community is encouraged to provide advice on resolving these geometry-related errors.

PREREQUISITES
  • Understanding of MCNP (Monte Carlo N-Particle Transport Code) simulations
  • Familiarity with geometry definitions in MCNP, including planes and macro rectangles
  • Knowledge of particle transport and tracking within simulation environments
  • Ability to analyze output files and debug simulation errors
NEXT STEPS
  • Investigate MCNP geometry definitions and best practices for air bubble modeling
  • Learn about debugging techniques for particle loss in MCNP simulations
  • Explore the use of visual tools like Vised for geometry verification in MCNP
  • Review case studies or forums discussing similar MCNP particle loss issues
USEFUL FOR

Researchers, physicists, and engineers working with MCNP simulations, particularly those dealing with complex geometries and particle transport issues.

flashcflash
Messages
6
Reaction score
0
Hi dears,
My model has several air bubbles to surrounding solid models. The output file reported some particles were lost in my air bubbles and could not find a cell there. I have used vised to check and found that cell 1500-1504,cell2-7,cell1300 has some problems. I changed the geometry definitions from planes to macro rectangles, but the errors persist. Any advice would be helpful. Thank you!

Attachment is output file with source code.
 

Attachments

Engineering news on Phys.org
Cell 1300 is the big cell containing the experiment and air, outside that is the void cell. That cell definition is failing and anything going into the space that should be cell 1300 is getting lost. When defining a space in a box you want the space between x1 and x2, y1 and y2, z1 and z2 so the definition reads like +x1 -x2 +y1 -y2 +z1 -z2
When defining the outside of that space you can't just flip the tests, you have to use the union operator :
People that have done Boolean logic might recognize this as De Morgan's theorem in action. -x1 +x2 would straight away be a space that doesn't exist, it's below a lower value and at the same time above a higher value.

What is needed is -x1:+x2:-y1:+y2:-z1:+z2
ie, all the space below the lower bounds and also all the space above the higher bound for every axis.
 
Alex A said:
Cell 1300 is the big cell containing the experiment and air, outside that is the void cell. That cell definition is failing and anything going into the space that should be cell 1300 is getting lost. When defining a space in a box you want the space between x1 and x2, y1 and y2, z1 and z2 so the definition reads like +x1 -x2 +y1 -y2 +z1 -z2
When defining the outside of that space you can't just flip the tests, you have to use the union operator :
People that have done Boolean logic might recognize this as De Morgan's theorem in action. -x1 +x2 would straight away be a space that doesn't exist, it's below a lower value and at the same time above a higher value.

What is needed is -x1:+x2:-y1:+y2:-z1:+z2
ie, all the space below the lower bounds and also all the space above the higher bound for every axis.
Thank you, that must be the mislead of user's manual. It said I should seldom using complement operator. Not only the last cell, several of them have problem. The vised would report error in red lines even using union operator, the complement operator for cell combination is the only way to pass the geometric test.
 

Similar threads

Replies
5
Views
820
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
19K
  • · Replies 21 ·
Replies
21
Views
3K