Re: [fluka-discuss]: change random seed

From: Horváth Dávid <David.Horvath_at_eli-beams.eu>
Date: Thu, 28 Mar 2019 10:15:43 +0000

Dear Alessandro,

please keep the discussion on the mailing list, to help other as well.

Yes, the partial code I provided in my previous mail replaces it in place.
So bash script in theory will create a separate subfolder for each job, copies the "master" input file there, replaces the RANDOMIZ line, and starts the FLUKA run.

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: Alessandro <alex.calamida2_at_tiscalinet.it>
Sent: 28 March 2019 11:03:39
To: Horváth Dávid
Subject: Re: [fluka-discuss]: change random seed

So you suggest to substitute the RANDOMIZ card directly in the fluka
input file?

Best regards, Alessandro Calamida.

Il 27/03/2019 16:45, Horváth Dávid ha scritto:
> 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
>
>
> ---
> Questa email è stata esaminata alla ricerca di virus da AVG.
> http://www.avg.com
>


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Mar 28 2019 - 12:48:22 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 28 2019 - 12:48:28 CET