MCNP4 help: f4 tally in lattice

  • Thread starter Thread starter J_P_C
  • Start date Start date
  • Tags Tags
    Lattice
AI Thread Summary
A user new to the forum sought assistance with modeling a 17x17 fuel element using MCNP4, specifically to calculate the average neutron flux in a designated pincell. They encountered a fatal error related to the tally volume not being input or calculated correctly. The issue was resolved by explicitly specifying the divisor for the flux tally using the "SD4" card, which is recommended for tallies in repeated structures. After making the necessary adjustments, the user successfully ran the input file without errors. The discussion highlights the importance of correctly defining tally parameters in MCNP simulations for accurate results.
J_P_C
Messages
3
Reaction score
4
TL;DR Summary
I can't find the way to correctly apply an f4 tally in a precise lattice position. Help please?
Hi all, I'm new to the forum. Maybe you guys can give me hand with this.

I am using MCNP4 to model a 17x17 fuel element. I want to know the average neutron flux in a specific pincell but so far everything I try results in error. This is my input (text file is attached too):
Code:
c CELL CARDS
1  1 -10.24  -7        u=1     imp:n=1         $Fuel
2  2 -6.504   7 -8    u=1     imp:n=1         $Clad
3  3 -1.000   8         u=1     imp:n=1         $Water outside clad
4  3 -1.00   -9         u=2     imp:n=1         $Water inside guide tube
5  2 -6.504   9 -10  u=2     imp:n=1         $Guide tube
6  3 -1.000   10       u=2     imp:n=1         $Water outside guide tube
7  0          3 -4 5 -6 lat=1  u=3  imp:n=1  $Fuel element lattice
              fill=-8:8 -8:8 0:0
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1
              1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1
              1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
              1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
8  0             11 -12 13 -14           fill=3  u=4  imp:n=1  $Fuel element
9  3   -1.0  -11:12:-13:14                        u=4  imp:n=1  $Water outside fuel element
10  0            1 -2 15 -16 17 -18  fill=4            imp:n=1  $Fuel element + water gap
999 0          -1:2:-15:16:-17:18                        imp:n=0  $Outside void

c SURFACE CARDS
*1  pz -200
*2  pz  200
 3  px -0.6325
 4  px  0.6325
 5  py -0.6325
 6  py  0.6325
 7  cz  0.4127 
 8  cz  0.4744
 9  cz 0.57294
 10 cz 0.61301
 11 px -10.7525
 12 px 10.7525
 13 py -10.7525 
 14 py 10.7525
*15 px -10.8055
*16 px 10.8055
*17 py -10.8055
*18 py 10.8055
I want to know the average neutron flux in the top right pincell.
I don't understand why the following tally results in the fatal error "tally volume or area was not input nor calculated":

f4:n ((1 2 3) < 7 [8 8 0] < 8 <10)

The way I see it all of my cells are finite when filled with their corresponding universes. I'm a bit lost right now. Any help is appreciated.
 

Attachments

Last edited by a moderator:
Engineering news on Phys.org
F4 is a flux tally, but instead of counting the neutrons going through it MCNP measures the total path length and divides it by the volume of the cell to calculate the flux. It's only the cookie cutting later that gives (1 2 3) finite volume. So the function to find the volume fails and MCNP freaks.

Fixed by specifying the divisor explicitly, which in this case is the volume. Adding "SD4 1" the line after the F4 tally causes it to run, either replace 1 with the real volume, do the division later or rewrite the tally cells to be bounded (the problem is neatly defined so I imagine you don't want to go this way).
 
  • Like
  • Informative
Likes J_P_C, Astronuc and berkeman
Alex A said:
F4 is a flux tally, but instead of counting the neutrons going through it MCNP measures the total path length and divides it by the volume of the cell to calculate the flux. It's only the cookie cutting later that gives (1 2 3) finite volume. So the function to find the volume fails and MCNP freaks.

Fixed by specifying the divisor explicitly, which in this case is the volume. Adding "SD4 1" the line after the F4 tally causes it to run, either replace 1 with the real volume, do the division later or rewrite the tally cells to be bounded (the problem is neatly defined so I imagine you don't want to go this way).
Thanks for the answer, I see what you mean. In fact, now that I know I need the sdn card I went looking into the manual and I saw that this card is especially recommended for tallies in repeated structures. I liked the idea of using the divisor just as 1 and dividing by the real value later, so I added the "sd4 1" line after the tally line, but still I get the same error. Maybe the chain of cells in the f4 tally is not correct? I am attaching the full, complete input to this message too.
 

Attachments

Your input file works unmodified for me with 4b under linux, I just renamed it to inp. I've run it with 4c but the binary was older and I needed to strip carriage returns (a linux thing). I assume you are in windows.

Try reading the output file to make sure the modification is in the input it is processing, for whatever reason. Check for any other errors or warnings. If it still doesn't work post the output file.
 

Attachments

It finally works, although I have no idea why o0). I ran the very same input file from my previous message and this time it worked. And yes, I am in Windows. Thanks so much for the help!

My original intention was to compare the flux in an innmermost pincell versus flux in an outermost pincell. If by any chance anyone has my same problem in the future and finds the thread, the file I am attaching to this message is working and does what I intended.

Thanks again for the help.
 

Attachments

  • Like
Likes berkeman and Alex A
Hello everyone, I am currently working on a burnup calculation for a fuel assembly with repeated geometric structures using MCNP6. I have defined two materials (Material 1 and Material 2) which are actually the same material but located in different positions. However, after running the calculation with the BURN card, I am encountering an issue where all burnup information(power fraction(Initial input is 1,but output file is 0), burnup, mass, etc.) for Material 2 is zero, while Material 1...
Hi everyone, I'm a complete beginner with MCNP and trying to learn how to perform burnup calculations. Right now, I'm feeling a bit lost and not sure where to start. I found the OECD-NEA Burnup Credit Calculational Criticality Benchmark (Phase I-B) and was wondering if anyone has worked through this specific benchmark using MCNP6? If so, would you be willing to share your MCNP input file for it? Seeing an actual working example would be incredibly helpful for my learning. I'd be really...
Back
Top