Message: Electric Field has no effect Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Electric Field has no effect 

Forum: Fields: Magnetic and Otherwise
Date: 02 Jun, 2015
From: Helga Holmestad <Helga Holmestad>

In a previous post I found the how to make a local electric field:

I am following these instructions, but the particles are unaffected by the electric fields I am using. Does anyone see what I am doing wrong. Here is the code for how I set up my local electric field. The logical volume I am trying to attach the field to is named logicField.

G4double fieldValue=500.0*volt/m;

G4UniformElectricField* elField= new


G4EqMagElectricField* fEquation=new G4EqMagElectricField(elField);

G4int nvar = 8;

G4MagIntegratorStepper*fStepper = new G4ClassicalRK4(fEquation, nvar );


G4double fMinStep = 0.010*mm ; // minimal step of 10 microns

G4MagInt_Driver*fIntgrDriver = new G4MagInt_Driver(fMinStep,fStepper,fStepper->GetNumberOfVariables() );

G4ChordFinder* fChordFinder = new G4ChordFinder(fIntgrDriver);

fFieldManager->SetChordFinder( fChordFinder );


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

1 Warning: Re: Electric Field has no effect   (Helga Holmestad - 02 Jun, 2015)
 Add Message Add Message
to: "Electric Field has no effect"

 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 ]