Search found 1930 matches

by michael_borland
09 Sep 2009, 08:38
Forum: Feature Requests
Topic: coupled_twiss_output command doesn't calculate beam sizes
Replies: 1
Views: 12101

Re: coupled_twiss_output command doesn't calculate beam sizes

Sorry I didn't see this one sooner. The best way to compute the beam sizes with coupling is using the moments_output command. I've attached an example. For example, to see the vertical beamsize due to quadrupole tilt errors % elegant parMoments.ele % sddsplot -column=s,s3 parMoments.mom -split=page ...
by michael_borland
09 Sep 2009, 08:28
Forum: Feature Requests
Topic: The systematic and random multipole errors of CSBEND
Replies: 1
Views: 8321

Re: The systematic and random multipole errors of CSBEND

Sorry I didn't see this item sooner. CSBEND is different from KQUAD and KSEXT in that it includes explicit parameters for the higher multipoles. You can use K1, K2, K3, ..., K8 or B1, B2, B3, ..., B8. Please see this link for more details: http://www.aps.anl.gov/Accelerator_Systems_Division/Operatio...
by michael_borland
09 Sep 2009, 08:24
Forum: Linac Tracking
Topic: Energy loss due to CSR
Replies: 1
Views: 4247

Re: Energy loss due to CSR

Chris, There are two main options: 1. In run_setup, use the centroid parameter to specify the name of a file to which centroid information will be written. The relevant quantity is Cdelta, defined as <p>/pCentral-1. 2. Add several WATCH elements with mode="coordinate" to see the change in the partic...
by michael_borland
09 Sep 2009, 08:18
Forum: Feature Requests
Topic: EMATRIX - third order
Replies: 3
Views: 17082

Re: EMATRIX - third order

Chris,

I'll add this to the list.

I can't think of a way to do it in the present version.

--Michael
by michael_borland
26 Aug 2009, 14:30
Forum: General
Topic: Cavity Phase
Replies: 1
Views: 1295

Re: Cavity Phase

Chris, There are several ways to do this. 1. Inside the lattice file, define a variable and then use it in the element definitions % 10.7 sto phase1 l1: rfca,phase="phase1",... l2: rfca,phase="phase1" etc. 2. Same as 1, but set the phase1 value in the elegant command file: &rpn_expression expression...
by michael_borland
21 Aug 2009, 08:20
Forum: Bugs
Topic: Bug in LSRMDLTR
Replies: 5
Views: 7956

Bug in LSRMDLTR

There is a bug in the LSRMDLTR element when the field expansion is set to "leading-terms" or "exact". The longitudinal magnetic field has the wrong sign, leading to incorrect vertical focusing. For those who build from source, a corrected file is attached. This fix will appear in the next release. T...
by michael_borland
19 Aug 2009, 08:14
Forum: General
Topic: Matrix elements
Replies: 2
Views: 1537

Re: Matrix elements

Chris,

You can do this by using the matrix_output command to get the matrix into an SDDS file, e.g.,

&matrix_output
SDDS_output = <filename>,
SDDS_output_order = 1
&end

This will output the first-order matrix elements vs s for the beamline named in run_setup.

--Michael
by michael_borland
18 Aug 2009, 09:51
Forum: Parameter Scanning
Topic: Problem with vary_element
Replies: 3
Views: 18339

Re: Problem with vary_element

Frank,

I don't think you missed anything. It doesn't appear to be in the manual.

I'll add it. Thanks for the suggestion.

--Michael
by michael_borland
18 Aug 2009, 09:04
Forum: Parameter Scanning
Topic: Problem with vary_element
Replies: 3
Views: 18339

Re: Problem with vary_element

Frank, The problem is that the name of the element starts with a digit. While this is legal in elegant, it causes problems when elegant attempts to create a parameter in the .fin file corresponding to the varied quantity. The reason is that SDDS forbids names that start with digits, because it cause...
by michael_borland
11 Aug 2009, 16:01
Forum: General
Topic: Combined magnet
Replies: 1
Views: 1391

Re: Combined magnet

Hisham, Unfortunately there's no element that combines all of those fields conveniently. There are two options: * Add two zero-length MULT elements on either side of the KQUSE element. Set ORDER=3 to get octupole field. * Use KQUAD, and specify the sextupole and octupole fields using the SYSTEMATIC_...