How do I plot a USRBIN X–Z slice (XZ view) in Flair? I get “Return code 8”

Versions

Please provide the used software versions.

FLUKA:fluka_4-5.0.
Flair:flair_3.4-2
Operating system:ubuntu24.04

Description

Data

  • USRBIN Unit 51 (pifluBin)ENERGY, accurate apportioning algorithm (WHAT(1)=10.0, Cartesian)

  • Grid: X −10..10 (NX=20), Y −10..10 (NY=20), Z 0..5 (NZ=5)

  • After usbsuw/usbrea I have pifluBin_sum.bnn and pifluBin_sum.lis (the .lis values look correct).

What I want

  • Display the result on the X–Z plane, e.g., a Y = 0 cm slice.

What I tried & the error

  1. Plot tab → File: pifluBin_sum.bnn

  2. Projection & Limits: X -10 1 10, Y -10 1 10, Z 0 1 5

  3. With the Z radio button selected (fix Z) and Axes: X–Z, clicking Plot gives
    Plot Error: Return code 8.
    If I keep Z radio but set Axes: X–Y, the XY slice draws fine.

  4. Pressing Output (bottom-right) also pops up “Cannot find any output file.”

Questions

  1. What is the correct combination of the fixed-axis radio button and the 2D Axes setting to draw an X–Z slice?
    My understanding is it should be Y radio (value = 0) + Axes: X–Z. Is that correct?

  2. What exactly causes “Return code 8” in this context—mismatch between the fixed axis and Axes selection, or an out-of-range slice?

  3. Does the “Cannot find any output file” popup relate to plotting at all, or is it just the Output viewer not finding a log/output file (and therefore safe to ignore for plotting)?

I can attach screenshots of the Plot settings, the .lis header/data, and both popups if helpful.

Input files

Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Dear @skh9130,

thank you for your question. Could you please attach the flair file you are using? It will be much easier to help you.

Best,

Davide

tul3.flair (3.0 KB)

pifluBin_sum.lis (49.8 KB)

Thanks for the response.

I’ve attached the file you asked for.

Dear @skh9130 ,

Thank you for the Flair file.
I run it but I am not able to reproduce your issue.

If you want to visualize the USRBIN in the XZ plane, you don’t necessarily have to select the limits for X and Z, or the axes. You can leave those blank and select Axes Auto. But you need to select the averaging range for Y (I have put -1 cm to 1 cm as example).

Let me know if even trying with this the issue persists.

Best,
Davide