Message: GPS and Significant Memory Issues Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GPS and Significant Memory Issues 

Forum: Particles
Date: 08 May, 2014
From: Nick Patterson <Nick Patterson>

Hi,
  I have been using the GPS particle generator to populate my geometry with ions with will radioactive decay. I have run into a problematic issues whereby large numbers sources consume huge amounts of memory (tens of gigabytes). I see from the forum that large memory consumption when using the GPS does seem to be a problem. Can anyone advise on whether or not this is expected to be addressed, or has anyone found a way of working around this issue?


Effectively I define the following for a large number of voxels in my GeneratePrimaries function:-

     for (int i=0;i<copyNo;i++) {
                particleGun->SetParticleDefinition(ion);
                voxelposition = GetTranslation(cpNo,nVoxelsX,nVoxelsY,nVoxelsZ,
                                           voxelHalfXwidth,voxelHalfYwidth,
                                           voxelHalfZwidth,xOrigin,yOrigin,
                                           zOrigin);
                particleGun->SetCurrentSourceIntensity(activity[cpNo]);
                eneDist = particleGun->GetCurrentSource()->GetEneDist();
                eneDist->SetEnergyDisType("Mono");
                eneDist->SetMonoEnergy(0.0*eV);

                posDist = particleGun->GetCurrentSource()->GetPosDist();
                posDist->SetHalfX(voxelHalfXwidth);
                posDist->SetHalfY(voxelHalfYwidth);
                posDist->SetHalfZ(voxelHalfZwidth);
                posDist->SetPosDisType("Volume");
                posDist->SetPosDisShape("Para");
                posDist->SetCentreCoords(voxelposition);
                angDist = particleGun->GetCurrentSource()->GetAngDist();
                angDist->SetAngDistType("iso");
    }

where copyNo can be >100000, so quite big. 

I would appreciate any advise or help
Nick.

 Add Message Add Message
to: "GPS and Significant Memory Issues"

 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 ]