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

Equilibrium emittance in presence of SR and IBS #157

Draft
wants to merge 60 commits into
base: main
Choose a base branch
from

Conversation

SebastienJoly
Copy link

@SebastienJoly SebastienJoly commented Jan 3, 2025

Description

Add a function performing a numerical integration of the emittance evolution equations to find the equilibrium emittance in the presence of SR and IBS.
The equilibrium emittances with IBS and SR are a common metric in the light source community. Until now, it could only be computed with elegant (https://ops.aps.anl.gov/manuals/elegant_latest/elegantsu93.html) and the ZAP code (https://cds.cern.ch/record/185838/files/p289.pdf). It is now possible for Xsuite users to compute it as well.
The current implementation was successfully benchmarked against elegant and yielded the same results.
In addition, two emittance constraints can be selected depending on the use case. Moreover, the numerical integration step is dynamically updated after each iteration, and the integration stops after ensuring it reaches convergence.

I need to create a new folder in xtrack with the BESSY III json file I used as an input in the tests.

Checklist

Mandatory:

  • I have added tests to cover my changes
  • All the tests are passing, including my new ones
  • I described my changes in this PR description

Optional:

  • The code I wrote follows good style practices (see PEP 8 and PEP 20).
  • I have updated the docs in relation to my changes, if applicable
  • I have tested also GPU contexts

@fsoubelet
Copy link
Contributor

Working on this with Sebastian, will have a polished version soon enough

SebastienJoly and others added 26 commits January 9, 2025 11:00
fsoubelet and others added 30 commits January 14, 2025 14:38
… disappeared parameters lost as kwargs were not used, not the case anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants