# Question about USRBIN

**URL:** <https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417>\
**Category:** Scoring\
**Created:** [25 March 2023 10:44 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417 "2023-03-25T10:44:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Zhou](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@Nicolas\_Zhou](https://fluka-forum.web.cern.ch/u/Nicolas_Zhou)\
**Post date:** [25 March 2023 10:44 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/1 "2023-03-25T10:44:51Z")

</div>

Dear FLUKA experts,I have a question when I use USEBIN to calculate PHOTON flux, the result always shows wrong.  
It says :  
line 0:color axis has cb coord of -1;must be above 0 for log scale!  
ERROR: Gnuplot errors or warnings found.  
And if I don’t selet the LOG switch , the plot will be  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/9/9b2d65de56e2d23430c0e64cf03905b0eee50d15.png)  
Can you help me please?  
Many thanks for your help.  
[testnow.flair](https://fluka-forum.web.cern.ch/uploads/short-url/e7vuJWVTa4Xvlk4EcaY5xv73Cs4.flair) (3.9 KB)  
[testnow.inp](https://fluka-forum.web.cern.ch/uploads/short-url/nWVLunXmcERBg2muPjZlKzDjO60.inp) (4.1 KB)

---

<div class="post-metadata">

**Author:** ![Mihaela\_Parvu](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mihaela_parvu/32/4005_2.png) [@Mihaela\_Parvu](https://fluka-forum.web.cern.ch/u/Mihaela_Parvu)\
**Post date:** [25 March 2023 11:42 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/2 "2023-03-25T11:42:15Z")

</div>

Dear @Nicolas_Zhou,

You need to use the RADDECAY card in semi-analogue mode and you will see also the photons.

You can also take a look at this very useful [post](https://fluka-forum.web.cern.ch/t/question-about-raddecay-modes/3171/4).

Regards,  
Mihaela

---

<div class="post-metadata">

**Author:** ![Nicolas\_Zhou](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@Nicolas\_Zhou](https://fluka-forum.web.cern.ch/u/Nicolas_Zhou)\
**Post date:** [25 March 2023 11:53 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/3 "2023-03-25T11:53:38Z")

</div>

Dear @Mihaela_Parvu , I cnanot understand why I need to use the RADDECAY card in semi-analogue mode. When I start a new project, it is able to show the photon flux without RADDECAY card whether it is in active mode or semi-analogue mode, but it dosen’t happen in this project.  
Many thanks for your help.

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [25 March 2023 13:30 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/4 "2023-03-25T13:30:58Z")

</div>

Indeed the use of RADDECAY in the activation mode (WHAT(1)=1.0, _Active_ in Flair) is the correct one in this case, where decay radiation, originated from material activation induced by the proton beam, is scored at given cooling times. The problem is still related to RADDECAY, though, since there **you inhibit the prompt electromagnetic transport** (see WHAT(5) in the manual) and so you cannot get any prompt photon.

Consider that your input features useless and even harmful cards: PHYSICS/PEATHRES, MUPHOTON and PAIRBREM are redundant (what they ask for is already activated by default, and in addition it’s pointless for this problem), PHOTONUC/MUMUPAIR has no point, and PHYSICS/IONSPLIT is inhibiting the use of the new deuteron interaction model, available since 2021 (FLUKA v4-2) and here switched off without any reason.  
Also, note that your biasing, setting decreasing importance for more peripheral regions, is doing the opposite of what it is designed for, spoiling the statistics through the lead shielding, after increasing it only at the passage from the copper target to the A1 layer (from default importance 1 to A1 importance of 125, where anyway the importance ratio 125/1 is automatically limited by FLUKA to the maximum value of 5).

---

<div class="post-metadata">

**Author:** ![Mihaela\_Parvu](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mihaela_parvu/32/4005_2.png) [@Mihaela\_Parvu](https://fluka-forum.web.cern.ch/u/Mihaela_Parvu)\
**Post date:** [25 March 2023 14:20 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/5 "2023-03-25T14:20:08Z")

</div>

Dear Francesco,

In this case, is the use of RADDECAY card in the activation mode the same as the semi-analogue mode along with the TIME-CUT card for photons?

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [25 March 2023 14:44 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/6 "2023-03-25T14:44:20Z")

</div>

Hi Mihaela,

no. RADDECAY in the activation mode allows you to get **the decay photon fluence rate at a given cooling time** (note that @Nicolas_Zhou was actually scoring in the concerned USRBIN _prompt_ photons, i.e. not originated by the decay of radioactive residues). In semi-analogue mode, along with TIME-CUT, you get **the fluence of all photons emitted until the cutoff time**. In the first case it’s an instantaneous fluence rate, while in the latter case it’s a fluence cumulated over a time interval.

---

<div class="post-metadata">

**Author:** ![Nicolas\_Zhou](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@Nicolas\_Zhou](https://fluka-forum.web.cern.ch/u/Nicolas_Zhou)\
**Post date:** [26 March 2023 08:13 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/7 "2023-03-26T08:13:35Z")

</div>

Dear @ceruttif  
Thanks for your advise. I reduse the PHYSICS/PEATHRES、MUPHOTON and PAIRBREM PHYSICS/IONSPLIT card and the project dosen’t run. But when I just put the PHYSICS/IONSPLIT card back, it works again.  
Can you help me with this problem?  
Thank you very much

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [26 March 2023 09:01 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/8 "2023-03-26T09:01:16Z")

</div>

Which FLUKA version are you using? To know it, read the file _Version.tag_ in the main directory of the FLUKA installation or press the button _Updates_ in the first tab of Flair.  
The latest versions to be used are 4-3.1 for FLUKA ([Download latest FLUKA release | The official CERN FLUKA website](https://fluka.cern/download/latest-fluka-release)) and 3.2-2 for Flair ([Official flair site](http://flair.cern/download.html)).

---

<div class="post-metadata">

**Author:** ![Nicolas\_Zhou](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@Nicolas\_Zhou](https://fluka-forum.web.cern.ch/u/Nicolas_Zhou)\
**Post date:** [26 March 2023 09:05 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/9 "2023-03-26T09:05:31Z")

</div>

Dear @ceruttif  
I check it and both FLUKA and Flair is the lastest version(4-3.1 and 3.2-2).

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [26 March 2023 09:21 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/10 "2023-03-26T09:21:17Z")

</div>

The error message you can read at the end of the **001.out file** is:

```auto
 Coalescence activated and beam above BME limit with no rQMD

```

You should just use the FLUKA executable including the RQMD and DPMJET libraries: in the Runs tab of Flair, select **\<flukadpm\>** in the Exe field.

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [17 April 2023 06:17 UTC](https://fluka-forum.web.cern.ch/t/question-about-usrbin/4417/11 "2023-04-17T06:17:47Z")

</div>

Closed on 17 April 2023 06:17 UTC


