Matching using LSC elements

Moderators: cyao, michael_borland

Post Reply
astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Matching using LSC elements

Post by astecpete » 15 Dec 2008, 06:14

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

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Matching using LSC elements

Post by michael_borland » 15 Dec 2008, 08:44

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

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: Matching using LSC elements

Post by astecpete » 15 Dec 2008, 09:11

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

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: Matching using LSC elements

Post by astecpete » 15 Dec 2008, 09:29

Just installed 19.1.6 - it still gives the same error. I'll use alter_elements for now.

Pete

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Matching using LSC elements

Post by michael_borland » 15 Dec 2008, 10:20

Pete,

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

--Michael

Post Reply