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

Correct calculation of beam space charge in Baxevanis solver #30

Merged
merged 10 commits into from
Aug 21, 2021

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Aug 21, 2021

The current way of calculating the azimuthal magnetic field had a problem where it did not take into account the whole charge of the beam, especially when the number of radial grid points along the bunch was small.

This PR fixes this issue as well as other related problems. These include:

  • Correct calculation of b_theta.
  • The use of Ruyten shapes for charge deposition has been reactivated and added as option.
  • Several bug fixes in the implementation of the Ruyten shapes.
  • The deposition methods now force all the charge to be deposited within the grid boundaries. This avoids having less charge in the edges of the grid, particularly when using 'cubic' particle shapes.
  • Fix small bug in the calculation of z_max in the deposition method.

@AngelFP AngelFP merged commit 92e9af0 into laser_envelope Aug 21, 2021
@AngelFP AngelFP deleted the bug-fix_beamloading branch August 21, 2021 14:06
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.

1 participant