Message: Creation of large number of identical sources Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Creation of large number of identical sources 

Forum: Geometry
Date: 27 Oct, 2014
From: Ivan Konobeev <Ivan Konobeev>

Hello

Could you please help me. I need to create large number (hundreds of thousands) of identical sources of "Point" or "Sphere" type. They must emit electrons and have user defined spectrum. I'm trying to do it by using General Particle Source. I make a macro file which defines one of the sources:

/gps/ene/type User
/gps/hist/type energy
/gps/hist/point 0.0 0.
/gps/hist/point 0.00004 2154
/gps/hist/point 0.00008 4643
e.t.c.

Then I put it in "for" cycle in main file of the program using instruction:

UI->ExecuteMacroFile(argv[1]);

Unfortunately, Geant4 uses about 300 MB of RAM when running 1000 of sources in such way. So creating hundreds of thousands of sources would be impossible. Is there any way to define this many sources without using so much RAM? Sources differ from each other only by coordinates of their center.

Thank you

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: Creation of large number of identical sources   (Michael H. Kelsey - 27 Oct, 2014)
(_ Ok: Re: Creation of large number of identical sources   (Ivan Konobeev - 29 Oct, 2014)
 Add Message Add Message
to: "Creation of large number of identical sources"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]