Message: Re: Space varying Magnetic Field Problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Space varying Magnetic Field Problem 

Forum: Fields: Magnetic and Otherwise
Re: Question Space varying Magnetic Field Problem (Michael Rinaldi)
Date: 07 Jun, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi Mike,

To answer your last question: "If I need to change the stepper how do I do that?"

Please take a look at examples/extended/field/field01/src/F01FieldSetup.cc

where there is a method: SetStepper()

The G4ChordFinder is then instantiated with:

fChordFinder = new G4ChordFinder( fMagneticField, fMinStep, fStepper);

When you don't give the last argument, it defaults to RK4:

http://www-geant4.kek.jp/lxr/source/geometry/magneticfield/src/G4ChordFinder.cc#L97

Peter

 Add Message Add Message
to: "Re: Space varying Magnetic Field Problem"

 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 ]