Skip to content

Length calculation of a support structure across injection point in SCgetSupportRoll.m #36

@yhidaka

Description

@yhidaka

Hi Thorsten,

I am an accelerator physicist at NSLS-II, currently looking into implementing a similar code as SC with Python and ELEGANT.

I could be wrong, but while trying to understand the flow of support structure roll calculations in SCgetSupportRoll.m, I noticed that the length of a support structure used to compute pitch and yaw might be wrong, if diff(ords)<0 (i.e., the case when the structure starts near the end of a ring, comes around to the beginning of the ring, and ends near the beginning of the ring).

In Lines 79, 80, 82, and 83, I suppose (C-s0(ords(1))-s0(ords(2))) corresponds to the length of the structure. But I think this should be (C-s0(ords(1))+s0(ords(2))) instead (the second minus sign is changed to a plus). Am I wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions