Page 1 of 1

Matching using LSC elements

Posted: 15 Dec 2008, 06:14
by astecpete
Hi Michael,

I have a linac lattice that i'm matching at the moment. I've made the lattice with LSCDRIFT and RFCW elements. When i try to match it says...

Starting simplex optimization.
generating bunch 0.0
Warning: only 0 of 1 particles were binned (LSCDRIFT)!
This shouldn't happen.
Error: beam radius is zero in LSCDRIFT

Last time i did this i just made another lattice with DRIFT and RFCA elements. Is there some clever setting whereby i don't need to make two lattices?

Pete

Re: Matching using LSC elements

Posted: 15 Dec 2008, 08:44
by michael_borland
Pete,

You can set LSC=0 on all LSCDRIFT elements. An easy way is using this command:

&alter_elements name=*, type=LSCDRIFT, item=LSC, value=0 &end

Place this after run_setup and any load_parameters commands.

I think the latest release, version 19.1, should also fix this bug. What version are you using?

--Michael

Re: Matching using LSC elements

Posted: 15 Dec 2008, 09:11
by astecpete
Ah, i hadn't thought of using alter_elements :oops:

The machine i tried it on has 19.0.2 installed. I'll install the latest version!

Thanks Michael

Re: Matching using LSC elements

Posted: 15 Dec 2008, 09:29
by astecpete
Just installed 19.1.6 - it still gives the same error. I'll use alter_elements for now.

Pete

Re: Matching using LSC elements

Posted: 15 Dec 2008, 10:20
by michael_borland
Pete,

Thanks for letting me know. I'll add this to the bugs list.

--Michael