[fluka-discuss]: Re: Modelling a polychromatic X-ray source

From: Fasso, Alberto <fasso_at_slac.stanford.edu>
Date: Wed, 2 Sep 2015 14:11:48 +0000

Dear Faith,
in your source routine you have:
    DO I = 1, NMAX
         IF ( XI .LT. CUM(I)) GOTO 1201
      END DO
C Determaining the energy inside bin I according to linear spectrum
      XI = (XI - CUM(I - 1)) / (CUM(I) - CUM(I - 1))

But variable I (for instance in CUM(I-1)) has no defined value. When you exit
the DO loop just above, the value of I is lost. You must save it if you want to use it.



From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of f.h.green_at_surrey.ac.uk <f.h.green_at_surrey.ac.uk>
Sent: Wednesday, September 2, 2015 4:05 AM
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Modelling a polychromatic X-ray source

Hi all,

I had some help a while back with creating a polychromatic X-ray source using a modified source.f file and a .dat file with the spectrum info in.

This worked fine with the spectrum.dat file given to me but when i try to recreate this with a spectrum of my choosing the simulation won't run and just *times out*

I was wondering if any of you know what I am doing wrong?

I have attached the input file, modified source file and the spectrum data i am trying to use.


You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Sep 02 2015 - 17:51:22 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 02 2015 - 17:51:28 CEST