Adjusting drift lenghts
Posted: Wed 1 Mar 2023 14:18
Good day,
I know my next question can be stupid, but I am kind of struggling with that.
Let's assume I have 2 meter space between the source (beginning of TW simulation) and a magnet, let's say a dipole.
In this two meter space I want to put two magnets (quads, solenoids...) so that I have a sequence of element like:
Drift1 - Magnet1 - Drift2 - Magnet2 - Drift3 - Dipole
I can adjsut the lenght of each drift the way I want, the only constraint is that the dipole must stay at 2 meters.
Now, the question is: USing the adjust/diagnostics commands, how can I adjust the drift in order to have a fixed lenght of the first section?
I have very blurry memories about a discussion with Didier on this topic, but I can remeber more than this.
Would it be possible to do the same using the mathing commands?
thanks in advance
Francesco
I know my next question can be stupid, but I am kind of struggling with that.
Let's assume I have 2 meter space between the source (beginning of TW simulation) and a magnet, let's say a dipole.
In this two meter space I want to put two magnets (quads, solenoids...) so that I have a sequence of element like:
Drift1 - Magnet1 - Drift2 - Magnet2 - Drift3 - Dipole
I can adjsut the lenght of each drift the way I want, the only constraint is that the dipole must stay at 2 meters.
Now, the question is: USing the adjust/diagnostics commands, how can I adjust the drift in order to have a fixed lenght of the first section?
I have very blurry memories about a discussion with Didier on this topic, but I can remeber more than this.
Would it be possible to do the same using the mathing commands?
thanks in advance
Francesco