Command priority in partran matching mode

https://www.dacm-logiciels.fr/tracewin
Post Reply
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Command priority in partran matching mode

Post by Chinashliu »

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
User avatar
FranceDidier
Administrator
Administrator
Posts: 976
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Command priority in partran matching mode

Post by FranceDidier »

Dear Shliu,

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

Regards,

Didier
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Command priority in partran matching mode

Post by Chinashliu »

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
User avatar
FranceDidier
Administrator
Administrator
Posts: 976
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Command priority in partran matching mode

Post by FranceDidier »

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
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Command priority in partran matching mode

Post by Chinashliu »

I see. Thank you!
Post Reply