It's seem to me that there are some bugs in the procedure for field values calculations in the Synrad regions. I mean the mode 2 option (Coords along a direction). If I put there a Mag file with more complicated profile than it’s exampled in Synrad documentation, the trajectory became stochastic and I see a huge field values in the intermediated points. I can send a MAG file as well as region param file by e-mail. Can you explain me where I failed?
Indeed it would be nice to know whether it's a bug or an incorrect file format. You can upload the file here (see https://molflow.web.cern.ch/content/changes-inserting-files-and-images-comments) or send me by email (marton.ady@cern.ch) and I'll hve a look.
Here are my files. At first,I tried to use complicated realistic profile which present in the p.mag file. It's a real profile (measured) for our multipole wiggler.
Later I tried to use simpler profile, which present in the p1.mag file. But also I did not reach suscsess.
In both cases, I use same param file (wg_n.param).
The problem with the file is the last number of the first line: it's 1 in both files, whereas it should be N denoting the number of coordinates to read (the full format is
period dirX dirY dirZ N
)
I've changed it to 21 in p1.mag and got the following region, which seems correct: