I get this error when I try to run the code MCNPX

  • Thread starter Thread starter emilmammadzada
  • Start date Start date
  • Tags Tags
    Code Error Mcnpx
AI Thread Summary
The error "bad trouble in imcn in routine pass1 unexpected eof in file depletion.inp" occurs when running MCNPX due to several issues in the input file. Key problems include the unrecognized surface type "sphere," missing material definitions for cladding and moderator, and invalid material numbers in cell cards. It is recommended to insert blank lines after cell and surface definitions to properly define input blocks. Additionally, users should simplify the input by removing depletion and initial condition cards, and refer to example problems and the manual for guidance on proper setup. Understanding the basics of MCNPX is essential for successful problem configuration and interpretation of results.
emilmammadzada
Messages
129
Reaction score
19
TL;DR Summary
I get this error when I try to run the code MCNPX
I get this error"bad trouble in imcn in routine pass1 unexpected eof in file depletion.inp" when I try to run the code MCNPX
my input file
Code:
c Depletion pincell input file for MCNPX
c Define cells
c   Cell 1: Fuel
1 0 -1.0 -4 -5 -6
c   Cell 2: Cladding
2 0 -2.0 4 -7
c   Cell 3: Moderator
3 0 -3.0 5 6 7
c   Cell 4: Outside
4 0 4 -8
c Define surfaces
c   Surface 4: Inner radius of fuel
4 rpp -0.3937 0.0 0.0 0.3937 10.16 10.16
c   Surface 5: Outer radius of fuel
5 rpp -0.5080 0.0 0.0 0.5080 10.16 10.16
c   Surface 6: Top of fuel
6 pz 10.16
c   Surface 7: Bottom of fuel
7 pz 0.0
c   Surface 8: Outer boundary
8 sphere 0.0 0.0 0.0 15.24
c Define materials
M1 8016.70c -1.0
     8017.70c -0.0072
     92235.70c -0.0001
     92238.70c -0.9927
c Define depletion parameters
DEPL IBURN 1 1 1E-6
DEPL NLIB 9 9
DEPL RDTOL 1E-6
DEPL MAXORD 10
DEPL TDEL 1E-6
DEPL TOTTIME 365.0
c Define initial conditions
IC1 1 1.0 1
c Define run parameters
MODE N
NPS 100000
c Define tallies
F1:n 1 1 0 7 -4 -5 -6
F2:n 2 1 0 7 4
 
Engineering news on Phys.org
I'm not sure if this is the problem or not, but the first thing I noticed is that you need single blank lines after the cell card definitions and after the surface card definitions to define the different "input blocks".

Insert a blank line after line 10, and after line 21 (which will be 22 if you submit the first blank line)
 
  • Like
Likes emilmammadzada
rpp said:
I'm not sure if this is the problem or not, but the first thing I noticed is that you need single blank lines after the cell card definitions and after the surface card definitions to define the different "input blocks".

