Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radiation integrals ignore k0 #1186

Open
leonvanriesen opened this issue Jun 5, 2023 · 1 comment
Open

Radiation integrals ignore k0 #1186

leonvanriesen opened this issue Jun 5, 2023 · 1 comment
Labels
bug the behaviour is not documented and should be fixed in the code

Comments

@leonvanriesen
Copy link

It seems like the radiation integrals ignore any k0 value and only compute using angle.

Simple example:

b: rbend, l = 1, angle = 0, k0 = 0.001;
test: line = {b};
beam;
use, sequence= test;
twiss, betx = 1, bety = 1, chrom = true;
b, angle = 0.001;
twiss, betx = 1, bety = 1, chrom = true;

The first twill has zero integrals, the second one has non-zero integrals.
Cheers
L

@leonvanriesen
Copy link
Author

Also note that if k0 and angle are different,

b, k0= 1;
twiss, betx = 1, bety = 1, chrom = true;

it uses angle value not k0 value

@rdemaria rdemaria added the enhancement the behaviour should be changed in the code sometime label Jun 21, 2023
@rdemaria rdemaria added bug the behaviour is not documented and should be fixed in the code and removed enhancement the behaviour should be changed in the code sometime labels Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the behaviour is not documented and should be fixed in the code
Projects
None yet
Development

No branches or pull requests

2 participants