Page 1 of 1

makeWigglerFromBends script on Windows

Posted: 03 Jun 2022, 00:14
by Skamarokha
Hello!

I noticed that CWIGGLER element cannot be divided. Because of that, twiss_output command is not computing Twiss parameters in the center of a wiggler. So I looked for a simple way of setting up wiggler with bend magnets and found mentions of makeWigglerFromBends script designed to do just what I was looking for. I'm using latest version of elegant (2021.4) on Windows, but I can't find this script. Do I need to install some additional package with makeWigglerFromBends included or it is supported only on Linux?

Re: makeWigglerFromBends script on Windows

Posted: 03 Jun 2022, 09:50
by soliday
Look in the same directory elegant.exe is in. The default path would be:
C:\Program Files\APS\Elegant x64\makeWigglerFromBends

This script will require ActiveTcl, OAG Tcl/TK and Cygwin also be installed. Then run from inside of a Cygwin command-line terminal.

Re: makeWigglerFromBends script on Windows

Posted: 05 Jun 2022, 22:26
by Skamarokha
Thanks!

Had to download ActiveTcl and OAG Tcl/TK. But there was oagtclsh error when I tried to run script. So I copied tclsh.exe to oagtclsh.exe and it worked.