MCNP6.2 - ENDF/B reaction numbers for tally multiplier

  • Thread starter Thread starter 19matthew89
  • Start date Start date
  • Tags Tags
    Mcnp Reaction rate
Click For Summary

Discussion Overview

The discussion revolves around setting up a tally multiplier for a nonelastic (n,n') reaction in MCNP6.2, specifically regarding the use of ENDF/B reaction numbers and the challenges faced while plotting cross sections. Participants explore the correct configuration of the tally and address issues related to plotting cross sections using the MCNP code.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning
  • Experimental/applied

Main Points Raised

  • One participant seeks guidance on setting up a tally multiplier using MT=4 from the ENDF/B library, noting the absence of examples in the manual.
  • Another participant suggests that positive reaction numbers corresponding to the ENDF/B should be used, referencing an example from the manual.
  • Discussion includes the ability to plot reaction cross sections in MCNP, with some participants noting that descriptions may vary between ENDF versions.
  • One participant expresses difficulty in using the MCNP plotter for cross sections, specifically mentioning issues with input files and the need for correct file paths.
  • Another participant provides a potential solution for plotting cross sections, emphasizing the requirement for a normal input file that describes the relevant materials.
  • One participant encounters errors related to the DATAPATH variable and missing xsdir files, suggesting installation issues may be at play.
  • Another participant proposes that the issue might stem from a corrupt input file rather than installation problems, requesting to review the input file for further troubleshooting.
  • A participant shares that they are working on a cluster and cannot modify installations, mentioning the possibility of using ACE files for plotting cross sections through a Python script.
  • One participant mentions that older versions of MCNP do not generate the same error and suggests checking for DATAPATH variables and xsdir files.
  • A later reply confirms that setting the DATAPATH environment variable resolved the issue, but notes a conflict with the SSR card when plotting cross sections.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to resolve the plotting issues, with multiple views on whether the problems are due to installation errors or input file corruption. The discussion remains unresolved regarding the optimal setup for tally multipliers and plotting cross sections.

Contextual Notes

Participants mention limitations related to the installation of MCNP on shared systems, the need for correct file paths, and potential conflicts between different cards in the input files. Specific details about the versions of MCNP and the libraries being used are also noted.

19matthew89
Messages
46
Reaction score
12
TL;DR
How may I use ENDF/B reaction numbers?
Hi everyone,

I am trying to evaluate the spectral index of an nonelastic (n,n') reaction. For that I want to set up a tally multiplier on a cell (let's call it cell 10). The reaction is present in the ENDF/B library as MT=4 but I have not seen it in the table of the special reaction numbers which can be used in MCNP (table 5.18 of the manual LA-UR-22-30006, Code Version 6.3.0, https://mcnp.lanl.gov/manual.html) . However, the manual says that either ENDF or special number reaction numbers could be used, but there is no example of how to set a reaction list using the ENDF library. So...how do I set up the tally with this reaction? Using MT=4?

See my tentative example below:

Code:
F4:N 10
E4 1 20
FM4 (-1 100 MT=4) T
SD4 1

I set the energy with this energy binning because I'm interested in E>1 MeV and 100 is the virtual material I'm interested, so not used in defining any cell.

Thanks in advance
 
Engineering news on Phys.org
Ah! Solved...I think.

5.9.7.8 Example 6 (Lifetime Calculation/Reaction Rates) of the manual uses positive reaction numbers, which should be the ones corresponding to the reaction number of the ENDF/B
 
  • Like
Likes   Reactions: Alex A
Yes, and you can plot the reaction cross section in MCNP if you want to make sure it is what you think it is. Some of the more obscure ENDF reaction descriptions change between versions.
 
  • Like
Likes   Reactions: 19matthew89
Ow! Thanks!

Indeed I wanted to check the cross section.
I know that in theory the MCNP plotter would allow you to plot both cross section and reaction rates but I have never managed to have it working.

I can run the MCPLOT (i.e. the command "MCNP6 Z" works) but if I try to launch

mcnp6 ixz i=inputfile

that does not work. I think it's not clear to me which input file I have to give as it says that "Cross section plots cannot be made from a runtape or MCTAL file"...so what other file shall be given?
 
Try this, mcnp ixz inp=input
input needs to be a normal inp file which must describe materials with the isotope you want to plot the cross section of. i means process input file, x means process cross sections, z means mcplot them.

If mcnp runs the file without error when run normally you should instead get a mcplot prompt (and no run). I'm using a random HEU containing input file using the 69c library. Entering,
xs=92235.69c mt=4
Produces a plot on my system.

I do not know how to plot results.
 
  • Like
Likes   Reactions: 19matthew89
Hi, thanks.

But unfortunately
mcnp ixz inp=input
does not work, despite the code running smoothly when launched for simulation. I am using the default library for cross section (so, not specifying any library and just defined my material without adding any .XXX notation). In fact, in the output file it specifies the library as ".80c".

The errors that pop up are:
"error: searched directories:
DATAPATH must be set by user
DATAPATH must be set by user
fatal error. data file xsdir_mcnp6.2 does not exist.
fatal error. cannot open file xsdir_mcnp6.2"

Any idea about it?
 
Last edited:
It seems like you have not got the install correct. You need to set up paths so that MCNP can find the various libraries and datafiles.

The xsdir file is a listing of isotopes that exist in your library. If you get seriously "into" MCNP you can customize this file. For example, if you use NJOY to produce special purpose cross section libraries, you can add these to your xsdir file. The one that comes with MCNP seems to be the one it is asking for, and that seems not to be correctly hooked up.

The MCNP package comes with installation scripts. There should be some "readme" files in there with these scripts. Those should help you figure out how to install the various components.

On some operating systems, the usual thing is for there to be an install process that happens one time, and also a script you run each time you start a session to run MCNP. So the first part sets up the directories with the files and such that come with MCNP. And then when you start a login to run MCNP, you run a script to set up the paths for this login.

On Windows, you open a DOS prompt, then run a script to set paths (including DATAPATH), then run MCNP. You can set a DOS prompt icon to run the script then provide you a DOS prompt window. This is nice because you don't need to have system privs to install MCNP on Windows.

In LINUX you can add the script to your .login or some such, depending on your specific LINUX install.
 
  • Like
  • Informative
Likes   Reactions: Alex A and 19matthew89
This has more the feeling of a corrupt input file causing mcnp to explode than an install issue for me. I really don't know 6 that well though. Do check what is being suggested, but if you can share your input file could you rename it to add .txt and attach it to a post please?
 
Hi!
Thanks both.
Unfortunately, I'm also working on the cluster of my institute so I didn't actually install anything and cannot really modify anything there.

Here a minimal working example (I manage to plot the geometry so I hope it'll be enough to check if it's possible plotting the cross section).

I also found the ACE files of the library, but I guess I need to write a script in Python to read them and plot the cross sections based on those files.

Thanks in advance
 

Attachments

  • #10
I only have 5.1.60 and 6.1 to hand, neither is capable of generating the error you get and both just plot the xs fine. If you have an older copy on the cluster it might be worth trying that.

If you can, check if you have a DATAPATH variable, and what xsdir files are present. Maybe you are tripping a 6.2 only feature and it is an install issue like @Grelbr42 thinks but I am at a total loss as to why it only happens for an xs plot.
 
  • #11
Hi,

Solved!
I had indeed to set the DATAPATH environment.
Moreover, I also discovered that cross section plotter (at least in my version) has a conflict with SSR card in case you read a source collected via SSW. In the minimal working example I sent above I replaced the SSR originally present in my code with the SDEF and, once set the DATAPATH, it indeed worked and plotted the cross section.
However, if I tried to re-insert back the SSR card, it gave me problems again. So...mind that, in case.
 
  • Informative
Likes   Reactions: Alex A

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 13 ·
Replies
13
Views
31K
  • · Replies 1 ·
Replies
1
Views
2K