Page 1 of 2
beta beat optimization
Posted: 18 Jul 2021, 00:07
by Samira.kasaei
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
Re: beta beat optimization
Posted: 20 Jul 2021, 14:27
by michael_borland
Samira,
Please see the attached files.
--Michael
Re: beta beat optimization
Posted: 08 Aug 2021, 06:40
by Samira.kasaei
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
Re: beta beat optimization
Posted: 12 Aug 2021, 08:50
by michael_borland
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
Re: beta beat optimization
Posted: 14 Aug 2021, 02:08
by Samira.kasaei
Hello Michael,
I run this script but I got this message:
command not found...
Cheers,
Samira
Re: beta beat optimization
Posted: 20 Aug 2021, 15:59
by michael_borland
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
Re: beta beat optimization
Posted: 22 Aug 2021, 00:41
by Samira.kasaei
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
Re: beta beat optimization
Posted: 23 Aug 2021, 01:12
by michael_borland
Samira,
Sorry, I forgot to attach the script. Here it is. I zipped it so that the virus scanner won't reject it.
--Michael
Re: beta beat optimization
Posted: 24 Aug 2021, 03:58
by Samira.kasaei
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
Re: beta beat optimization
Posted: 24 Aug 2021, 13:13
by soliday
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