Message: Re: insert Electric fileld to logical volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: insert Electric fileld to logical volume 

Keywords: insert Electric fileld to logical volume
Forum: Fields: Magnetic and Otherwise
Re: Question insert Electric fileld to logical volume (Lee, Hyun-Seung)
Date: 30 Apr, 2007
From: Gumplinger Peter <Gumplinger Peter>

Again, sorry nobody addressed your problem until now.

The application manual is wrong in stating that you could use:

  G4bool allLocal = true;       

This line is taken from an example code:

Here, fEmField is actually not a field but of class F03FieldSetup and the code in examples/extended/field/field03 is:

   logicRadiator->SetFieldManager( fEmFieldSetup->GetLocalFieldManager(), 
                                   allLocal ) ; 

Instead, what you need to do is:

  fLocalEquation = new G4EqMagElectricField(fEMfield);

  G4int nvar = 8;
  fLocalStepper = new G4ClassicalRK4( fLocalEquation, nvar );

  G4double fMinStep = 0.010*mm;
  fLocalChordFinder = new G4ChordFinder(fEmField,
                                        fMinStep, fLocalStepper);

  fLocalFieldManager = new G4FieldManager();

  G4bool allLocal = true ;

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

 Add Message Add Message
to: "Re: insert Electric fileld to logical volume"

 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 ]