atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

atsolenoid KS instead of K #660

Closed simoneliuzzo closed 9 months ago

simoneliuzzo commented 10 months ago

the element creator atsolenoid defines and element with passmethod SolenoidLinearPass and strength field KS. The SolenoidLinearPass integrator however accepts K as gradient and not KS.

atsolenoid('Sol', 2.25, 1.0)

struct with fields:

   FamName: 'Sol'
PassMethod: 'SolenoidLinearPass'
    Length: 2.250000000000000
     Class: 'Solenoid'
        KS: 1

[a,b] = SolenoidLinearPass

a =

2×1 cell array

{'Length'}
{'K'     }