Re: [fluka-discuss]: change random seed

From: Horváth Dávid <David.Horvath_at_eli-beams.eu>
Date: Wed, 27 Mar 2019 15:45:05 +0000

Dear Alessandro,

you can use sed to replace the RANDOMIZ line in the input file with a new one. Take a look on the following partial bash script.

seed_string=`printf "% 8i" ${seed}`
sed -i "s/^RANDOMIZ.*/RANDOMIZ 1.0${seed_string}.0/" ${inputfile}

I hope this helps.

Kind regards,
Dávid Horváth

Junior Researcher
Radiation Protection
ELI Beamlines

E: david.horvath_at_eli-beams.eu
T: +420 266 051 283
M: Za Radnicí 835, 25241 Dolní Břeľany, Czech Republic


________________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Alessandro <alex.calamida2_at_tiscalinet.it>
Sent: 27 March 2019 15:40:08
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: change random seed

Dear FLUKA experts,

We are going to do some heavy simulations. To speed ut the calculation
time we thought to launch more simulations in series with a fewer number
of particles. To avoid having the same results we want to change the
seed of the random number generator. I want to ast to you if it is
possible to change it using the include comand or you think there is a
better solution? The complete idea is to use a bash file to change the
seed and then relaunch the fluka run. In this way, it will be possible
to do all of this using only one comand on the server.

Thank you in advance and best regards, Alessandro Calamida.

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Mar 27 2019 - 17:55:37 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 27 2019 - 17:55:39 CET