Compute the relative error in FLUKA

Dear FLUKA experts,

I am currently simulating the interaction of a runaway electron beam with a tungsten target using FLUKA. In order to determine an appropriate number of primaries and cycles, I would like to accurately evaluate the relative statistical error associated with the USRBIN scoring of the energy deposition.

I have read on the forum that usbsuw and usbrea can be used for this purpose, but I am not fully understanding how to use these tools. Could you please provide guidance on how to correctly extract and interpret the relative errors from these utilities?

Thank you in advance for your assistance.

I attach here my input file:

baselineW.inp (1.7 KB)

(To run the simulations I am using the command “rfluka -M 5 -e mix baselineW.inp” from the terminal, mix is my executable).

Cheers,
Alessio

Hi Alessio,

I’d warmly recommend to use Flair to check your input, run your simulation and process the USRBIN results. This way, usbsuw is automatically invoked by the Process button in the Run/Data tab of Flair, which provides it with the expected list of unformatted USRBIN files from each cycle and eventually the name of the unformatted summary file that will be generated (in the Output tab of Flair you can also see how usbsuw is run from the command line). Moreover, the Plot tab of Flair will allow you to visualize the statistical error spatial distribution contained in the aforementioned unformatted summary file.
If you want to get the numbers of the latter (which are given in percentage), the unformatted summary file is indeed converted into a readable file by usbrea, which expects the name of both files, one after the other. Again, usbrea is automatically invoked by Flair, by right-clicking on the unformatted summary file in the Run/Files tab and selecting To ascii.