Hello
I was trying to run custom ray tracking DX vs DP using MALIGN element and vary_element function. Values fo MALIGN are supposed to be taken from SDDS file. For some reason simulation ends prematurely with message "index 1 has a limit of <= 0".
Is it me, or is there a bug with vary_element and taking values from file feature?
I've added archive with files:
run-test.ele - elegant script
log - terminal log
ring.new - lattice
EA_tracking_points.sdds - file with values for MALIGN element.
P.S. I want to propose a feature to elegant. Would be nice to have function similar to find_aperture but for X/Y vs deltaP.
Possible bug in vary_element
Moderators: michael_borland, soliday
-
- Posts: 24
- Joined: 14 Apr 2021, 09:42
Possible bug in vary_element
- Attachments
-
- vary_elements_bug_25.12.2023.zip
- (18.03 KiB) Downloaded 179 times
Respectfully,
Mikhail A. Skamarokha.
Mikhail A. Skamarokha.
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Possible bug in vary_element
The problem is that you've specified 19 indices (a 19-dimensional scan!) but only one vary_element command. You need at least one vary_element command per index. For example,
would perform a two-dimensional 11x17 scan.
Thanks for the new-feature suggestion. You can kind of get that from the tune_footprint command, at least for rings.
--Michael
Code: Select all
&run_control
n_indices = 2
&end
&vary_element index_number=0, index_limit=11, ... &end
&vary_element index_number=1, index_limit=17, ... &end
Thanks for the new-feature suggestion. You can kind of get that from the tune_footprint command, at least for rings.
--Michael
-
- Posts: 24
- Joined: 14 Apr 2021, 09:42
Re: Possible bug in vary_element
Thank you, got confused.
I've created file of particles with coordinates according to n-line search pattern, tracked them and used WATCH file to extract data about survived particles, which gave me X vs dP/P aperture.
In this topic is my detailed request to modify find_aperture function.
I've created file of particles with coordinates according to n-line search pattern, tracked them and used WATCH file to extract data about survived particles, which gave me X vs dP/P aperture.
In this topic is my detailed request to modify find_aperture function.
Respectfully,
Mikhail A. Skamarokha.
Mikhail A. Skamarokha.