Message: Re: the proper time goes back Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: the proper time goes back 

Forum: Fields: Magnetic and Otherwise
Re: Sad the proper time goes back (Olivier Dadoun)
Re: Ok Re: the proper time goes back (Olivier Dadoun)
Date: 17 Sep, 2009
From: Gumplinger Peter <Gumplinger Peter>

Dear Oliver,

> I have followed the recommendation gave by

> Peter Gumplinger

Thanks for bringing this to my/users' attention. The code in the above forum link is still not entierly correct; it would be for a localized pure magnetic field but for EM-fields we need:

   G4int nvar = 8;  // To integrate time & energy 
                    //    in addition to position, momentum

and the correct code for EM-fields should read:

    G4int nvar = 8;
    fStepper = new G4ClassicalRK4( fEquation, nvar );

for the default in the G4ClassicalRK4 constructor is nvar=6 and hence tailored to pure mag. fields.

you can then subsequently use:

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

This should be the right approach rather than just:

    fIntgrDriver = new G4MagInt_Driver(fMinStep, 

Please, also see the code fragment (Example 4.12) in the Application Developers Guide:

Regards, Peter

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

1 None: Re: the proper time goes back   (Anushree Ghosh - 03 Apr, 2012)
 Add Message Add Message
to: "Re: the proper time goes back"

 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 ]