MCNP6.2 - SDEF position related keywords

  • Thread starter Thread starter 19matthew89
  • Start date Start date
  • Tags Tags
    Position
Click For Summary

Discussion Overview

The discussion revolves around the use of position-related keywords in the MCNP6.2 source definition, specifically addressing the constraints outlined in the MCNP manual regarding dependent distributions of the POS keyword. Participants explore the implications of these constraints and share experiences related to defining complex surface sources.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion over the MCNP manual's statement that position-related keywords cannot be dependent on POS, citing examples from the manual that seem to contradict this.
  • Another participant suggests experimenting with the FPOS keyword to see if it functions as intended, recommending a simplified test case to verify its behavior.
  • Multiple participants affirm that FPOS can be used with MCNP for parameters that depend on position, providing examples of how to define a source with energy dependent on position.
  • Concerns are raised about the manual's comment on FPOS, with one participant referencing a paper that critiques the functionality of FPOS, indicating potential issues or misunderstandings in its application.

Areas of Agreement / Disagreement

There is no consensus on the interpretation of the manual's statement regarding FPOS and its allowed usage. While some participants assert that FPOS can be used, others highlight potential discrepancies and issues noted in external sources.

Contextual Notes

Participants note the complexity of defining sources in MCNP and the potential for misinterpretation of the manual's guidelines. The discussion reflects varying levels of understanding and experience with the software.

19matthew89
Messages
46
Reaction score
12
TL;DR
It's unclear whether SDEF position related keywords could be dependent on POS
Hi everyone,

I have started delving into the "nightmare" of source definition and in my opinion, the MCNP manual here sounds even more cryptic and obscure than in other sections.

By the way, I have a question related what is reported in paragraph 5.8.1 of the MCNP® Code Version 6.3.0 Theory & User Manual. It says:
"None of the position-related keywords (i.e., CEL, SUR, RAD, AXS, EXT, X, Y, Z, and CCC) can be a dependent distribution of POS."
So from what I understand, none of the position-related keyword could be defined as dependent on POS, so namely expressions like "EXT=FPOS=D1" or "RAD=FPOS=D1" are not legit.

However, there are examples of this use.

For instance in the manual itself: the Example 10 (paragraph 5.8.6..10 at page 402) defines the source as
Code:
SDEF PAR=SF CEL=D1 POS=D2 RAD=FPOS=D3
.

So, according to your experience, is the command allowed and works? I ask because, I plan to define a pretty complicated surface source and at the moment the most intuitive way of defining it would be exactly via a FPOS.

Thanks a lot in advance
 
Last edited:
Engineering news on Phys.org
My suggestion is to give it a whirl and use ptrac to see where the first thousand or so particles are created. Maybe you don't have to use the complete complicated source you intend for your final situation, just enough to demo that it will or will not work as you need.
 
  • Like
Likes   Reactions: 19matthew89 and Alex A
@19matthew89
yes you can use Fpos with MCNP "parameters depend of the position"
for example you want to simulate a source whose energy depends on the position you can write:

sdef pos=d1 par=p erg=fpos=d2
si1 L 0 0 0 0 0 10
sp1 1 1
DS2 S 3 4 $ energy is function of position
SI3 L 1.17 1.33 $ in (0,0,0) energy= 1.17 and 1.33 MeV
SP3 1 1
SI4 L .511 $ in (0,0,10) energy=511 keV
SP4 1

It is a simple example. You can imagine fpos for rad, cel, ...
hope your supervisor is ok with that :wink:
 
  • Informative
Likes   Reactions: 19matthew89
PSRB191921 said:
@19matthew89
yes you can use Fpos with MCNP "parameters depend of the position"
for example you want to simulate a source whose energy depends on the position you can write:

sdef pos=d1 par=p erg=fpos=d2
si1 L 0 0 0 0 0 10
sp1 1 1
DS2 S 3 4 $ energy is function of position
SI3 L 1.17 1.33 $ in (0,0,0) energy= 1.17 and 1.33 MeV
SP3 1 1
SI4 L .511 $ in (0,0,10) energy=511 keV
SP4 1

It is a simple example. You can imagine fpos for rad, cel, ...
hope your supervisor is ok with that :wink:
Thanks a lot! I will try it straightaway!
I'll check anyway the origin of particles via the Table 110 to be sure!
Absolutely...my supervisor is totally ok with that ;)

So...what about the comment in the manual then? What does it mean?
I ask also because, poring over the topic, I found this paper too (https://www.sciencedirect.com/science/article/pii/S0306454907001788) where the author caustically complains (section 3 and 4) that FPOS is misbehaving and not working.
 

Similar threads

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