Building a Lattice in MCNP: Seeking Help

Your name]In summary, the speaker is seeking help with building a lattice in MCNP. They have shared their lattice code and are experiencing red lines in their plot. The expert suggests checking for overlapping regions in the cell definitions and running the code with a simpler geometry. They also recommend seeking assistance from other MCNP users or the support team if needed.
  • #1
AndrejK
1
0
HI, i´m trying to build a lattice in mcnp. Actually it works but there are still lots of red lines in the plot.
Maybe someone can help me.
The Lattice code looks like that :

lattice
1 0 2 $ outer space
2 3 -0.00126 -2 #4 #39 #41 #42 #43 #44 #45 #46 #47 $ universe
4 2 -8.4 -1 $ ball to enable a plot
39 0 233 -115 -234 235 -236 237 #44 #45 #46 #47 fill=1
41 2 -8.4 233 -115 -89 #39 #42 #43 #44 #45 #46 #47
42 2 -8.4 233 -115 242 -243 244 -245 lat=1 u=1 fill=2
43 3 -0.00126 233 -115 238 -239 240 -241 u=2
44 2 -8.4 233 -115 244 -240 242 -243 u=2
45 2 -8.4 233 -115 241 -245 242 -243 u=2
46 2 -8.4 233 -115 240 -241 239 -243 u=2
47 2 -8.4 233 -115 242 -238 240 -241 u=2

1 so 2
2 so 1000
89 cy 2.0
115 py 900.5
233 py 899.5
234 pz 1.4
235 pz -1.4
236 px 1.4
237 px -1.4
238 px -0.1
239 px 0.1
240 pz -0.1
241 pz 0.1
242 px -0.2
243 px 0.2
244 pz -0.2
245 pz 0.2
246 py 0.5

c -- material cards --
C Material #1: water
M1 1001 0.6666
8016 0.3334
C Material #2: copper
M2 29063 0.6917
29065 0.3083
C Material #3 Air
M3 1001 0.0013
6012 0.0130
7014 0.7200
8016 0.2657

Thanks for your Help

Best regards
Andrej
 
Engineering news on Phys.org
  • #2


Dear Andrej,

Thank you for sharing your lattice code. From what I can see, your lattice appears to be functioning correctly. The red lines in your plot are most likely due to overlapping cells or regions that are not properly defined. I would suggest reviewing your lattice code and double checking all of your cell definitions to make sure they are correct and there are no overlapping regions.

Additionally, it may be helpful to run your code with a simpler geometry, such as a simple cube, to see if the red lines still appear. This can help narrow down the source of the issue.

If the problem persists, it may be helpful to consult with other MCNP users or reach out to the MCNP support team for further assistance.

Best of luck with your lattice building!
 

Related to Building a Lattice in MCNP: Seeking Help

What is MCNP?

MCNP (Monte Carlo N-Particle) is a widely used computer code for simulating the transport of particles through matter. It is commonly used in the field of nuclear engineering, radiation physics, and medical physics.

What is a lattice in MCNP?

A lattice in MCNP refers to a repeating structure of materials and void regions that is used to simulate complex geometries in the code. Lattices are commonly used to model fuel assemblies in nuclear reactors and other complicated systems.

How do I build a lattice in MCNP?

To build a lattice in MCNP, you need to define the materials and their arrangement in the input file. This can be done using the MATERIAL and LATTICE cards in MCNP. It is recommended to consult the MCNP user manual or seek help from experienced users for specific guidance.

What are some common challenges when building a lattice in MCNP?

Some common challenges when building a lattice in MCNP include accurately defining the material compositions and orientations, ensuring correct boundary conditions, and avoiding errors in the input file. It is important to thoroughly review the input file and run several test cases before performing a final simulation.

Are there any resources available for me to learn more about building a lattice in MCNP?

Yes, there are various resources available for learning about building a lattice in MCNP. These include the MCNP user manual, online tutorials, and forums where experienced users can provide guidance and answer specific questions. It is also helpful to attend workshops or training courses on MCNP to gain hands-on experience.

Similar threads

Replies
3
Views
2K
Replies
2
Views
3K
Replies
1
Views
3K
  • Nuclear Engineering
Replies
4
Views
5K
Replies
3
Views
7K
  • Programming and Computer Science
2
Replies
41
Views
4K
  • Aerospace Engineering
Replies
2
Views
2K
  • Nuclear Engineering
Replies
0
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
3K
  • Programming and Computer Science
Replies
9
Views
1K
Back
Top