Source_newgen.f for dummies (me)

Versions

FLUKA:4-5.0
Flair: 3.4-3
Operating system: Unix
Compiler:

Description

Dear experts,

I find myself once again using Fluka, and I would simply like to describe the electron source I want to simulate using an experimental energy distribution (“Spectr15.txt”).
I modified the file “source_newgen.f” accordingly, but Fluka doesn’t read the values from the file.
Obviously I’m making a mistake somewhere, but where? :disappointed_face:

Thanks in advance!!

Tibe

Input files

Emma_Back.flair (4.8 KB)

Spectr15.txt (23.8 KB)

source_newgen.f (18.8 KB)

Dear Tibe,

I don’t see anything inherently wrong with your use of the source routine.
You may forgot to recompile your executable after changing the routine, thus you don’t see what you expect.

Two comments:

  • The Shape options on the BEAM card are ignored if you are using a source-newgen routine, you need to add the starting location sampling by hand.
  • The USRBDX card requires two regions which have a common surface to work.

Cheers,
David

HI David,

thanks a lot for your answer. I disabled the SOURCE card on the input file and now it works.
Nevertheless, I got nothing when I try to plot the USRBDX generated histogram distribution as the_tab.lis file is empty (and this happens for every couple of adjacent regions I choose to look at).

Emma_Back_50_tab.lis (87.8 KB)

Dear TIbe,

So sorry for the delayed reply! I hope you managed to fix the issue in the meantime.

The problem could arise from the errors in your geometry, where regions overlap. See:

Cheers,
David

Hi David,

you are (as usual) right. I have completely redefiined the different regions and now everithins works fine! :slightly_smiling_face:
Thanks a lot.
All the best,

Tibe