X-ray source energy spectrum definition

Versions

FLUKA: 4-5.2
Flair: 3.4-5.4

Description

Dear Experts,

I am following the user manual to set up an X‑ray source with a custom energy distribution, using the sample_histogram_momentum_energy(). In my model, I have placed a USRTRACK scoring card in front of the source to record the outgoing X‑ray energy spectrum.

Before running, I compiled the user routine and selected the newly generated executable at runtime. I have also placed the spectrum file, the executable, and other relevant files in the same directory. However, after running the simulation, the result still appears as a monoenergetic source at 150 keV.

Could anyone kindly advise which step I might have done incorrectly? Thank you in advance for your help.

Luyu Zhong

Input files

Xray.flair (6.4 KB)

Xray150keV_h.txt (542 Bytes)

EnergySpectrum.f (22.2 KB)

Xray_24_tab.lis (9.0 KB)

Xray.inp (2.3 KB)

Dear Luyu,

You forgot to delete the * at the beginning of the line, thus not activating the sampling function.

Also a note: You should use the EMFCUT card to lower the photon and electron threshold, since your spectrum goes down to the 10 keV range.

Cheers,
David