I am trying to understand optimization of the transverse phase advance and I am having trouble. I have attached a sample .ini and .dat file (zipped together) that contains a sufficiently small example.
First, it isn't clear to me if the phase advance is measured from the command, as the manual states, or from after the next element, which is the usual TraceWin convention. In the attached example, what value of N should I give to SET_BEAM_PHASE_ADV so that the phase advance is optimized to the end of drift D4? 7 or 8?
Second, I cannot find any output from TraceWin that will tell me the correct phase advance. The optimizer reaches a really small number, the beam phase advance criterion is in the 1e-11 range, so I think it has reached the target value, but I cannot confirm that anywhere.
In the attached example, I have tried to optimize the lattice such that the x phase advance is 194.324 degrees from beginning to end (and included some twiss parameters, too). When I try to plot the phase advance, I have two options:
A) "Structure" and B) "Beam"
When I plot "Beam" I get a significantly different phase advance of 164.595 degrees.
When I try to plot "Structure" I get an error that "Data not yet available"
The manual leads me to believe that "Structure" is the plot that I want, but I don't know how to actually view it. Am I missing a check box somewhere?
Understanding Phase Advance Optimization
Understanding Phase Advance Optimization
- Attachments
-
- octupoles.zip
- (2.27 KiB) Downloaded 225 times
Re: Understanding Phase Advance Optimization
Ohh my, it appears that I didn't notice that the units on the phase plot are deg/m. Is there any way to get that plot to show just the phase? I'd rather not integrate it.
Re: Understanding Phase Advance Optimization
Dear Foshea,
Didier
You're rigth, it's not clear in manual (I'll fix it), because here commmand behavior is not usual and start at the beginning of the command, so first element in included and in your case phase advance is calculated from input of element#1 to output of element#7First, it isn't clear to me if the phase advance is measured from the command, as the manual states, or from after the next element, which is the usual TraceWin convention. In the attached example, what value of N should I give to SET_BEAM_PHASE_ADV so that the phase advance is optimized to the end of drift D4? 7 or 8?
You have tow ways, the first one is shown during optimisation (see below) The second way is to place a "LATTICE 7" command in front of your first element to define the periodic structure of your line. Thus, in the tab-sheet "Charts" the phase advance (Beam) plot shows the phase advance of the complete period rather than per element. Using this command, in your example you'll have some message before and after optimisation explaining that is impossible de calculate the kox/y/z. Don't be worry about it, that only means that phase advance calculted from matrix transfer are not possible (see phase advance definition in manuel)Second, I cannot find any output from TraceWin that will tell me the correct phase advance. The optimizer reaches a really small number, the beam phase advance criterion is in the 1e-11 range, so I think it has reached the target value, but I cannot confirm that anywhere.
I don't think so, "Structure" means, phase advance from tranfer matrix without space-charge (another time have a look to phase advance definition)The manual leads me to believe that "Structure" is the plot that I want, but I don't know how to actually view it. Am I missing a check box somewhere?
To have result in deg rather than in deg/m (see option below) Regards,Ohh my, it appears that I didn't notice that the units on the phase plot are deg/m. Is there any way to get that plot to show just the phase? I'd rather not integrate it.
Didier