beta beat optimization

Moderators: cyao, michael_borland

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

beta beat optimization

Post by Samira.kasaei » 18 Jul 2021, 00:07

Hello Michael,
I add a wiggler in a hard edge model to my ring. Then I optimize it. The optimization depends on the initial values of quadruples. I could remove beta beating but I cant get the tune of machine that is 7.23 horizontally and 6.19 vertically. May i ask you to take a look to my files?

Many thanks and best regards,
Samira
Attachments
STORAGE.lte
(3.01 KiB) Downloaded 169 times
track.ele
(1.39 KiB) Downloaded 171 times
optimize.ele
(3.27 KiB) Downloaded 185 times

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: beta beat optimization

Post by michael_borland » 20 Jul 2021, 14:27

Samira,

Please see the attached files.

--Michael
Attachments
2021-07-20.zip
(4.25 KiB) Downloaded 212 times

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: beta beat optimization

Post by Samira.kasaei » 08 Aug 2021, 06:40

Hi Michael,

It was really very helpful. many thanks.
Is there any script that I can plot beta beat after insertion of a wiggler respect to the lattice without wiggler?

I wanted to plot the beta function with the lattice, I used this:
sddsplot -col=s,"(betax,betay)" -legend -grap=line,vary track.twi -columnNames=s,Profile track.mag -factor=ym=1
But I can't see wiggler in my lattice.
Should I use any other script to plot beta function with lattice (wiggler included)?

Many thanks for you help,
Samira

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: beta beat optimization

Post by michael_borland » 12 Aug 2021, 08:50

Samira,

See the attached file for a script that will compute and plot beta beats.

Usage example:

Code: Select all

computeBeats -reference perfectLattice.twi -input perturbedLattice.twi
--Michael

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: beta beat optimization

Post by Samira.kasaei » 14 Aug 2021, 02:08

Hello Michael,

I run this script but I got this message:
command not found...

Cheers,
Samira

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: beta beat optimization

Post by michael_borland » 20 Aug 2021, 15:59

Samira,

Is your path set correctly? Try copying the script to the directory with your data and using ./computeBeats (assuming you are using linux).

--Michael

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: beta beat optimization

Post by Samira.kasaei » 22 Aug 2021, 00:41

Dear Michael,

Yes, I am using Linux. I set the path correctly but it isn't working.
In your reply on 12 Aug 2021,you mentioned "the attached file" but there isn't any file. Did you attach any file?

Many thanks for you reply,
Samira

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: beta beat optimization

Post by michael_borland » 23 Aug 2021, 01:12

Samira,

Sorry, I forgot to attach the script. Here it is. I zipped it so that the virus scanner won't reject it.

--Michael
Attachments
computeBeats.zip
(846 Bytes) Downloaded 169 times

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: beta beat optimization

Post by Samira.kasaei » 24 Aug 2021, 03:58

Dear Michael,

I run this script but I got this message:

can't read "0": no such variable
while executing
"exec oagtclsh "$0" "$@""
(file "./computeBeats" line 4)

Cheers,
Samira

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

Re: beta beat optimization

Post by soliday » 24 Aug 2021, 13:13

Can you run "file computeBeats"
Does it say: computeBeats: POSIX shell script, ASCII text executable
I want to make sure it doesn't mention CRLF line terminators which you could get if unzipped on Windows

Next, do the top three lines look like:
#!/bin/sh
# \
exec oagtclsh "$0" "$@"

If I remove the second line, then I get the same error you have.

Finally, try running it by including oagtclsh on the command line:
oagtclsh computeBeats

Post Reply