Insert a blank line after line 10, and after line 21 (which will be 22 if you submit the first blank line)
The definition of sphere has failed, how can I fix it?
Code:
*************************************************************
 *                                                           *
 *                   MCNPX                                   *
 *                                                           *
 * Copyright 2007. Los Alamos National Security, LLC.        *
 * All rights reserved.                                      *
 *                                                           *
 * This material was produced under U.S. Government contract *
 * DE-AC52-06NA25396 for Los Alamos National Laboratory,     *
 * which is operated by Los Alamos National Security, LLC    *
 * for the U.S. Department of Energy. The Government is      *
 * granted for itself and others acting on its behalf a      *
 * paid-up, nonexclusive, irrevocable worldwide license in   *
 * this material to reproduce, prepare derivative works, and *
 * works, and perform publicly and display publicly.         *
 * Beginning five (5) years after June 1, 2006, subject to   *
 * additional five-year worldwide renewals, the Government   *
 * is granted for itself and others acting on its behalf     *
 * a paid-up, nonexclusive, irrevocable worldwide license    *
 * in this material to reproduce, prepare derivative works,  *
 * distribute copies to the public, perform publicly and     *
 * display publicly, and to permit others to do so.          *
 *                                                           *
 * NEITHER THE UNITED STATES NOR THE UNITED STATES           *
 * DEPARTMENT OF ENERGY, NOR LOS ALAMOS NATIONAL SECURITY,   *
 * LLC, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY,      *
 * EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR     *
 * RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR         *
 * USEFULNESS OF ANY INFORMATION, APPARATUS, PRODUCT, OR     *
 * PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE WOULD NOT   *
 * INFRINGE PRIVATELY OWNED RIGHTS.                          *
 *                                                           *
 *************************************************************
 4 rpp -0.3937 0.0 0.0 0.3937 10.16 10.16                             
 warning.  rpp is infinite in one dimension.
 5 rpp -0.5080 0.0 0.0 0.5080 10.16 10.16                             
 warning.  rpp is infinite in one dimension.
 8 sphere 0.0 0.0 0.0 15.24                                           
 fatal error.  the surface type is not recognized:  sphere         
 m1 8016.70c -1.0                                                     
 warning.  material   1 is not used in the problem.
 depl IBURN 1 1 1E-6                                                 
 fatal error.  depl  is not a legal data symbol.
 depl NLIB 9 9                                                       
 fatal error.  depl  is not a legal data symbol.
 depl RDTOL 1E-6                                                     
 fatal error.  depl  is not a legal data symbol.
 depl MAXORD 10                                                       
 fatal error.  depl  is not a legal data symbol.
 depl TDEL 1E-6                                                       
 fatal error.  depl  is not a legal data symbol.
 depl TOTTIME 365.0                                                   
 fatal error.  depl  is not a legal data symbol.
 ic1 1 1.0 1                                                         
 fatal error.  ic    is not a legal data symbol.
 
 warning.  total nu is now the default for fixed-source problems.
 f2:n 2 1 0 7 4                                                       
 fatal error.  surface     -1 not found for cell     1 card.

 bad trouble in imcn     in routine mbody                             
 surface error                                                       

 
 warning.  plot plane coincident with surface      4
 warning.  plot plane coincident with surface      4
 warning.  plot plane coincident with surface      4
 warning.  plot plane coincident with surface      4
 
There are many problems with this input. Have you tried to look in the manual and example problems? I would start with one of the example problems distributed with the code and try to understand how it works.

The "fatal error" message tells you exactly what the problem is. The keyword "sphere" is not a recognized surface type. If you look in the manual, you should be able to find a table that lists the available surface types.

Once you fix this error, you will get several errors about the materials. None of your cell cards include a valid material number and the densities are not correct. Once you fix this, you will find that you are missing material definitions for the cladding and moderator.

Next, you will find that a fixed source problem is probably not what you want to run. Look at the examples on how to run a criticality problem using the "kcode" option.

I suggest taking out all of the "DEPL" and "IC1" cards and just try to get a simple problem working before trying to deplete. Look at the sample problems to understand how to set up the geometry and materials.
 
  • Love
  • Informative
Likes emilmammadzada and Alex A
I just looked at your previous posts, and it looks like several people have tried to help you set up your MCNP cases, but you don't appear to understand the very basics of how to set up the code.

Instead of randomly "trying things", I suggest sitting down with an example input and going through the manual and try to understand what each input line does. There are many samples distributed with the code, and you can find more on the web.

It will take some time, but it is necessary if you are going to understand how to set up a problem and interpret the results.
 
rpp said:
There are many problems with this input. Have you tried to look in the manual and example problems? I would start with one of the example problems distributed with the code and try to understand how it works.

The "fatal error" message tells you exactly what the problem is. The keyword "sphere" is not a recognized surface type. If you look in the manual, you should be able to find a table that lists the available surface types.

Once you fix this error, you will get several errors about the materials. None of your cell cards include a valid material number and the densities are not correct. Once you fix this, you will find that you are missing material definitions for the cladding and moderator.

Next, you will find that a fixed source problem is probably not what you want to run. Look at the examples on how to run a criticality problem using the "kcode" option.

I suggest taking out all of the "DEPL" and "IC1" cards and just try to get a simple problem working before trying to deplete. Look at the sample problems to understand how to set up the geometry and materials.
I'm currently working on openmc and serpent. It's been a while since I looked at mcnpx. That's why I don't remember a lot of things. I think this code about mcnpx may have mixed this input file with the input files of other codes. I'll look into this again.))
 
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