Replies: 7 comments 1 reply
-
Hello @elafmusa Thanks for reporting the problem. Could you post your |
Beta Was this translation helpful? Give feedback.
-
Thanks ! Could you also send the correctly translated lattice as a .mat file ? I’ll try to understand where the differences are with the result of load_madx…Le 2 nov. 2024 à 08:51, elafmusa ***@***.***> a écrit :
Dear @lfarv
Thank you for your answer, please find the lattice file in this link:
https://syncandshare.desy.de/index.php/s/WsRXr5jqmjLynfm
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Dear @lfarv , Please find the .mat file in this link: https://syncandshare.desy.de/index.php/s/oS7rBWzXg5KZTjR Best regards, |
Beta Was this translation helpful? Give feedback.
-
@elafmusa : there was indeed a problem in After correction, there are still 3 small differences between the result of
Finally, after ensuring that radiating elements are the same, and that the rf frequency is the same, both lattices are identical. Here is how I got the two lattice: seqring=at.load_madx(seqname, use="fccee_p_ring", energy = 45.6e9)
seqring.enable_6d() # enable radiation
seqring.set_rf_frequency() # set rf frequency to nominal and matring = at.load_mat(matname)[1:-1] # Remove the beginning and end markers
matring.enable_6d(sextupole_pass="StrMPoleSymplectic4Pass") # remove radiation in sextupoles Thanks for reporting the problem. I tried to use xconverters to check, but I get an error when importing |
Beta Was this translation helpful? Give feedback.
-
Dear @lfarv, Thank you very much! As for the converted lattice using xconverters i run exactly the following lines:
before saving the .mat file
|
Beta Was this translation helpful? Give feedback.
-
@elafmusa
In the mean time, I found another problem converting entrance/exit angles of bending magnets with a negative bending angle. I'm working on that… |
Beta Was this translation helpful? Give feedback.
-
Fixed in #851 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to use at.load_madx to convert a MADX sequence file (available here) as follows:
However, I get the error from the envelope parameters print: array must not contain infs or NaNs. Additionally, during conversion, I see the message: "MADX type Collimator is ignored and replaced by a Drift."
As an alternative, I used xconverters to convert the same file, and it worked without errors:
Frac. tunes (6D motion): [0.75791762 0.37388092 0.02895448]
Energy: 4.560000e+10 eV
Energy loss / turn: 3.908958e+07 eV
Mode emittances: [ 8.56422504e-10 -1.44757890e-37 2.18746556e-06]
Damping partition numbers: [1.00045508 1.00001076 1.99953415]
Damping times: [0.70521964 0.70553298 0.35285247] s
Energy spread: 0.000391665
Bunch length: 0.00558646 m
Cavities voltage: 79200000.0 V
Synchrotron phase: 2.62542 rd
Synchrotron frequency: 95.7474 Hz
I would like to confirm that I am using at.load_madx correctly, or if the Collimator handling is causing this issue.
Thank you in advance,
Elaf
Beta Was this translation helpful? Give feedback.
All reactions