Message: Re: Electrons not affected by electric field? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

News Re: Electrons not affected by electric field? 

Forum: Fields: Magnetic and Otherwise
Re: None Electrons not affected by electric field? (Robert Schaefer)
Re: Question Re: Electrons not affected by electric field? (Robert Schaefer)
Date: 20 Jan, 2015
From: Robert Schaefer <Robert Schaefer>

Dear John,

I've fixed the issue with the electric field. I forgot that in the following code:

//----------------------------------------------------------------------------------------------------
void B7ElectricField::GetFieldValue(const G4double Point[3],G4double *Efield) const
{
	Efield[2] = 0.; //z component of electrical field is zero

	G4double X=Point[0], Y=Point[1];
	G4double U=1.*volt;

	Efield[0]=0;
	Efield[1]=U/1.6*cm;
}
//----------------------------------------------------------------------------------------------------

Efield[0]-[2] are the x,y,z-components of the magnetic field, and [3]-[5] are the components of the electric field. The (electric) field is now correctly applied to the electrons.

Best regards, Robert

PS: I would like to mark this thread/question as solved.

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

1 None: Re: Electrons not affected by electric field?   (John Apostolakis - 21 Jan, 2015)
 Add Message Add Message
to: "Re: Electrons not affected by electric field?"

 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 ]