Search found 34 matches

by foshea
25 Jun 2020, 22:25
Forum: General
Topic: Plotting paged data on top of a single data set using sddsplot
Replies: 2
Views: 1426

Plotting paged data on top of a single data set using sddsplot

I'm trying to plot a series of data sets, the .out file from elegant, against a baseline data set. I'd like the series of data sets to be on top of the baseline data set. I create the series of data sets by using sddscollapse to put them all in to one file to plot them. All permutations of the sddsp...
by foshea
13 Mar 2020, 17:16
Forum: Optimization and Matching
Topic: output_at_each_step creates unknown tokens when combined with optimization_covariable
Replies: 1
Views: 8781

Re: output_at_each_step creates unknown tokens

I have one more clue. I cannot use beam line element parameters (quad strength, drift lengths, bend angles) in optimization_term, optimization_covariable, or rpn_expression unless they are also used as optimization_variables as well. At the moment I have output_at_each_step commented out because I n...
by foshea
10 Mar 2020, 18:11
Forum: Optimization and Matching
Topic: output_at_each_step creates unknown tokens when combined with optimization_covariable
Replies: 1
Views: 8781

output_at_each_step creates unknown tokens when combined with optimization_covariable

I'm trying to optimize a toy beam line and I can't access all the parameters I want to because of unexpected behavior of the output_at_each_step flag in twiss_setup. When the flag is set (output_at_each_step = 1), the following optimization_covariable throws an unknown token: &optimization_covariabl...
by foshea
09 Mar 2020, 20:27
Forum: Optimization and Matching
Topic: problem when optimizing phase advance
Replies: 9
Views: 19549

Re: problem when optimizing phase advance

Ohh wow, I've probably used those functions a hundred times and I just couldn't see that missing minus sign. Thank you! I guess what is happening is that once the selt function gets all the inputs it needs it ignores the rest of the stack. That would explain why the error wasn't fatal and why the co...
by foshea
09 Mar 2020, 17:34
Forum: Optimization and Matching
Topic: problem when optimizing phase advance
Replies: 9
Views: 19549

Re: problem when optimizing phase advance

I realize this thread is over 10 years old, but I'm having a very similar issue. I'm trying to constrain the phase advance between two points, it shows up in the optimization routine apparently fine: MARK-NLAE.02#1.psix MARK-TARG.A2#1.psix 3.35 0.1 selt: 0.000000000000000e+00 As you can see it is ze...
by foshea
14 Feb 2020, 17:18
Forum: Optimization and Matching
Topic: Optimizer gets lengths wrong by a factor of 10
Replies: 2
Views: 8744

Re: Optimizer gets lengths wrong by a factor of 10

Yep. That did it. I had each element divided in to 10. Thank you!

I'm pretty sure I've both made this mistake and asked this question before.
by foshea
14 Feb 2020, 16:52
Forum: Optimization and Matching
Topic: Optimizer gets lengths wrong by a factor of 10
Replies: 2
Views: 8744

Optimizer gets lengths wrong by a factor of 10

I'm trying to optimize a beam that allows some of the quadrupoles to "float" as I don't really care where they go as long as the total drift is fixed. I constrain the total drift using the following command: &optimization_term term = "MDL-D.02.L MDL-D.03.L + 0.296 0.01 sene", weight = 1 &end When th...
by foshea
13 Jan 2020, 19:26
Forum: Optimization and Matching
Topic: Correction routine doesn't appear to handle coupling between X and Y
Replies: 5
Views: 10724

Correction routine doesn't appear to handle coupling between X and Y

I am running a correction routine on a strongly coupled transport line using solenoids and when it is done it does an excellent job on the y-direction and appears to ignore the x-direction. Here is my call to the &correct command: &correct disable = 0, n_iterations = 50, n_xy_cycles = 50, force_alte...
by foshea
31 Dec 2019, 14:56
Forum: Installation
Topic: Installing elegant on Ubuntu Windows Subsystem for Linux
Replies: 2
Views: 10560

Re: Installing elegant on Ubuntu Windows Subsystem for Linux

The problem with XtAppCreateShell while running mpl_motif was the key. I didn't have any kind of X windows. I did the following and sddsplot now works: Install VcXSrv Run it once to select start up options and save a configuration file Move that configuration file (not xlaunch.exe) to the windows st...