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

From: Haoyu Shi <shihy_at_ihep.ac.cn>
Date: Tue, 22 Oct 2019 08:37:06 -0700

Dear Rodion,

Thank you very much for your help.

I’ll take a loot at the code and try to use it.

Best Regards,
Haoyu

> 2019年10月22日 01:33,Rodion Kolevatov <Rodion.Kolevatov_at_ife.no> 写道:
>
> Dear Haoyu,
>
> Another way for you to proceed could be reading particles from your source into a simulation one by one via calling an appropriate interface routine from source.f.
> For a similar task I was using Monte-Carlo Particle Lists which is a compact binary file format for usage in physics simulations. I attach to the letter an example of how the standard C routines for reading MCPL files can be used in FLUKA source. You are welcome to use the interface routines in case you chose to proceed along the same lines (i.e. convert SAD output to MCPL rather than writing SAD to FLUKA plugin yourself).
> The MCPL project github page is here: https://mctools.github.io/mcpl/. It contains a number of tools for creating, writing and editing mcpl files and I am sure that developers will be happy to answer your questions.
>
> Best regards,
> Rodion.
>
> -----Original Message-----
> From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> On Behalf Of Haoyu Shi
> Sent: 21 октября 2019 г. 17:27
> To: fluka-discuss <fluka-discuss_at_fluka.org>
> Subject: [fluka-discuss]: How to source a bunch or millions of particles?
>
> 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
>
> <FLUKA_MCPL.zip>


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Oct 22 2019 - 18:56:57 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 22 2019 - 18:57:03 CEST