Message: Insert a local electric field inside GEANT4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Insert a local electric field inside GEANT4 

Keywords: Local Electric Field insode a simulation
Forum: Fields: Magnetic and Otherwise
Date: 16 Nov, 2004
From: G.A.P.Cirrone <G.A.P.Cirrone>

Dear All, I am tring to add an uniform elctric field inside an element in my detector construction. I read some example and now I am tring inserting in the detectorConstruction class the dollowing lines:

G4double fieldValue = 0.0*kilovolt/cm;

  // create electric field

G4UniformElectricField* myField = new G4UniformElectricField(G4ThreeVector(0,fieldValue,0));

// equation of motion G4EqMagElectricField* myEquation = new G4EqMagElectricField(myField);

// stepper for equation of motion G4MagIntegratorStepper* myStepper = new G4ClassicalRK4(myEquation);

// chordfinder G4ChordFinder* myChordFinder = new G4ChordFinder(myField, 1.0e-3*mm, myStepper);

  // field manager
 G4FieldManager* fieldMgr = new G4FieldManager(myField, myChordFinder);

then, during the compilation this error is generated :

Compiling DetectorConstruction.cc ...
src/DetectorConstruction.cc: In member function `G4VPhysicalVolume*
   DetectorConstruction::ConstructVolumes()':
src/DetectorConstruction.cc:190: error: no matching function for call to `
   G4ChordFinder::G4ChordFinder(G4UniformElectricField*&, double,
   G4MagIntegratorStepper*&)'
/home/cirrone/geant4/geant4.6.2.p01/source/geometry/magneticfield/include/G4ChordFinder.hh:155: error: candidates
   are: G4ChordFinder::G4ChordFinder(const G4ChordFinder&)
/home/cirrone/geant4/geant4.6.2.p01/source/geometry/magneticfield/include/G4ChordFinder.hh:57: error:
                  G4ChordFinder::G4ChordFinder(G4MagneticField*, double,
   G4MagIntegratorStepper*)
/home/cirrone/geant4/geant4.6.2.p01/source/geometry/magneticfield/include/G4ChordFinder.hh:53: error:
                  G4ChordFinder::G4ChordFinder(G4MagInt_Driver*)
gmake: *** [/home/cirrone/geant4/workdir/tmp/Linux-g++/TestEm7/DetectorConstruction.o] Error 1

Can anyone help me? I sow other people with the same error related to the G4Finder with an electric field.

Should be a good idea put an example with the simulation of an

LOCAL ELECTRIC FIELD

what about?

cheers

Pablo

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

1 Warning: Re: Insert a local electric field inside GEANT4   (Peter Gumplinger - 16 Nov, 2004)
1 Idea: Re: Insert a local electric field inside GEANT4   (Daniel Barna - 17 Nov, 2004)
(_ More: Re: Insert a local electric field inside GEANT4   (Peter Gumplinger - 19 Nov, 2004)
(_ None: Re: Insert a local electric field inside GEANT4   (luhao - 07 Jun, 2005)
(_ Ok: Re: Insert a local electric field inside GEANT4   (John Apostolakis - 07 Jun, 2005)
3 Idea: Re: Insert a local electric field inside GEANT4 (SOLVED)   (Davide Pagano - 03 Feb, 2005)
1 Disagree: Re: Insert a local electric field inside GEANT4 (SOLVED)   (Peter Gumplinger - 03 Feb, 2005)
 Add Message Add Message
to: "Insert a local electric field inside GEANT4"

 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 ]