Page 1 of 1

Command priority in partran matching mode

Posted: Mon 27 Jun 2022 05:05
by shliu
Hi Didier,

I use command "set_size_max", "set_size" and "set_twiss" in my .dat fie and performed matching with Quads in partran mode. I noticed only set_twiss is considered in TraceWin. So I'm wondering are there any command priorities in partran mathcing mode?

My .dat file is like this:

DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...

set_size_max...

DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...

set_size...

DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...
MATCH_FAM_GRAD 1 0
QUAD...
DRIFT...

set_twiss...

DRIFT...
end

It works in matching mode(uncheck "With Partran") with "(2) Match with Family & Twiss commands" checked.

I'm using V2.18.1.1 on Win11 system.

Kinds,
Shliu

Re: Command priority in partran matching mode

Posted: Mon 27 Jun 2022 08:29
by Didier
Dear Shliu,

All these commands have a parameter 'k' as the first parameter to balance each of them in the global criterion.

Regards,

Didier

Re: Command priority in partran matching mode

Posted: Mon 27 Jun 2022 09:59
by shliu
Dear Didier,

I mean commands "set_size" and "set_size_max" are ignored in partran matching mode, and only "set_twiss" is considered.

Kinds,
shliu

Re: Command priority in partran matching mode

Posted: Mon 27 Jun 2022 16:04
by Didier
Dear Shliu,

Sorry, I didn't understand.
SET_SIZE works with partran but not SET_SIZE_MAX, because under partran only the input and output beam sizes of the elements are known, making this last command not really relevant.

Regards,

Didier

Re: Command priority in partran matching mode

Posted: Mon 27 Jun 2022 19:57
by shliu
I see. Thank you!