Message: Problem with large number of detectors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Problem with large number of detectors 

Forum: Geometry
Date: 12 Dec, 2012
From: Petre Manescu <Petre Manescu>

Hello,

I have an error when I run a simulation with a large number of detectors. I am trying to do a radiation therapy simulation. I am building my "target" using a G4AssemblyVolume. I am not using any optimization, I am building the detectors using G4Box or G4Tet. I am using a very simplified physiscs list. For 30k elements, I can run the simulation, but for 70k elements I get the following error message:

/run/beamOn 1000

phot:   for  gamma    SubType= 12
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
       PhotoElectric :  Emin=        0 eV    Emax=       10 TeV

compt:   for  gamma    SubType= 13
      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
       Klein-Nishina :  Emin=        0 eV    Emax=       10 TeV

conv:   for  gamma    SubType= 14
      Lambda tables from 1.022 MeV to 10 TeV in 77 bins, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
        BetheHeitler :  Emin=        0 eV    Emax=       10 TeV

msc:   for e-    SubType= 10
      Lambda tables from 100 eV  to 10 TeV in 77 bins, spline: 1
      RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
          UrbanMsc95 :  Emin=        0 eV    Emax=       10 TeV
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Abandon (core dumped) 

The weird thing is that the memory of my computer is not "full" when the error occurs. Moreover, if I add a more complex physics list, the simulation crashes even with 10k elements. Where could the problem come from?

Cheers, Petre

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

1 None: Re: Problem with large number of detectors   (John Apostolakis - 12 Dec, 2012)
(_ None: Re: Problem with large number of detectors   (Petre Manescu - 13 Dec, 2012)
 Add Message Add Message
to: "Problem with large number of detectors"

 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 ]