Hi,
I have a problem with the <filename>=<x>+<y> format when using the ZLONGIT element. I have a SDDS file with three columns, Freq, RealZ and ImagZ corresponding to the frequency, real and imaginary part of an impedance. Even if I specify that that ZREAL and ZIMAG should use different columns it seems they read in the same. The only way I have managed to get it to read in different columns is by separating the real and imaginary part into two different SDDS files.
I discovered it since I could only get the wake and impedance simulations to agree for cases where the real and imaginary impedance is the same. Also, I only got the "error: impedance spectrum has non-zero imaginary DC term (ZLONGIT)" depending on the DC term of the real part, indicating that the real impedance is read in also for the imaginary part.
Am I doing something wrong or is this a bug?
I have attached some files where I get the problem and also the only way I have found to get around it.
Best regards,
Teresia
ZLONGIT reads in impedance file wrong
Moderators: cyao, michael_borland
ZLONGIT reads in impedance file wrong
- Attachments
-
- zlongit-files.zip
- (6.85 MiB) Downloaded 323 times
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: ZLONGIT reads in impedance file wrong
Teresia,
The problem is that the quotation marks need to be escaped in the insert_elements command. Instead of
you should use
The \" sequence allows putting a quotation mark inside a quoted string.
--Michael
The problem is that the quotation marks need to be escaped in the insert_elements command. Instead of
Code: Select all
&insert_elements
name = impedance,
element_def = "lon_rw_impedance: zlongit,zreal="impedance_elegant.sdds"="Freq"+"RealZ",zimag="impedance_elegant.sdds"="Freq"+"Im
agZ",interpolate=1,bunched_beam_mode=1"
&end
Code: Select all
&insert_elements
name = impedance,
element_def = "lon_rw_impedance: zlongit,zreal=\"impedance_elegant.sdds=Freq+RealZ\",zimag=\"impedance_elegant.sdds=Freq+ImagZ\"
,interpolate=1,bunched_beam_mode=1"
&end
--Michael
Re: ZLONGIT reads in impedance file wrong
Ah! Thank you. I wasn't aware of this. I will try that.
Best regards,
Teresia
Best regards,
Teresia