Struggling to understand cell cards in MCNP

  • Thread starter Thread starter zincsulphide
  • Start date Start date
  • Tags Tags
    Cards Cell Mcnp
Click For Summary
SUMMARY

This discussion focuses on understanding cell cards in MCNP (Monte Carlo N-Particle Transport Code), specifically the interpretation of geometry definitions within cell cards. The first three numbers in a cell card represent the cell number, material number, and density, while the subsequent six numbers define the geometry, such as planes and volumes. The negative values indicate directionality in the geometry, with positive values defining volumes in the positive direction and negative values in the negative direction. The discussion also touches on the importance of using SI units for measurements in MCNP.

PREREQUISITES
  • Understanding of MCNP (Monte Carlo N-Particle Transport Code)
  • Familiarity with geometry definitions in computational modeling
  • Knowledge of SI (metric) units for scientific measurements
  • Basic grasp of material properties and density in physics
NEXT STEPS
  • Study the MCNP User's Manual for detailed explanations of cell and surface cards
  • Learn about geometry definitions in MCNP, focusing on 3D modeling techniques
  • Explore examples of cell card configurations in MCNP for practical understanding
  • Research the implications of using different units (e.g., SI vs. imperial) in computational models
USEFUL FOR

Researchers, physicists, and engineers working with MCNP, particularly those involved in radiation transport simulations and geometry modeling.

zincsulphide
Messages
9
Reaction score
0
Engineering news on Phys.org
Hi,
you must take all the line "1 1 -1.0 2 -1 4 -3 5 -6"
it means cell number 1 ; material 1 ; Density 1 g/cm3 , after " 2 -1 4 -3 5 -6" is your geometry :
2 is the geometry 2 discribed in the block 2 : it is "PX -5" so it is normal plane to Ox with x=-5. you have +2 so you are on the right of this plane,
-1 is the geometry 1 discribed in the block 2 : it is "PX 5" so it is normal plane to Ox with x=5. you have -2 so you are on the left of this plane,

the instersection of "2 -1 4 -3 5 -6" gives a cube
line 8 is "100 2 -0.001293 (101 -102 -100)"
it means cell number 100 ; material 2 ; Density 0.001293 g/cm3
 
Last edited:
  • Like
Likes   Reactions: zincsulphide
I try a scheme :

upload_2019-1-22_20-59-56.png
 

Attachments

  • upload_2019-1-22_20-59-56.png
    upload_2019-1-22_20-59-56.png
    11 KB · Views: 666
PSRB191921 said:
Hi,
you must take all the line "1 1 -1.0 2 -1 4 -3 5 -6"
it means cell number 1 ; material 1 ; Density 1 g/cm3 , after " 2 -1 4 -3 5 -6" is your geometry :
2 is the geometry 2 discribed in the block 2 : it is "PX -5" so it is normal plane to Ox with x=-5. you have +2 so you are on the right of this plane,
-1 is the geometry 1 discribed in the block 2 : it is "PX 5" so it is normal plane to Ox with x=5. you have -2 so you are on the left of this plane,

the instersection of "2 -1 4 -3 5 -6" gives a cube
line 8 is "100 2 -0.001293 (101 -102 -100)"
it means cell number 100 ; material 2 ; Density 0.001293 g/cm3

I think I understand it now. So the surface card defines the geometry of each cell, and the cell card has numbers (6 numbers if the model is in 3D) that link to the surface card. Are the 6 cell card numbers in an order like x, x, y, y, z, z? For the last two numbers (5 and -6), why is the second number negative? Both top and bottom of the water phantom are on the +ve z axis. Is it negative because the geometry must be less than pz=20?

Do you mind if I upload an example that I am working on with an attempt at writing the cell and surface cards?

Just one more question. The dimensions of my model are in inches. As 5 inches is 5.08 cm, is it appropriate to round down to 5.0 cm or should I leave numbers exact? In my model I have one cell that is zinc sulphide (with a thickness of 0.0085 cm), so I'm unsure whether to round numbers up/down.

Thanks again!
 
Last edited:
zincsulphide said:
So the surface card defines the geometry of each cel
yes

zincsulphide said:
6 numbers if the model is in 3D
no : for a cube you have 6 planes so 6 Numbers. For a sphere one number. For a cylinder 3 Numbers (a cylinder and 2 planes) …

zincsulphide said:
why is the second number negative
if you have a plane (e.g. PX=5) if the number is negative you define all the volume in the direction of -Ox if positive in the direction of Ox. For a sphere negative is the volume Inside the sphere and positive outside the sphere.

zincsulphide said:
Do you mind if I upload an example that I am working on with an attempt at writing the cell and surface cards?
possible

zincsulphide said:
The dimensions of my model are in inches
I Don't know what is "inch" I only used SI (metric) unit
 
PSRB191921 said:
yesno : for a cube you have 6 planes so 6 Numbers. For a sphere one number. For a cylinder 3 Numbers (a cylinder and 2 planes) …if you have a plane (e.g. PX=5) if the number is negative you define all the volume in the direction of -Ox if positive in the direction of Ox. For a sphere negative is the volume Inside the sphere and positive outside the sphere.possibleI Don't know what is "inch" I only used SI (metric) unit

Hi, I will send you a pm of my example because some of the information is from confidential files.

Thanks again
 

Similar threads

Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 58 ·
2
Replies
58
Views
5K
Replies
2
Views
752
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K