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

Feature/end track marker+pyheadtail conversion #54

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
0fe80aa
Spacecharge: renaming properties of coasting beam...
aoeftiger Jun 12, 2020
25c7a40
spacecharge: renaming SpaceChargeBunched to SpaceChargeQGaussianProfi…
aoeftiger Jun 12, 2020
ec91688
space charge: copy from SpaceChargeBunched to new interpolated profil…
aoeftiger Jun 12, 2020
7dc1b9b
space charge: fixing hard coded min_sigma_diff
aoeftiger Jun 12, 2020
7daf5c4
space charge: first working interpolation version
aoeftiger Jun 12, 2020
1e4875d
space charge test & examples: update for new QGaussianProfile named c…
aoeftiger Jun 12, 2020
da92ecd
space charge: changing all line_density appearances in ...
aoeftiger Jun 12, 2020
4866d6c
Merge remote-tracking branch 'ao/feature/sc-linedensity-interpolation…
Aug 21, 2020
dc7be9c
interpolated profile SC: adding MAD-X loader and unifying setup_SC_in…
aoeftiger Aug 21, 2020
33f9c35
spacecharge: added semantics in tools and removal of duplicate...
aoeftiger Aug 24, 2020
830b1fc
Merge pull request #2 from aoeftiger/pr37and50
aoeftiger Aug 24, 2020
ad264cd
Merge branch 'master' into feature/sc-linedensity-interpolation
aoeftiger Aug 26, 2020
f766877
elements: register new SpaceChargeInterpolatedProfile
aoeftiger Aug 26, 2020
bc6c303
elements: register new SpaceChargeInterpolatedProfile
aoeftiger Aug 26, 2020
c7bfd79
added helper class to calculate q-gaussian distributions
martinschwinzerl Sep 1, 2020
e08fab8
use proper q-gaussian distribution inside SpaceChargeQGaussianProfile
martinschwinzerl Sep 1, 2020
7aa8265
rename SpaceChargeQGaussianProfile to ScQGaussProfile
martinschwinzerl Sep 1, 2020
c0e3109
add gamma and pow functions to MathlibDefault
martinschwinzerl Sep 1, 2020
794e7b3
update SpaceChargeInterpolatedProfile
martinschwinzerl Sep 1, 2020
a5c0af4
remove not needed lines from the SpaceChargeInterpolatedProfile track…
martinschwinzerl Sep 1, 2020
9a2e2fd
renamed SpaceChargeInterpolatedProfile to ScInterpolatedProfile, cosm…
martinschwinzerl Sep 1, 2020
5089b18
cosmetic changes to ScQGaussProfile
martinschwinzerl Sep 1, 2020
464cf03
linter/cosmetic changes to be_beamfields/tools.py
martinschwinzerl Sep 1, 2020
d5399b0
added method parameter to setup_spacecharge_interpolated_in_line, cos…
martinschwinzerl Sep 1, 2020
7348ad4
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
d9d0fe9
linter/cosmetic changes
martinschwinzerl Sep 1, 2020
409b3c2
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
254d034
linter/cosmetic changes
martinschwinzerl Sep 1, 2020
4e03e43
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
ada75cc
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
d643e1f
linter/cosmetic changes
martinschwinzerl Sep 1, 2020
56de1fb
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
9c3c939
uses upated space-charge element names
martinschwinzerl Sep 1, 2020
724cb1e
linter/cosmetic changes
martinschwinzerl Sep 1, 2020
f796875
Merge remote-tracking branch 'aoeftiger/feature/sc-linedensity-interp…
martinschwinzerl Sep 1, 2020
6c4ef04
Fix wrong attribute name in ScQGaussProfile
martinschwinzerl Sep 2, 2020
4a3a714
Update spacecharge.py
martinschwinzerl Sep 2, 2020
5da8d57
Update qgauss.py
martinschwinzerl Sep 2, 2020
8c0b3c4
fixes bug in calculating sqrt_beta for gaussian distributions
martinschwinzerl Sep 15, 2020
6acd66c
adds cq getter for the Q-Gaussian distribution
martinschwinzerl Sep 15, 2020
4bbfef4
fixes wrong decorator for the setter of q for the QGauss distribution
martinschwinzerl Sep 15, 2020
08f2f69
rename ScCoasting -> SCCoasting
martinschwinzerl Sep 15, 2020
69a1fe2
streamline the SCCoasting track() implementation
martinschwinzerl Sep 15, 2020
56f312b
rename ScQGaussProfile -> SCQGaussProfile
martinschwinzerl Sep 15, 2020
12b7d03
streamline track() implementation for SCQGaussProfile
martinschwinzerl Sep 15, 2020
cdd6d5f
rename ScInterpolatedProfile -> SCInterpolatedProfile
martinschwinzerl Sep 15, 2020
9a1327b
streamline implementation of track() method for SCInterpolatedProfile
martinschwinzerl Sep 15, 2020
655058a
reflect the rename of space-charge class names
martinschwinzerl Sep 15, 2020
71df3b0
adds unit-test for calculating gaussian distributions from QGauss
martinschwinzerl Sep 15, 2020
9098e6c
reflects the renaming of space-charge elements in tests
martinschwinzerl Sep 15, 2020
3c2bb4e
adds block to allow stand-alone running of the test, cosmetic changes
martinschwinzerl Sep 15, 2020
fb4c160
reflects the renaming of the space-charge elements in the examples
martinschwinzerl Sep 15, 2020
8250b8b
Merge pull request #3 from martinschwinzerl/feature/sc-linedensity-in…
aoeftiger Sep 16, 2020
088dcaf
bumped version number of pysixtrack
martinschwinzerl Oct 13, 2020
78af183
adds marker for ending track_line / track_until operations
martinschwinzerl Oct 13, 2020
10adc12
adds stub element for interfacing with PyHEADTAIL
martinschwinzerl Oct 13, 2020
d9d0441
integrates the PyHEADTAIL interface element
martinschwinzerl Oct 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Spacecharge: renaming properties of coasting beam...
... to have the same layout in terms of number of particles as in SpaceChargeBunched
  • Loading branch information
aoeftiger committed Jun 12, 2020
commit 0fe80aa7921e7d68089cc0a7938c72051f8c9c06
10 changes: 6 additions & 4 deletions pysixtrack/be_beamfields/spacecharge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@


class SpaceChargeCoasting(Element):
"""Space charge for a coasting beam"""
"""Space charge for a coasting beam."""

_description = [
("line_density", "1/m", "Number of particles per unit length", 0.0),
("number_of_particles", "", "Number of particles in the beam", 0.0),
("circumference", "m", "Machine circumference", 0.0),
("sigma_x", "m", "Horizontal size of the beam (r.m.s.)", 1.0),
("sigma_y", "m", "Vertical size of the beam (r.m.s.)", 1.0),
("length", "m", "Integration length of space charge kick", 0.0),
("x_co", "m", "Horizontal closed orbit offset", 0.0),
("y_co", "m", "Vertical closed orbit offset", 0),
("y_co", "m", "Vertical closed orbit offset", 0.0),
]
_extra = [
("min_sigma_diff", "m", "Threshold to detect round beam", 1e-30),
Expand Down Expand Up @@ -47,7 +48,8 @@ def track(self, p):

fact_kick = (
chi
* self.line_density
* self.number_of_particles
/ self.circumference
* (charge * p.qratio)
* charge
* (1 - p.beta0 * beta)
Expand Down