Skip to content

Symplectic Elements: invert() #1349

@ax3l

Description

@ax3l

A key feature of ImpactX is that we implement symplectic maps.

Add a method to every element to inverse the element. Negate ds (thick) or negate the strength (thin), then all compute_constants().

Corner Cases

  • PRot: swap phi_inphi_out
  • DipEdge: negate psi / K coefficients, swap entryexit
  • RFCavity (thick, energy-changing) needs -ds plus negating escale or shifting phase by 180° to reverse the acceleration
  • Apertures: nothing for transmitted particles, not inversible for absorbed particles

Applications

Many... in beam dynamics, stability analysis and ML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions