Repository navigation
Betatron Phase Advance Calculation for 2D Phase Space - #179
Conversation
…d to the transport matrix package. It is implemented as a transport matrix approach. For this we still need the Twiss parameters for start and end points.
…on phase advances. Scripts compare betatron phase advances calculated from beta function integration and transport matrices.
…-DTL sections. Examples demonstrate comparison between two methods of phase advance calculations: by integrating Twiss beta-functions and by using transport matrices.
…nto phase_advance
|
I think it would be helpful to add a smaller test, maybe for a drift, quad or FODO cell, that raises an error if the numerically integrated phase advance does not match the transfer matrix result within some tolerance. |
…racking. The combined accuracy of phase advances in X,Y,Z direction should be better than 1 deg after 41 meters tracking through HEBT1.The user can modify the script with adding space charge or HEBT2 sequence. In this case results for two methods would be different.
|
Thank you, Austin! Good idea about the test! I added one for script tracking bunch through HEBT1. |
|
@woodtp Can you please convert Andrei's test to pytest for examples/SNS_Linac/pyorbit3_transport_matrix_gen/sns_linac_phase_adv_test_hebt1.py ? |
austin-hoover
left a comment
There was a problem hiding this comment.
Checked that phase advance formula is correct.
|
Another suggestion is to check that all transfer matrix elements are zero or sufficiently small outside the 2 x 2 blocks before calculating the phase advances. |
I distilled the example into an integration test and placed it under |
A betatron phase advance calculation between two points in a linac lattice was added for X,Y,Z directions. The calculations are performed inside the LinacTrMatrixGenNode "track" method. An approach uses the transport matrix between to nodes and Twiss parameters. The test of the betatron phase advance calculation using the transport matrix has been compared with an integration beta-functions method in examples PyORBIT3/tree/phase_advance/examples/SNS_Linac/pyorbit3_transport_matrix_gen : sns_linac_phase_adv_test_hebt1.py and sns_linac_tr_matrices_generation.py. All is done for the 2D phase space.