Some matching commands suggestion [SOLVED]
Re: Some matching commands suggestion
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
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
Dear Shliu,
Ok, I added 2 new diagnostics elements, DIAG_BETA and DIAG_DBETA, see manual for details.
Regards,
Didier
Ok, I added 2 new diagnostics elements, DIAG_BETA and DIAG_DBETA, see manual for details.
Regards,
Didier
Re: Some matching commands suggestion
Dear Didier,
I noticed the command "DIAG_DBETA" doesn't work in the latest version. Could you please fix it?
Kinds,
shliu
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
Dear shliu,
That works on my side, please show me your example
Regards,
Didier
That works on my side, please show me your example
Regards,
Didier
Re: Some matching commands suggestion
Attached the project.
- Attachments
-
- TW_Test.rar
- (110.81 KiB) Downloaded 127 times
Re: Some matching commands suggestion
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
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
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
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
Thank you!
Then how about the last problem? How to use diag_dtwiss. Is there a simple example?
Then how about the last problem? How to use diag_dtwiss. Is there a simple example?
Re: Some matching commands suggestion
Hi,
The explanation in the manual is normally sufficient, if not tell me, because it seems rather trivial
Regards,
Didier
The explanation in the manual is normally sufficient, if not tell me, because it seems rather trivial
Regards,
Didier
Re: Some matching commands suggestion
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
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