Run MCNP 5 input file of certain geometry for flux calculation

In summary, the input file does not run when I increase the number of particles to 1E10. The term you want to search for is variance reduction.
  • #1
Salman Khan
19
1
Can any one please explain if I want to run mcnp 5 input file of certain geometry for flux calculation on different surfaces. So far as I know If I increase the NPS (number of particles) it wll give more accurate result but when I increase NPS from 10e9, input file do not run and close within a second ?
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
What error do you get on the command line, what errors are in the output file? What OS and what version of MCNP? What is the input file? What computer is it running on and how much memory does it have?

That is a very high value for NPS and if your result isn't statistically significant there are usually better ways of improving the answer, but I'm surprised it fails to run.
 
  • #3
Thanks for your comments, I am using laptop 4 Gb ram and 1.7 GHz processer, my input file run and gives result for NPS 1e9 but as I increase NPS to 1e10,
fatal error. entries must be integers appeared in output file
 
  • #4
Ooohhhh, 1e10 does not work. You have exceeded max int would be my guess.

I would make the problem more efficient. That is an abnormally high value. You could force things with tricks but I would avoid this.
 
  • #5
Ok got it, but if I have a source of activity let say 1e18, then how the remaining particles wll be compensated ? as we have the possible available option for 1e9 only??
 
  • #6
Most MCNP runs are time independent because most particle transport is time independent. Two neutrons passing close by do not 'see' one another so one neutron only exists at any one time per thread. Two electrons would affect each other in the real world but this is not simulated.

All the tallies will produce an answer that is per source particle. More source particles simulated will make the answer more trustworthy. The statistics on the numbers will be better as they get closer to the 'true' result.

To simulate 1e18 you could enter nps 1e6, and then multiply the tally at the end by 1e18. The same answer would be true for a source twice as strong, except you would multiply by twice as much. 1e6 might be enough for many problems but too few for some.

The ps in nps does not mean 'per second' btw. I am not sure what it actually stands for but it is the number of particle 'histories' (MCNP speak for seeing what happens to a source particle) to run before it stops. It has nothing to do with the strength of the source.
 
  • #7
Alex A said:
Most MCNP runs are time independent because most particle transport is time independent. Two neutrons passing close by do not 'see' one another so one neutron only exists at any one time per thread. Two electrons would affect each other in the real world but this is not simulated.

All the tallies will produce an answer that is per source particle. More source particles simulated will make the answer more trustworthy. The statistics on the numbers will be better as they get closer to the 'true' result.

To simulate 1e18 you could enter nps 1e6, and then multiply the tally at the end by 1e18. The same answer would be true for a source twice as strong, except you would multiply by twice as much. 1e6 might be enough for many problems but too few for some.

The ps in nps does not mean 'per second' btw. I am not sure what it actually stands for but it is the number of particle 'histories' (MCNP speak for seeing what happens to a source particle) to run before it stops. It has nothing to do with the strength of the source.
Thanks alot Alex,
 
  • #8
Salman Khan said:
Can any one please explain if I want to run mcnp 5 input file of certain geometry for flux calculation on different surfaces. So far as I know If I increase the NPS (number of particles) it wll give more accurate result but when I increase NPS from 10e9, input file do not run and close within a second ?
Just for fun, try writing that as 10000000000 not 1E10. It probably won't make any difference, but it might. I don't recall exactly what the limit on an integer is for MCNP 5, but I seem to recall it was bigger than 1E9.

If you are still getting answers with too large uncertainty, there are a lot of things you can do other than increasing the number of particles. The term you want to search for is variance reduction. The MCNP user manual has quite a bit to say on this. It may be a bit like drinking from the fire hose. If you more questions about this, do come back and ask more. The specific thing you do depends on your exact calculation.

 
  • Like
Likes Salman Khan
  • #9
Thanks alot Grelbr.
 

1. How do I specify the geometry in the MCNP 5 input file?

To specify the geometry in the MCNP 5 input file, you will need to use the appropriate MCNP 5 geometry commands. These commands include SURFACE, CELL, and MATERIAL cards, which allow you to define surfaces, cells, and materials, respectively. You can also use transformation and lattice commands to create more complex geometries.

2. What is the difference between input and output files in MCNP 5?

The input file in MCNP 5 contains all the information necessary to run a simulation, including the geometry, materials, and other parameters. The output file, on the other hand, contains the results of the simulation, such as flux calculations and particle tracks. Both files are essential for running and analyzing MCNP 5 simulations.

3. Can I use MCNP 5 to calculate flux for any type of geometry?

Yes, MCNP 5 is a versatile simulation code that can handle various types of geometries, including simple and complex geometries. However, it is essential to ensure that your input file accurately represents the geometry you want to simulate to obtain accurate flux calculations.

4. How can I validate the results of my flux calculations in MCNP 5?

There are several ways to validate the results of your flux calculations in MCNP 5. One way is to compare your results with experimental data or other simulation codes. You can also perform sensitivity analyses by varying input parameters and observing the effect on the flux calculations.

5. Can I run multiple simulations with different input files in MCNP 5?

Yes, you can run multiple simulations with different input files in MCNP 5. This can be useful for comparing the results of different geometries or input parameters. However, it is essential to keep track of the input files and their corresponding output files to avoid confusion and ensure accurate analysis of the results.

Similar threads

  • Nuclear Engineering
Replies
1
Views
1K
Replies
5
Views
2K
Replies
6
Views
1K
  • Nuclear Engineering
Replies
2
Views
2K
Replies
3
Views
2K
  • Nuclear Engineering
Replies
10
Views
2K
  • Nuclear Engineering
Replies
4
Views
2K
Replies
5
Views
871
Replies
2
Views
3K
  • Nuclear Engineering
Replies
1
Views
3K
Back
Top