Message: local quadrupole field fills all the "World space" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None local quadrupole field fills all the "World space" 

Forum: Fields: Magnetic and Otherwise
Date: 12 Mar, 2014
From: Jorge Gallardo <Jorge Gallardo>

Hello, I'm trying to simulate an accelerator beam-line with a quadrupole.
As a first step, I create two simple classes: One representing the Pipe,
the other for the Quadrupole, I expected the heavy ion particles coming in
the beam, should "feel"  the quadrupole field just as it enters in the
"Quadrupole zone" defined by G4Box, G4LogicalVolume, etc (as stated in its
class) , NOT in the Pipe (Where is no field defined) ... But, as run the
code, the quadrupole-field fills the *ENTIRE* World (pipe+quadrupole)
space, not just the "quadrupole area" despite I've used local field:

solidQuad = new G4Box("Quad", 45.*cm, 45.*cm, 50.*cm);
logicQuad = new G4LogicalVolume(solidQuad, Material, Material->GetName());
physiQuad = new G4PVPlacement(trip_rot, G4ThreeVector(0.,0.,-50.*cm),
logicQuad, Material->GetName(), World, false,  0);

//apply a quadrupole field
G4FieldManager* fieldMgr =

QuadmagField = new G4QuadrupoleMagField(pGradient, G4ThreeVector(0.,0.,0.),
     // Set field as local just for "logicQuad"
logicQuad->SetFieldManager( fieldMgr, allLocal ) ;


Any idea Whatś wrong?
thank you in advance

 [ MIME part of type text/html without a name stripped ]

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

1 Disagree: Re: local quadrupole field fills all the   (Gumplinger Peter - 12 Mar, 2014)
(_ None: Re: local quadrupole field fills all the   (jorge gallardo - 13 Mar, 2014)
 Add Message Add Message
to: "local quadrupole field fills all the "World space""

 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 ]