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

Mad loader #31

Open
giadarol opened this issue Dec 15, 2019 · 4 comments
Open

Mad loader #31

giadarol opened this issue Dec 15, 2019 · 4 comments

Comments

@giadarol
Copy link

When frequency is zero, frequency should be computed from harmonic number and circumference.

Where do I find the circumference in cpymad?

@giadarol
Copy link
Author

Here the problem:

In [9]: line_for_tracking_b1.get_elements_of_type(pysixtrack.elements.Cavity)
Out[9]:
([Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0),
  Cavity(voltage=2000000.0, frequency=0.0, lag=180.0)],
 ['acsca.d5l4.b1',
  'acsca.c5l4.b1',
  'acsca.b5l4.b1',
  'acsca.a5l4.b1',
  'acsca.a5r4.b1',
  'acsca.b5r4.b1',
  'acsca.c5r4.b1',

@rdemaria
Copy link

rdemaria commented Dec 19, 2019

for instance

mad.sequence.lhcb1.length
mad.sequence.lhcb1.elements['acsca.d5l4.b1'].harmon

@martinschwinzerl
Copy link

Can we close this issue?

@rdemaria
Copy link

No, it is not yet implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants