Page 1 of 1

How to define dispersion in the input of tracewin

Posted: Sun 4 Jan 2026 07:51
by hanxj
Can the horizontal dispersion and the derivative of dispersion be defined by adding corresponding values to the thin_matrix, such as defining values at T15 and T25?

Re: How to define dispersion in the input of tracewin

Posted: Mon 5 Jan 2026 13:29
by Didier
Dear Hanxj,

I don't know exactly what you want to do, but yes you can modify these terms in the THIN_MATRIX element.
You can also apply them directly to the input beam via the "TWiss parameters" -> "Beam" button.

Regards,

Didier

Re: How to define dispersion in the input of tracewin

Posted: Mon 5 Jan 2026 17:14
by hanxj
Dear author :
I intended to use the tracewin software to reproduce the results of the old beam dynamics software transport, but the two results were completely mismatched, especially the twiss parameters at the bend were completely incorrect. Since the initial definition of the transport software file was dispersion and the derivative of dispersion, I wondered if it was due to the fact that dispersion was not added?​ Also, I'm very curious to know why it didn't match? I took a look at the manual. The formulas are all the same, and the magnet parameters set are also the same, but the results are different. The circled pictures below show one of the twiss parameters of the software transport at S02(1.504m), one of the twiss parameters of tracewin here, and one of its edit Settings The initial Settings are the same for all twiss parameters except for the uncertainty of whether the dispersion is correct

Re: How to define dispersion in the input of tracewin

Posted: Mon 5 Jan 2026 17:16
by hanxj
The attachment was not uploaded successfully just now

Re: How to define dispersion in the input of tracewin

Posted: Tue 6 Jan 2026 14:50
by Didier
Dear Hanxj,

It is difficult for me to assist you as I am not familiar with the Transport code. That said, looking at your file, I don'y believe it is necessary to define dispersion in the input beam, as this would be generated by the dipoles. However, this is merely my impression.
Perhaps you could try comparing the transport using simple drift to verify this point.

Regards,

Didier