Search found 85 matches

by tennant
19 May 2010, 12:40
Forum: General
Topic: sdds command help
Replies: 4
Views: 2032

sdds command help

Hi, I have an SDDS file (attached) in which contains a column of MAL.DP and betaxFinal values (among other things). What I would like to do is calculate (betaxFinal-betaxFinal0)/betaxFinal0 where betaxFinal is the value corresponding to MAL.DP being zero. Just wondering if there is a way to do that ...
by tennant
05 May 2010, 12:23
Forum: Optimization and Matching
Topic: Changing a parameter for an element not in beamline
Replies: 4
Views: 7154

Re: Changing a parameter for an element not in beamline

Michael,

I was making a mistake on my end. It works now.

Thanks!
chris
by tennant
05 May 2010, 11:00
Forum: Optimization and Matching
Topic: Changing a parameter for an element not in beamline
Replies: 4
Views: 7154

Re: Changing a parameter for an element not in beamline

Michael,

I do use Windows. When I try to run the alter_elements commands you provided, I get an "Error: no matches for Q2" message. Is this consistent with the error you were expecting for someone running Windows?

--chris
by tennant
04 May 2010, 12:22
Forum: Optimization and Matching
Topic: Changing a parameter for an element not in beamline
Replies: 4
Views: 7154

Changing a parameter for an element not in beamline

Hi, Is there a way to change a parameter for an element not defined in the beamline (optimization_covariable doesn't work)? E.g. cell1 = line(b1, d1, q1, d1, b2) cell2 = line(b1, d1, q2, d1, b2) I want to optimize cell1 using q1 but also want q2 to take on that value as well. Sure, I can just copy a...
by tennant
19 Feb 2010, 10:25
Forum: Feature Requests
Topic: EMATRIX - third order
Replies: 3
Views: 17835

Re: EMATRIX - third order

Michael, So to implement a third-order transformation I can write the following commands in a script and get the desired result. I know you can call scripts from within Elegant, but when I try to use these command lines, Elegant doesn't run and complains of "get_param_name(): no parameter found in s...
by tennant
09 Sep 2009, 09:11
Forum: Feature Requests
Topic: KQUSE in magnet layout
Replies: 3
Views: 17050

KQUSE in magnet layout

Hi,

It appears that a KQUSE element is not represented in the magnet layout when it is plotted. It would be nice to have it visible.

--chris
by tennant
09 Sep 2009, 07:23
Forum: Linac Tracking
Topic: Energy loss due to CSR
Replies: 1
Views: 4257

Energy loss due to CSR

Hi,

Is there a preferred method for monitoring the energy loss due to CSR through a chicane? Thanks.

--chris
by tennant
26 Aug 2009, 09:29
Forum: Feature Requests
Topic: EMATRIX - third order
Replies: 3
Views: 17835

EMATRIX - third order

It would be nice if EMATRIX could provide third order terms (e.g. U5666). Is there a quick and dirty way that I could implement that at present? Thanks.
by tennant
26 Aug 2009, 07:02
Forum: General
Topic: Cavity Phase
Replies: 1
Views: 1301

Cavity Phase

Hi,

I have a linac comprised of a number of cavities. I would like to vary the phase at which these are run. Is there a way I can define a single phase variable in the lattice file and change one number rather than many 10s of cavities individually?

Thanks,
chris
by tennant
19 Aug 2009, 08:42
Forum: General
Topic: Matrix elements
Replies: 2
Views: 1556

Re: Matrix elements

Fantastic! For some reason I had been using printout="%s.mpr" rather than SDDS_output. Thanks.