Some matching commands suggestion  [SOLVED]

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

Re: Some matching commands suggestion

Post by Chinashliu »

Thank you very much for the DIAG_PHASE_ADV command. It helps me a lot in beam physics design.

And another function is useful to me: the same size or beta function for X and Y.

For example, I need a beam waist at a position, which could be set by "DIAG_WAIST" or "DIAG_TWISS". At the same time, I need the beta function for X and Y to be the same, which is a weaker requirement than "DIAG_TWISS", not defining the exact value for the beta function.

Do you mind considering it?

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

Re: Some matching commands suggestion

Post by FranceDidier »

Dear Shliu,

Ok, I added 2 new diagnostics elements, DIAG_BETA and DIAG_DBETA, see manual for details.

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Dear Didier,

I noticed the command "DIAG_DBETA" doesn't work in the latest version. Could you please fix it?

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

Re: Some matching commands suggestion

Post by FranceDidier »

Dear shliu,

That works on my side, please show me your example

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Attached the project.
Attachments
TW_Test.rar
(110.81 KiB) Downloaded 127 times
Chinashliu
Skilled
Skilled
Posts: 100
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: Some matching commands suggestion

Post by Chinashliu »

BTW, how to set the same twiss parameters at the same position? Would there be an example?I list a .dat file here.

DRIFT 300 75 0 0 0
ADjust 101 1 0
SOLENOID 100 1 75
DRIFT 300 75 0 0 0
DIAG_WAIST 101 1 1

ADJUST 102 1 0
EDGE 0 1600 150 0 0 75 0
BEND 45 1600 0 75 0
ADJUST 102 1 0
EDGE 0 1600 150 0 0 75 0

DIAG_DTWISS 102 1 1 1 1 0
DRIFT 0 75 0 0 0
DIAG_DTWISS 102 1 1 1 1 0
end
User avatar
FranceDidier
Administrator
Administrator
Posts: 975
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Dear shliu,

Ok, I see now that it is a problem of beta definition (TWISS vs function). I added for DIAG_BETA & DIAG_DBETA a new option to select the beta definition used (see manual for explanation).

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Thank you!

Then how about the last problem? How to use diag_dtwiss. Is there a simple example?
User avatar
FranceDidier
Administrator
Administrator
Posts: 975
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Some matching commands suggestion

Post by FranceDidier »

Hi,

The explanation in the manual is normally sufficient, if not tell me, because it seems rather trivial

Regards,

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

Re: Some matching commands suggestion

Post by Chinashliu »

Hi Didier,

I upload the project file to check the problem with the command diag_dtwiss.

Could you help to check it? Maybe I didn't quite understand the description in the manual.

Kinds,
shliu
Attachments
TW_Test2.rar
(110.34 KiB) Downloaded 142 times
Locked