Search found 17 matches

by xiaoam
29 Nov 2017, 17:55
Forum: Momentum Aperture
Topic: touschek_scatter
Replies: 17
Views: 30780

Re: touschek_scatter

Macro: You can change the bin size using "sbin_step" options, for example "sbin_step=0.1", in this case the output units should be particles/second/bin. If you want a detail loss information, you should use "STRING loss = NULL;" option, then you get a file saved all lost simulated particles. Note: p...
by xiaoam
23 Jul 2015, 10:44
Forum: General
Topic: Phase shifted and tapered undulators
Replies: 1
Views: 1452

Re: Phase shifted and tapered undulators

For any special insertion device, the easiest way to do it is using UKICKMAP element inside elegant. The kickmap can be obtained from magnet design code, RADIA for example. -- aimin
by xiaoam
10 Mar 2014, 11:34
Forum: Momentum Aperture
Topic: touschek_scatter
Replies: 17
Views: 30780

Re: touschek_scatter

Macro, Finally understand what causes your trouble. In the calculation of momentum_aperture, use include_name_pattern = TEST, (result momentum aperture output at tscatter element) don't use include_name_pattern = TS*[ABCD] (this gives you momentum aperture at element with different name and type eve...
by xiaoam
07 Mar 2014, 12:21
Forum: Momentum Aperture
Topic: touschek_scatter
Replies: 17
Views: 30780

Re: touschek_scatter

Macro, The code guard the possible error that beamlines in run_setup and .mmap file are different. In your case, when you calculate .mmap, the beamline doesn't include the tscatter element. So, the code think you are using different lines for the calculation which is wrong. The problem can be solved...
by xiaoam
06 Mar 2014, 12:18
Forum: Momentum Aperture
Topic: touschek_scatter
Replies: 17
Views: 30780

Re: touschek_scatter

Macro,

See attached example. Since Touschek scattering rate depends on local optical function, you should insert the element at places that make a good sample of the variation.

aimin
by xiaoam
20 Dec 2013, 12:22
Forum: Linac Tracking
Topic: Cavity splitting in ibsEmittance calculation
Replies: 2
Views: 4146

Re: Cavity splitting in ibsEmittance calculation

Olga, I would say energy variation between each IBS element should be smaller than 5% of the beam energy for low energy beam. In my previous simulation, initial beam energy is 10MeV, I split rf cavity, so each piece of rf cavity gave 200 kV energy to beam. For even low energy, you need smaller step ...
by xiaoam
28 Oct 2013, 23:01
Forum: Bugs
Topic: ignored_portion=0 problem
Replies: 6
Views: 3276

Re: ignored_portion=0 problem

Sorry, forget the attachment.
by xiaoam
28 Oct 2013, 22:59
Forum: Bugs
Topic: ignored_portion=0 problem
Replies: 6
Views: 3276

Re: ignored_portion=0 problem

Olga, I don't have problem for testing, see attached file. While the difference could be: 1. You gave me a wrong .lte file which I am not repeating the exact situation as you encounted. 2. I only tracked 1 TSCATTER element for saving time (maybe saving memory also). you can separate your run into su...
by xiaoam
16 Oct 2013, 15:40
Forum: General
Topic: GFwiggler with odd number of poles
Replies: 3
Views: 1838

Re: GFwiggler with odd number of poles

Julian, In your configuration, you will have half period wiggler excluding ending poles, which is OK in practice. But the code has to use integer periods for calculation. To solving this, you can scale your wiggler strength correspondingly. For example: -0.25 0.75 -1 1 -0.75 0.25 (6 poles) = 2 x nor...
by xiaoam
15 Oct 2013, 12:00
Forum: General
Topic: GFwiggler with odd number of poles
Replies: 3
Views: 1838

Re: GFwiggler with odd number of poles

Hi Julian, There is no needs to shift or changing the phase (They are ONLY used for varying polarization modes). First, you need to figure out what's the period length and equivalent period number. Use this information as input of CWIGGLER. For GWIGGLER, it assums you have pole being arranged as 0.2...