Message: Re: time varying magnetic field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: time varying magnetic field 

Forum: Fields: Magnetic and Otherwise
Re: Question time varying magnetic field (riazi)
Date: 11 Jan, 2010
From: Gumplinger Peter <Gumplinger Peter>

Dear Riazi,

The user is required in Geant4 to supply the method (see G4Field)

virtual void  GetFieldValue( const  double Point[4],
                                    double *fieldArr ) const = 0;

// Given the position time vector 'Point',

// return the value of the field in the array fieldArr.

// 1) The 'Point' vector has the following structure:

// Point[0] is x ( position, in Geant4 units )

// Point[1] is y

// Point[2] is z

// Point[3] is t ( time, in Geant4 units )

See, for example:

http://www-geant4.kek.jp/lxr/source/processes/decay/src/G4DecayWithSpin.cc#L111

on how the arguments of this method are filled from G4Step and G4Track information.

I am not aware of a G4 example which would exhibit a time varying field.

Best regards, Peter

 Add Message Add Message
to: "Re: time varying magnetic 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 ]