MCNP -- What is meant by 2M and 20R?

Click For Summary
SUMMARY

The discussion clarifies the meanings of the notations 2M and 20R in the context of MCNP (Monte Carlo N-Particle Transport Code). Specifically, 'M' stands for multiply, 'R' signifies repeat, and 'I' indicates interpolate. For example, the notation '20M' translates to multiplying the number 20, while '8R' means repeating the number 8 eight times. This shorthand notation simplifies the representation of long lists of numbers in MCNP input files.

PREREQUISITES
  • Understanding of MCNP (Monte Carlo N-Particle Transport Code)
  • Familiarity with numerical notation and shorthand in programming
  • Basic knowledge of interpolation and repetition concepts
  • Experience with input file formatting in simulation software
NEXT STEPS
  • Research MCNP input file syntax and structure
  • Learn about numerical shorthand in programming languages
  • Explore advanced MCNP features for efficient data representation
  • Study interpolation techniques in computational simulations
USEFUL FOR

Researchers, physicists, and engineers using MCNP for particle transport simulations, as well as anyone involved in numerical data representation and optimization in computational modeling.

Anisur Rahman
Messages
15
Reaction score
1
TL;DR
MCNP Importance
Screenshot 2023-10-06 221708.png
What is meant by 2M and 20R here?
 
Engineering news on Phys.org
Welcome to PF!

M I didn't know, but I and R are common. I means interpolate, R means repeat and M turns out to mean multiply.
So in any long list of numbers,
5 20M 20M
Would be the same as,
5 100 2000
and
7 8R
Would be the same as,
7 7 7 7 7 7 7 7 7
and
1 8I 10
Would be the same as,
1 2 3 4 5 6 7 8 9 10
(I think, I make a lot of off by one errors using I, it's not in your question but it saves soooo much effort writing tally bins you should know it)
 
  • Informative
Likes   Reactions: berkeman
Thank you so much!
 
  • Like
Likes   Reactions: berkeman

Similar threads

Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K