Message: Re: Adding quadrupole Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Adding quadrupole 

Forum: Fields: Magnetic and Otherwise
Re: Question Adding quadrupole (Lukasz Fulek)
Date: 16 Dec, 2011
From: Gumplinger Peter <Gumplinger Peter>

The same as you did for the torus. You define a solid (G4Tubs, for example) and fill it not with a constant field but a field that you define and calculate to be a quadrupole field. Take a look at example: /examples/extended/field04.

To calculate the element field you will need the local coordinates of the G4LogicalVolume; see for how this is done.

I suggest you look at You may find that g4beamline already does all you want to do without you coding a line of C++.

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

1 Question: Re: Adding quadrupole   (Lukasz Fulek - 19 Dec, 2011)
(_ Feedback: Re: Adding quadrupole   (Gumplinger Peter - 12 Jan, 2012)
(_ None: Re: Adding quadrupole   (Lukasz Fulek - 13 Jan, 2012)
 Add Message Add Message
to: "Re: Adding quadrupole"

 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 ]