MCNP PTRAC card help

Click For Summary
SUMMARY

The discussion centers on using the PTRAC card in MCNP to analyze particle interactions with a specific cell and their contribution to a surface tally. The user reports issues with the PTRAC output being unintelligible and seeks clarification on the meaning of the output message indicating "binary file ptrac written with 10000 events from 9111 histories." This message confirms that 9111 simulated particles met the criteria set by the PTRAC card, and the user is encouraged to refine their input deck for clearer results.

PREREQUISITES
  • Familiarity with MCNP (Monte Carlo N-Particle Transport Code)
  • Understanding of the PTRAC card functionality in MCNP
  • Knowledge of surface tally methods in particle transport simulations
  • Basic skills in interpreting MCNP output files
NEXT STEPS
  • Review the MCNP documentation on the PTRAC card for detailed usage guidelines
  • Learn how to properly configure surface tally parameters in MCNP
  • Investigate common troubleshooting techniques for MCNP output issues
  • Explore advanced filtering options in MCNP to refine simulation results
USEFUL FOR

Researchers, nuclear engineers, and simulation specialists working with MCNP who need to analyze particle interactions and improve the accuracy of their simulation outputs.

MadGander
Messages
28
Reaction score
1
TL;DR
Need help setting up and interpreting my PTRAC output.
Hi all,

I'm attempting to simulate a very specific setup in MCNP. I want to know the fraction of particles contributing to a surface tally that previously interacted (scattered) with a specified cell. I'm currently doing this via the PTRAC card as well as FILTER. Currently, my PTRAC is outputting gibberish. I'm also curious what the number is at the bottom of my regular output... "binary file ptrac written with 10000 events from 9111 histories." Does this mean 9111 simulated particles fit the requirements of the PTRAC card? I've attached my input deck below. Any help is appreciated.
 

Attachments

Engineering news on Phys.org
OK, a year old post with no answer. Probably it is too late to do anybody any good.

PTRAC files can be text or binary depending on the options you choose. Check the manual entry for the card that produces the PTRAC file. The message you quote says "binary file" so probably you have chosen the wrong one.

PTRAC files are often HUGE. By default, they produce many lines of output for the history of every particle produced. You want to put careful limits on what is produced and how many histories are included. Otherwise you are likely to get many gigabytes of data.

Depending on what you select to be output, you should see things like the x,y,z coords of every event on a particle's history, the momentum px, py, pz, the type of interaction, and some other stuff I don't recall without looking in the manual.

I have used PTRAC to debug complicated source terms by limiting the output to just the particle's origin, then listing only the first 1000 histories or such. Also, when MCNP loses a particle, it will produce some PTRAC-like info for the particle that gets lost.
 
  • Informative
Likes   Reactions: Alex A

Similar threads

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