N-Tof examples for Flair

Dear Fluka/Flair users,

I am fighting since days to identify what is not working in this example offered on the Fluka site.
I made 3 screen shots to cover the full program that I wrote in Flair.
I am near to give up. I do not see any difference with the example given
if someone can have a look, the help would be more than welcome.

best regards
Fabrice

Dear Fabrice,

please attach your flair project file to a post using the upload upload function.
This way it would be much easier for us to find what is the problem.
(Also, one of the screenshots is missing.)

Cheers,
David

Dear David,

thank you for your quick answer.
I would like to attach this flair program directly but if I put screen shots instead it is because I an running Fluka ./ Flair through Ubuntu on a windows10 machine.
The web-brower and my mailbox are on windows. I have no idea how to transfer files from Ubuntu to a windows directory and then to attach to my messages!
if you can tell me how to manage, then I will do it.

regards
Fabrice

Dear Fabrice,

If you are using Ubuntu with WSL in Windows 10, then you can access your windows drives through the directories like: /mnt/c, /mnt/d, etc.

Cheers,
David

Thanks a lot again David,

here we go …

regards
F.

ntof_example1.flair (2.1 KB)

Dear Fabrice,

if you switch to the Geometry tab in Flair, you can see, that you have geometry errors:

  1. In the VOID region you need to subtract the watercnt body instead of the pbtarget one.

  2. in the WATERCNT region definition, you are missing the | charater in front of the +niche

After fixing both, I was able to run the simulation.

Cheers,
David

Hi David,
I corrected the file accordingly. The errors found in geometry have now desappeared.
Then I went to the RUN tab, and clicked on Start button.
After a 3 seconds, I got on the Status : Finished with errors (in red).
if it is OK for you, why is it not so for me ?
Cheers
Fabrice

Dear Fabrice,

without your updated input file – or the error messages in the .err, .log and .out files --, it is impossible to tell what is the problem.

Please attach at least the Flair project file.

Cheers,
David

Dear David,

thanks a lot again for helping me.
I attach the corrected flair file and its .out.
I would have never beleived that I could start with Fluka with so much complications !

Best regards
F.
ntof_example1.flair (2.1 KB) ntof_example1.out (477 Bytes)

Dear Fabrice,

I tried to run your input, and it was working for me.
Could you post the .err, .log and .out files from the fluka_xxx folder?

Cheers,
David

I found the fluka folder where the last files were generated.
BUT they are named fort11 and fort15 pointing to ntof_example1001 .out and .err respectively.
No idea how to access them and to copy them here.

Hi,

do you have the ntof_example1001.out, ntof_example1001.err and ntof_example1001.log in the folder with the flair project?

Cheers,
David

My last tentative to run the program gave in the structure “Fluka_451”
fluka_451/core
fluka_451/ntof_example1.inp
fluka_451/ntof_example1001.log
in the directory I got fort.11 and fort.15 as mentionned before. No idea how acces them.

Hi,

so, what does the fluka_451/ntof_example1001.log contain?
What files do you have in the folder, which has fluka_451?

Cheers,
David

Hi DAVIS,

here is a view of what I see from the flair interface. There is not .err or .out file!
Flair_NTOF_example_view|690x332
Cheers,
Fabrice

Hi Fabrice,

can you open fluka_451/ntof_example1001.log?

Also, can you click the 001 to see what files are there?

Cheers,
David

Hi david,

here are the views of the content:

cheers
F.

Hi Fabrice,

good, now I know what is the problem.

Can you tell me the version of the gfortran compiler on your system. (In the WSL command line type: gfortran --version)
And do you know which FLUKA package did you install? (gfortran 7 or 9, deb or tgz)

Cheers,
David

Hi David,

for gfortran this the version 8.3.0
the Fluka package came already installed on the laptop .
I checked what was downloaded.


but it does not guaranty that gfor9.tar what the installed one even if the last downloaded.
regards
Fabrice

Dear Fabrice,

I think the best option would be to uninstall FLUKA.

  1. First try with sudo apt remove fluka
    If it doesn’t work delete the whole /usr/local/fluka directory.

  2. Download the gfor9.tgz package again from https://fluka.cern/download/latest-fluka-release

  3. Install FLUKA following the instructions from here: https://fluka.cern/documentation/installation/fluka-linux-macos

Cheers,
David