makeWigglerFromBends script on Windows

Moderators: cyao, michael_borland

Post Reply
Skamarokha
Posts: 23
Joined: 14 Apr 2021, 09:42

makeWigglerFromBends script on Windows

Post by Skamarokha » 03 Jun 2022, 00:14

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?
Respectfully,
Mikhail A. Skamarokha.

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: makeWigglerFromBends script on Windows

Post by soliday » 03 Jun 2022, 09:50

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.

Skamarokha
Posts: 23
Joined: 14 Apr 2021, 09:42

Re: makeWigglerFromBends script on Windows

Post by Skamarokha » 05 Jun 2022, 22:26

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.
Respectfully,
Mikhail A. Skamarokha.

Post Reply