modulate_elements
Moderators: cyao, michael_borland
Re: modulate_elements
Here you go!
- Attachments
-
- ForMike.zip
- Hack version
- (5.04 KiB) Downloaded 243 times
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: modulate_elements
Thanks!
Re: modulate_elements
Michael,
I _may_ have found another bug in Modulate_elements. Attached is a demo which saws the possible bug. It is similar to the previous example except that now I turn on the RF system. When I turn on the RF, there are two things I see:
1) for modulate elements, I need to have negative times in my file which specifies the element values, othwerwise I get an error that the interpolation fails when it encounters a particle with negative times.
2) the phase space behaviour is _VERY_ different with the RF on. Some of this is expected, synchrotron oscillations etc, but the islands I get with no RF completely disappear. If I start the scan at settings which generate the islands, they appear, but if I try to move the islands with the scan, they do not move.
I believe this may be an error in the code, but I am not whole heartedly convinced, but it smells like a duck, and walks like a duck.
Ray
I _may_ have found another bug in Modulate_elements. Attached is a demo which saws the possible bug. It is similar to the previous example except that now I turn on the RF system. When I turn on the RF, there are two things I see:
1) for modulate elements, I need to have negative times in my file which specifies the element values, othwerwise I get an error that the interpolation fails when it encounters a particle with negative times.
2) the phase space behaviour is _VERY_ different with the RF on. Some of this is expected, synchrotron oscillations etc, but the islands I get with no RF completely disappear. If I start the scan at settings which generate the islands, they appear, but if I try to move the islands with the scan, they do not move.
I believe this may be an error in the code, but I am not whole heartedly convinced, but it smells like a duck, and walks like a duck.
Ray
- Attachments
-
- ForMike.zip
- (4.62 KiB) Downloaded 219 times
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: modulate_elements
Ray,
I'm a bit swamped right now. One suggestion is to try the MODRF element, which allow imposing various modulations in an rf cavity. Also, RAMPRF allows specifying time-dependent waveforms for phase and amplitude.
--Michael
I'm a bit swamped right now. One suggestion is to try the MODRF element, which allow imposing various modulations in an rf cavity. Also, RAMPRF allows specifying time-dependent waveforms for phase and amplitude.
--Michael
Re: modulate_elements
Michael,
The modulation is not on the RF, it is still on the quadrupoles. I am just adding in the RF to the dynamics.
Ray
The modulation is not on the RF, it is still on the quadrupoles. I am just adding in the RF to the dynamics.
Ray
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: modulate_elements
Ray,
Ok, I'll try to have a look in the next few days. One thing you might check is whether it is the same with QUAD and KQUAD elements. It should be very similar.
--Michael
Ok, I'll try to have a look in the next few days. One thing you might check is whether it is the same with QUAD and KQUAD elements. It should be very similar.
--Michael
Re: modulate_elements
Michael,
It is pratically unchanged.
Ray
It is pratically unchanged.
Ray
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: modulate_elements
Ray,
Try setting change_t=0 on the RFCA. Otherwise, you are reseting the average particle coordinates to <t>=0, which is going to mess up the calculation of the modulation amplitude.
--Michael
Try setting change_t=0 on the RFCA. Otherwise, you are reseting the average particle coordinates to <t>=0, which is going to mess up the calculation of the modulation amplitude.
--Michael
Re: modulate_elements
Michael,
BINGO, worked like a charm. Thanks for your help.
Ray
BINGO, worked like a charm. Thanks for your help.
Ray