[fluka-discuss]: RE: Fluka custom source

From: Joachim Vollaire <joachim.vollaire_at_cern.ch>
Date: Wed, 4 Jul 2018 13:33:16 +0000

Hi
To use a user routine and create your own executable the following commands from a terminal should work (FLAIR is an alternative):

$FLUPRO/flutil/fff source.f
Which will create an object file

Create a new executable with a name relevant for you


$FLUPRO/flutil/lfluka -m fluka -o YOURFLUKA source.o

Run FLUKA with the executable you created (the path to the data file in your source routine should be coherent with the location from where you are running the code)

$FLUPRO/flutil/rfluka -e YOURFLUKA -M1 scint.par.inp

Greetings
Joachim

From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> On Behalf Of Thomas Grandsaert
Sent: 04 July 2018 14:36
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Fluka custom source

Dear fluka experts,

I am attempting to use the following source.f subroutine as well as attached particle data file to use as a custom source for the attached input file. (I have added a source card to the input file)

The command I used:
$FLUPRO/flutil/rfluka -e source.f -M1 scint.par.inp

When running the input file it compiles and runs, but when using the subroutine, the simulation starts then ends very quickly, produces no output files, and leading me to believe that something is wrong with my source.f subroutine.

If someone could take a look when you have a chance that would be very much appreciated.

Cheers,
T


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Jul 05 2018 - 01:48:37 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 05 2018 - 01:48:46 CEST