MCNP RHP/HEX Geometry Clarifications

  • Thread starter Thread starter MadGander
  • Start date Start date
  • Tags Tags
    Mcnp
Click For Summary
SUMMARY

The forum discussion focuses on building a fuel compact using hexagonal lattice cells in MCNP, specifically addressing issues with the RHP/HEX definition. The user encounters problems with the lattice cell replicating along the Z axis, despite the deck being error-free. A solution is provided, recommending the use of the FILL command with specified indices in three dimensions (FILL= -1:1 -1:1 0:1) to generate a 3D hex lattice. Additionally, the author promotes a Python library, CardSharpForMCNP, which simplifies the generation of MCNP input decks.

PREREQUISITES
  • Understanding of MCNP geometry definitions
  • Familiarity with hexagonal lattice structures
  • Knowledge of the FILL command in MCNP
  • Basic Python programming skills
NEXT STEPS
  • Research the MCNP FILL command syntax and usage
  • Explore the CardSharpForMCNP library for generating MCNP input decks
  • Learn about hexagonal prism cell definitions in MCNP
  • Investigate 3D lattice generation techniques in MCNP
USEFUL FOR

This discussion is beneficial for nuclear engineers, MCNP users, and Python developers involved in computational modeling and simulation of nuclear systems.

MadGander
Messages
28
Reaction score
1
TL;DR
What are right hexagonal prism "facets" and how does one define them? Help with MCNP geometry.
Hi all,

I'm working on building a fuel compact using hexagonal lattice cells, but I'm running into trouble with the RHP/HEX definition. The deck is error free, but for one reason or another the lattice cell isn't replicating along the Z axis.. only the X and Y, or at least this is what I'm interpreting from the plotter. My guess is that it has to do with how I'm defining the right hexagonal prism cell (only using one facet). Any help is appreciated.
 

Attachments

Engineering news on Phys.org
MCNP commands (cards) have many different ways of doing things. I have not generated a 3D hex lattice the way you are trying to without specifying the extent in the three dimensions.

The way I have generated 3D hex lattices is to use the FILL= -1:1 -1:1 0:1 which specifies the indices in each of the three dimensions. Here it would be 3x3x2=18 copies of the basic cell.

I am the author of a python library that can ease the generation of MCNP input decks.
https://github.com/pnnl/CardSharpForMCNP
Test 5 in the geometry tests illustrates a hexagonal lattice using the method above.

If you are comfortable with using Python, I suggest giving the library a try.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K