|Message: Re: Ion beam disappears entering in quadrupole field||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
> I'm trying to simulate a beamline with a quadrupole field, the code seems > to work fine with very low gradient ( < 0.001 T/m ) and is possible to > track the beam across the quadrupole, traversing it and appearing in the > other side (for that gradient value, the effect of the quad. field is > negligible ) ... but when the gradient increases, the beams (there are 8 > parallel beams really) begin to disappear inside the quadrupole... When my > maximum working gradient (11.3 T/m) is reached the beam disappears in the > middle of the "quadrupole zone",
You probably have to reduce the step size manually. Runge Kutta should reduce the tracking steps automatically until they are short enought for accurate integration but perhaps in such strong fields/gradients this doesn't work adequately. Please, read about 'StepLimiter' etc. in the Application Dev. Manual. Also, how fine do you specify the field - in case it's a map - or do you calculate it from a quadrupole field equation. The latter is best, of course, because you must avoid field discontinuities.
> as if the particles vanished in the vacuum > (galactic)... In the vis.mac file the line "/tracking/verbose 1" is > enabled, but the output seems to be normal, and no error message appears... > any idea?
There is an explanation, but anyway, there can be issues with your visualization. What is important is the tracking verbose. Look at it carefully, what are the step sizes, where is the track going - all of this is documented with the verbosity. What's also important is what your field returns for each step. You can put a G4cout into your code.
You'll have to try harder and can't rely on being tutored via this Forum as soon as you don't understand something.
|Inline Depth:||Outline Depth:||Add message:|