Message: Re: Magnetic field vs. Electromagnetic field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Magnetic field vs. Electromagnetic field 

Forum: Fields: Magnetic and Otherwise
Re: Question Magnetic field vs. Electromagnetic field (Daniel Cox)
Re: Feedback Re: Magnetic field vs. Electromagnetic field (Gumplinger Peter)
Re: None Re: Magnetic field vs. Electromagnetic field (Daniel Cox)
Re: Feedback Re: Magnetic field vs. Electromagnetic field (Gumplinger Peter)
Date: 11 Feb, 2011
From: Daniel Cox <Daniel Cox>

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/11/03.19-48166-EMfield.png
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/11/03.19-66000-Magfield.png

Ok so there are two screenshots of 100 electrons being generated with a random flat distribution between 100-500keV and an isotropic distribution.

Just to be clear here is the code used for filling my EMfield;

        xField[ix][iy][iz] = bx * fieldUnit;
        yField[ix][iy][iz] = by * fieldUnit;
        zField[ix][iy][iz] = bz * fieldUnit;
        xeField[ix][iy][iz] = 0;//ex * ElectricfieldUnit;
        yeField[ix][iy][iz] = 0;//ey * ElectricfieldUnit;
        zeField[ix][iy][iz] = 0;//ez * ElectricfieldUnit;

I basically completely copied the code from the example a second time filling a second array which is then called in my get field class.

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

1 More: Re: Magnetic field vs. Electromagnetic field   (Daniel Cox - 16 Feb, 2011)
(_ None: Re: Magnetic field vs. Electromagnetic field   (Daniel Cox - 11 Apr, 2011)
(_ None: Re: Magnetic field vs. Electromagnetic field   (Daniel Cox - 21 Apr, 2011)
 Add Message Add Message
to: "Re: Magnetic field vs. Electromagnetic 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 ]