Some matching commands suggestion  [SOLVED]

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

Some matching commands suggestion

Post by Chinashliu »

Dear Didier,

I'm wondering if it is possible to add some commands about beam parameters' matching:

1. Boundary limit about command "MATCH_FAM_GRAD".
2. "SET_SIZE_MAX" is a quite useful command in beam transport line design. If "DIAG_SIZE_MAX" is added, it would be much more convenient.
3. "DIAG_WAIST" and "DIAG_SET_MATRIX" are important, did you consider "SET_WAIST" and "SET_MATRIX" commands?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 851
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Dear Shliu,

The ADJUST/DIAG_XXX couple is much more powerful in terms of possibilities and in my mind will completely replace the system linked to the MATCH_XX commands and besides when I look at your requests finally almost everything is covered by the diags (WAITS, MATRIX, boundary limits), except SET_SIZE_MAX. This latter is for the moment however outside the limits of the diag logic.
In summary, the existing MATCH_XXX commands are maintained for compatibility but are not intended to be expanded in future versions of the code.

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Dear Didier,

Thanks for the reply.

In beam transport line design, generally, more than one type of beam parameters should be considered, including bean size, achromat, twiss parameters, phase advance, matrix elements, etc., so "DIAG_SIZE_MAX" is important to me. Is it possible to add that?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 851
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Dear Shliu,

I added new DIAG named DIAG_SIZE_MAX, very similar to what is been done in MATCH_FAM_XX process.
Please, have a look on manual for detail

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

I noticed the upgradation. Thank you very much!
Chinashliu
Competent
Competent
Posts: 87
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Some matching commands suggestion

Post by Chinashliu »

Dear Didier,

Seems it doesn't work correctly. Could you help to check it?

Attached the project file.

Kinds,
shliu
Chinashliu
Competent
Competent
Posts: 87
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Some matching commands suggestion

Post by Chinashliu »

Something wrong with the attachment. I just put the code here:

DRIFT 0 50
DRIFT 0 50
DRIFT 0 50

DRIFT 1000 50
ADJUST 1001 2 0 -18 18
QUAD 200 15 50 0 0 0 0 0 0
DRIFT 100 50
ADJUST 1001 2 0 -18 18
QUAD 300 -15 50 0 0 0 0 0 0
DRIFT 100 50
ADJUST 1001 2 0 -18 18
QUAD 200 15 50 0 0 0 0 0 0
DRIFT 1000 50

DRIFT 5000 50

DRIFT 1000 50
ADJUST 1001 2 0 -18 18
QUAD 200 15 50 0 0 0 0 0 0
DRIFT 100 50
ADJUST 1001 2 0 -18 18
QUAD 300 -15 50 0 0 0 0 0 0
DRIFT 100 50
ADJUST 1001 2 0 -18 18
QUAD 200 15 50 0 0 0 0 0 0
DRIFT 1000 50

DIAG_SIZE_MAX 1001 16 5 5

END
User avatar
FranceDidier
Administrator
Administrator
Posts: 851
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Dear Shliu,

I fixed the problem and also changed the calculation of the criterion which was really not adapted.

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Hi Didior,

How about the command "DIAG_PHASE_ADVANCE"?

Regards,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 851
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Dear Shliu,

Ok no problem, DIAG_PHASE_ADV added in last version (see manual for details)

Regards,

Didier
Locked