xsuite / xcoll

Xsuite collimation package
Apache License 2.0
3 stars 15 forks source link

K2 works #82

Closed simoneotelie closed 4 months ago

simoneotelie commented 5 months ago

Description

Manually reset part_abs_pos, part_hit_pos, part_turn_pos and part_turn_abs after each tracking. Added c_enom to pyk2 to avoid nan values in sixtrack. Added abs() to the calculation of offset to avoid offset always being 0. Removed elements/names of collimators that have no gap in order to match with .dat file.

Only change in FORTRAN is making part_hit_turn from collimation.f90 public, so that it is possible to reset its elements in pyk2.

NOTE: only (visible) difference between Xsuite and SixTrack now is the case where the pencil is generated "within" the collimator. For Xsuite all particles die. For SixTrack only the absorbed ones "die". Plots are equal if Xsuite includes all "dead" particles as well for this case. Closes # .

Checklist

Mandatory:

Optional: