Message: Re: non-uniform electric field in chamber Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: non-uniform electric field in chamber 

Forum: Fields: Magnetic and Otherwise
Re: Question non-uniform electric field in chamber
Date: 01 Jul, 2008
From: <janitor0405@126.com>

Hello,everyone
     I modify some of my codes as follows: 
********my detectorconstruction.cc:

     G4FieldManager *pFieldMgrEF3 = new G4FieldManager();
    G4ElectricField* PurgEl3Field= new TabulatedElField2D3D("myelectric.txt"); 

      pFieldMgrEF3=G4TransportationManager::GetTransportationManager()->GetFieldManager();

     G4EqMagElectricField *myEquationEF3 = new G4EqMagElectricField(PurgEl3Field);

      G4MagIntegratorStepper* myStepperEF3 = new G4ClassicalRK4(myEquationEF3,8);
      G4MagInt_Driver* myIntgrDriverEF3 = new G4MagInt_Driver(1.0*mm,    myStepperEF3,
                                           myStepperEF3->GetNumberOfVariables());
      G4ChordFinder* myChordFinderEF3 = new G4ChordFinder(myIntgrDriverEF3);

      pFieldMgrEF3->SetChordFinder(myChordFinderEF3);
      pFieldMgrEF3->SetDetectorField(PurgEl3Field);
      pFieldMgrEF3->SetFieldChangesEnergy(true);

      bool fieldIsInitialized = true;
*******myelectric.txt
     6 6 10
    1 X
    2 Y
    3 Z
    4 EX
    5 EY
    6 EZ
    0 [MILLIMETRE]
-35.93 -35.93 47.62 -18566.7849 -21733.4192 -0.6929
-35.93 -35.93 58.91 -26282.7828 -30768.8520 -10.2787
  .........
   but when I run it,I receive Segmentation fault,I really don't know why,can you give me a hand? Thank you very much.
                                                               jane

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

1 Feedback: Re: non-uniform electric field in chamber   (Gumplinger Peter - 02 Jul, 2008)
(_ None: Re: non-uniform electric field in chamber   (janitor0405@126.com - 04 Jul, 2008)
(_ News: Re: non-uniform electric field in chamber   (Sunring Ling - 12 Mar, 2012)
1 None: Re: non-uniform electric field in chamber   (Sunring Ling - 12 Mar, 2012)
2 Disagree: Re: non-uniform electric field in chamber   (Gumplinger Peter - 12 Mar, 2012)
3 None: Re: non-uniform electric field in chamber   (John Apostolakis - 13 Mar, 2012)
 Add Message Add Message
to: "Re: non-uniform electric field in chamber"

 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 ]