Message: Re: Insert a local electric field inside GEANT4 (SOLVED) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Insert a local electric field inside GEANT4 (SOLVED) 

Keywords: howto define electric field
Forum: Fields: Magnetic and Otherwise
Re: Question Insert a local electric field inside GEANT4 (G.A.P.Cirrone)
Date: 03 Feb, 2005
From: Davide Pagano <davide.pagano@pv.infn.it>

Dear Pablo, I believe I can point out the problem with Geant4 Electric field definition. My way to do it is the following:

G4UniformElectricField* myField = new G4UniformElectricField(G4ThreeVector(0, 900*kilovolt/cm, 0));

G4FieldManager *pFieldMgr;

G4MagIntegratorStepper *pStepper;

G4ChordFinder* pChordFinder;

G4EqMagElectricField *fEquation = new G4EqMagElectricField(myField);

G4MagInt_Driver* pIntgrDriver;

pStepper = new G4ClassicalRK4(fEquation,8);

pFieldMgr=G4TransportationManager::GetTransportationManager()-> GetFieldManager();

pFieldMgr->SetDetectorField(myField);

pIntgrDriver = new G4MagInt_Driver(0.001*mm,pStepper,pStepper-> GetNumberOfVariables());

pChordFinder = new G4ChordFinder(pIntgrDriver);

pFieldMgr->SetChordFinder(pChordFinder);

That's it, AFAIK. Bye.

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

1 Disagree: Re: Insert a local electric field inside GEANT4 (SOLVED)   (Peter Gumplinger - 03 Feb, 2005)
 Add Message Add Message
to: "Re: Insert a local electric field inside GEANT4 (SOLVED)"

 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 ]