bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
13 stars 15 forks source link

problems in wiggler translation to elegant #1185

Open jeu8 opened 2 months ago

jeu8 commented 2 months ago

When I translate wiggler elements to elegant, the transfer matrix does not match well. I am using cartesian map wigglers. wiggler translation.zip

DavidSagan commented 2 months ago

@jeu8 I can well believe this but I don't know what is a good solution. Any suggestions?

jeu8 commented 2 months ago

At the moment it looks like it uses a drift bend drift in the conversion. In my particular case I get the warning "Wiggler fitting producing negative drift lengths", so it looks like that is not a good model for my wigglers.

It looks like elegant has an element called CWIGGLER, and it looks like it is the same sort of expansion for the wiggler. the documentation is not very good, but it looks like it is in there. not sure how easy it would be to figure out.

jeu8 commented 2 months ago

@DavidSagan Based on the meeting, it looks like outputting a filed map is the way to go