Struggling to understand cell cards in MCNP

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

Discussion Overview

The discussion revolves around understanding the cell cards in MCNP (Monte Carlo N-Particle Transport Code), specifically focusing on the interpretation of numerical parameters in the cell definitions and their geometrical implications. Participants seek clarification on specific lines from a provided document and discuss the relationship between cell cards and surface cards in 3D geometry.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant seeks clarification on the meaning of the six numbers following the material and density in the cell card, specifically in relation to geometry.
  • Another participant explains that the numbers represent geometrical definitions, with positive and negative values indicating different spatial orientations relative to defined planes.
  • A later reply suggests that the second number being negative indicates a volume defined in the negative direction of the x-axis, while positive values indicate the opposite.
  • There is a question about the appropriateness of rounding dimensions from inches to centimeters, particularly regarding the precision needed for small measurements like thickness.
  • Some participants express uncertainty about the implications of using different units (inches vs. metric) in their models.

Areas of Agreement / Disagreement

Participants generally agree on the basic interpretation of the cell card structure, but there is disagreement regarding the implications of negative numbers in the geometry definitions and the appropriateness of rounding measurements. The discussion remains unresolved on these points.

Contextual Notes

There are limitations regarding the understanding of unit conversions and the implications of geometry definitions in MCNP, as well as the potential for varying interpretations of the cell card parameters.

Who May Find This Useful

This discussion may be useful for individuals working with MCNP, particularly those new to interpreting cell and surface cards, as well as those interested in the geometrical aspects of modeling in computational physics.

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: 678
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
6K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 58 ·
2
Replies
58
Views
5K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K