Page 2 of 2

Re: Study of TMCI

Posted: 26 Jun 2019, 07:39
by arahim
I am trying to make an sdds file for impedance (freq vs real part and imaginary part) using plaindata2sdds. In sdds file many of the rows were missing. I copied the data from data file and pasted in sdds file but during simulation I got error message "frequency values not equally spaced for real data(zlongit)". Please help me to understand this. Warning and sdds file are attached for the reference.

Re: Study of TMCI

Posted: 07 Aug 2019, 05:37
by Akhyani
Dear Abdurrahim,

Your sdds file is a bit weird for me. The number which will be written in the first line of your txt file (before using the plaindata2sdds command) is the number of lines in your impedance txt file. This number must be equal to 2^n+1. If you fix this glitch, I think the elegant will run completely.

--Mina

Re: Study of TMCI

Posted: 07 Aug 2019, 08:12
by michael_borland
Something is definitely amiss with the file. When I run

Code: Select all

sddscheck HBSRS_booster_imp.sdds
it returns "corrupted".

The most obvious problem, as Mina points out, is the row count. I changed this from 257 to 400, which made the file valid at least. However, after plotting the impedance, I'd have to say something still looks off.
impedance.png
Perhaps you can post the original file (prior to running plaindata2sdds) along with the commandline used for conversion.

--Michael

Re: Study of TMCI

Posted: 30 Sep 2019, 08:24
by arahim
I am trying to find the threshold of microwave instability using the aps upgraded lattice as an example. I am using zlongit for the input of broadband impedance. I have considered the Z/n=0.180 Ohm and freq 50GHz, corresponding RA=6.6e4. But during tracking, particles are getting lost after only few 100 turns, even current is too small (0.01 mA). Please help me to find the reason of beam loss..Thanks in advance.

Re: Study of TMCI

Posted: 02 Oct 2019, 09:56
by lindberg
I checked things out, and the reason for the particle loss has nothing to do with the impedance; eliminating the ZLONGIT element leads to the same loss. It seems to me that the RFCA element is not set up properly for a single RF cavity. For V=4.1 MV I find that if you change the present settings of
freq=351919480.995373,volt=4.1e6,phase=144.7614434245066
to the new settings of
freq=351936980.203300,volt=4.1e6,phase=146.4219618701754
the beam is properly stored. Note that its really the frequency that needs to be fixed.

Re: Study of TMCI

Posted: 03 Oct 2019, 04:34
by arahim
Thanks a lot..It worked.
To simulate the microwave instability, I have used the elegant functions ILMATRIX, SREFFETCS, RFCA and ZLONGIT in the above files but the elegant tracking result gives an underestimated value (~0.1mA) of microwave threshold. I have doubt whether I have chosen the correct functions or have wrongly configured the ZLONGIT to simulate the MWI. Please help me to correct above elegant files (previous communication).

Re: Study of TMCI

Posted: 04 Oct 2019, 15:24
by lindberg
I'm not sure why you think this is "underestimated." Your impedance is rather strong and the microwave instability threshold should be pretty low. If you reduce Ra to, say 20 MOhm then the threshold should increase to ~0.8 mA. One thing to note is that with only 10,000 particles the microwave instability threshold current will be less sharp, meaning that the simulation will show a small degree of energy spread growth below the "true" MWI threshold.

Re: Study of TMCI

Posted: 05 Oct 2019, 04:52
by arahim
Thanks a lot for your quick help.
As per your suggestion, I will increase the number of particles in the simulation. I have a doubt about Ra. For a given value of Z_longitudinal/n in a storage ring, what value of Ra should be fixed for the input of zlongit ?

I have calculated the Ra to be given as an input for zlongit is as follows (considering APS-upgraded as an example)
f_revolution=271.84 kHz and Z_longitudinal/n=0.18 Ohm.
The freq. considered for microwave simulation is up to 50GHz.
n for 50 GHz=1.8393e+005, now Ra=2*Rs=2*(Z_longitudinal/n)*n=6.6+04 Ohm.
Therefore, I have defined zz: zlongit,broad_band=1,freq=50e9,Ra=6.6e4,Q=1,bin_size=1e-12,n_bins=0
With above input MWI threshold is 0.1mA, however in literature APS MWI threshold is ~0.8mA (w/o HHC). Then , how should I define the Ra and freq…?

Re: Study of TMCI

Posted: 08 Jun 2020, 04:55
by arahim
Dear Dr. Borland,
I am tracking the beam (single bunch) through the Ring1 lattice without any impedance but the horizontal emittance, energy spread and bunch length is keep on increasing with the number of turns, while vertical emittance is nearly constant. I have configured the RF with the parameters of RF out file. I am not able to pin point, where the mistake is. Please help me to figure out the error. I have attached the files for the reference.

Re: Study of TMCI

Posted: 24 Jun 2020, 07:43
by arahim
I could locate the error...The lattice is having non zero values of alphax,alphay and etapx. I was not assigning these parameters any values in my input files and hence by default, code is reading them as zero and hence emittance blowing..
Arahim