Message: geant4 general particle source memory usage Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question geant4 general particle source memory usage 

Forum: Particles
Date: 18 Mar, 2014
From: Guillaume Landry <Guillaume Landry>

Hi,

I am using the gps to simulate proton therapy patient irradiations with many pencil beams.

Unfortunately I need about 26000 entries of the sort:

# BeamNum 4 - PBsNum 636 - subPBsNum 25
/gps/source/add 4.00
/gps/particle proton
/gps/pos/type Beam
/gps/pos/rot1 0.500 0.866 0.000
/gps/pos/rot2 0 0 1
/gps/pos/sigma_r 2.5 mm
/gps/pos/centre -82.862092 54.686014 107.340010 cm
/gps/direction 0.866 -0.500 -0.000
/gps/ene/type Gauss
/gps/ene/mono 130.86 MeV
# /gps/ene/mono 132.00 MeV
/gps/ene/sigma 0.660 MeV

Running my code using 1 such entry in my macro file vs the complete list shows me memory usage of ~700 MB vs ~6GB respectively.

Besides trying to limit the number of pencil beams I am using, are there suggestions on how to limit the memory usage? Is this behavior normal?

Regards,
Guillaume

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

1 None: Re: geant4 general particle source memory usage   (Makoto Asai - 18 Mar, 2014)
 Add Message Add Message
to: "geant4 general particle source memory usage"

 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 ]