Message: Gradient in G4QuadrupoleMagField Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Gradient in G4QuadrupoleMagField 

Keywords: quadrupole magnetic field
Forum: Fields: Magnetic and Otherwise
Date: 27 Feb, 2008
From: Mariusz <Mariusz>

Hello,
  Im just asking because I have not found any example.
  The gradient in G4QuadrupoleMagField(gradient) can be given in tesla/m?
  G4double gradient=223*tesla/m; 

   Regards, 

        Mariusz Sapinski

PS actually is this code correct for setting up the Quadrupole mag field in
only a part of geometry (logicSpace_Pipe):
   G4double fGradient = -223.*tesla/m;
   G4QuadrupoleMagField* pipeField = new G4QuadrupoleMagField(fGradient);
   G4Mag_UsualEqRhs* myEquation = new G4Mag_UsualEqRhs(pipeField);
   G4MagIntegratorStepper* myStepper = new G4ClassicalRK4(myEquation);
   G4ChordFinder* myChordFinder = new G4ChordFinder(pipeField,0.1*mm,myStepper);

   G4FieldManager* fieldMgr = new G4FieldManager(pipeField,myChordFinder,false);

   logicSpace_Pipe->SetFieldManager(fieldMgr,true);

I'm asking because it gives warnings in the parts of the geometry which are
quite far from Space_Pipe:
WARNING - G4Navigator::ComputeStep()
          Track stuck, not moving for 10 steps
          in volume -Austenitic_Steel_Collar- at point (89.47743818,103.7805885,1461.432287)
          direction: (0.1819718324,-0.1776272256,0.9671270966).
          Potential geometry or navigation problem !
          Trying pushing it of 9e-10 mm ...

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

1 None: Re: Gradient in G4QuadrupoleMagField   (Tatiana Nikitina - 28 Feb, 2008)
 Add Message Add Message
to: "Gradient in G4QuadrupoleMagField"

 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 ]