Re: [fluka-discuss]: How to source a bunch or millions of particles?

From: Haoyu Shi <shihy_at_ihep.ac.cn>
Date: Mon, 21 Oct 2019 10:57:32 -0700

Hi Agnieszka,

Thank you very much for your help.

You mean just put the statement in the beginning of the source file, and then check whether it works or not? As for selection, still use the SELECT CASE statement to let fluka choose from all the possibilities?

I’ll try.

Thanks.

Regards,
Haoyu

> 2019年10月21日 09:17,amucha_at_agh.edu.pl 写道:
>
> Hi Haoyu,
> maybe this is a simple problem with the size of an array with particles in source.f because fluka puts them all into PPX(NMAX). It should as large as it is possible for fortran, in my case:
> PARAMETER (NMAX=10000000) worked.
> You can also divide your dataset into smaller parts and simulate them separately. But then you need to merge output files.
> If the problem is not the number of particles but the size of the file - try to get rid of unnecessary information - source.f needs only a position, id and spectrum of particles.
> Regards,
> Agnieszka
>
>
> W dniu 2019-10-21 17:26, Haoyu Shi napisał(a):
>> Dear FLUKA Experts,
>> I’m studying the interaction between particles and accelerator
>> components, so I need to simulate a bunch, or maybe a million of
>> particles, in one source file. These particles are exported from the
>> accelerator tracking tool(for my case, SAD, but I think MAD should be
>> similar case). These particles are both electrons, but each of them
>> has its own energy, position, and direction(also weight, but should
>> always be 1.0 in this case).
>> I’ve tried to use SELECT CASE statement in Fortran(source.f). But a
>> source file contains a million particles is about 30 MB, and can’t be
>> compile without a error(usually segmentation fault).
>> Is there anyway else for me to do it? Or I have to choose a more
>> powerful machine to compile the source file?
>> Thank you in advance.
>> Best Regards,
>> Haoyu
>> __________________________________________________________________________
>> 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 Mon Oct 21 2019 - 20:59:10 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 21 2019 - 20:59:13 CEST