Page 2 of 3

Re: Some matching commands suggestion

Posted: Wed 30 Nov 2022 10:42
by shliu
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

Re: Some matching commands suggestion

Posted: Thu 1 Dec 2022 17:30
by Didier
Dear Shliu,

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

Regards,

Didier

Re: Some matching commands suggestion

Posted: Tue 14 Mar 2023 04:36
by shliu
Dear Didier,

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

Kinds,
shliu

Re: Some matching commands suggestion

Posted: Tue 14 Mar 2023 10:22
by Didier
Dear shliu,

That works on my side, please show me your example

Regards,

Didier

Re: Some matching commands suggestion

Posted: Tue 14 Mar 2023 11:15
by shliu
Attached the project.

Re: Some matching commands suggestion

Posted: Tue 14 Mar 2023 11:26
by shliu
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

Re: Some matching commands suggestion

Posted: Tue 14 Mar 2023 15:26
by Didier
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

Re: Some matching commands suggestion

Posted: Wed 15 Mar 2023 03:26
by shliu
Thank you!

Then how about the last problem? How to use diag_dtwiss. Is there a simple example?

Re: Some matching commands suggestion

Posted: Wed 15 Mar 2023 10:50
by Didier
Hi,

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

Regards,

Didier

Re: Some matching commands suggestion

Posted: Thu 16 Mar 2023 02:05
by shliu
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