Search found 1930 matches

by michael_borland
17 Feb 2012, 11:27
Forum: General
Topic: Add a prefix or suffix to a existing element name
Replies: 4
Views: 1859

Re: Add a prefix or suffix to a existing element name

Yue,

What I would normally do in a case like this is to write a Tcl script to create the lattice. The script can have whatever loops it needs to write the repeating section out with the desired names.

--Michael
by michael_borland
17 Feb 2012, 10:34
Forum: General
Topic: Add a prefix or suffix to a existing element name
Replies: 4
Views: 1859

Re: Add a prefix or suffix to a existing element name

Yue,

No, alter_elements is just for changing the parameters of an element.

You might be able to do what you want with replace_elements and/or insert_elements.

--Michael
by michael_borland
13 Feb 2012, 17:39
Forum: Optimization and Matching
Topic: emittance and CSR optimization
Replies: 2
Views: 1886

Re: emittance and CSR optimization

Charles, For issue #1, there is no better way to do this at present because the interior fitpoints don't presently support all the fields that the final fitpoint supports. I'll put it on my to-do-list. The best way to speed up the optimization with CSR is to use a parallel computer and Pelegant. Eve...
by michael_borland
08 Feb 2012, 10:04
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 5311

Re: Definition of rpn expression doesn't work

Fenggy,

It works without any problem on my linux system. Not sure what might be going wrong on your system.

--Michael
by michael_borland
08 Feb 2012, 09:23
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 5311

Re: Definition of rpn expression doesn't work

Fenggy,

I just verified that the "%" feature in the lattice file works as expected, so it is apparently a misconfiguration problem on your system.

Can you upload the command file, lattice file, and defns.rpn files you are using so we can try to replicate the problem?

--Michael
by michael_borland
07 Feb 2012, 09:38
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 5311

Re: Definition of rpn expression doesn't work

Fenggy, This definitely has the symptoms I would associate with a problem with the RPN_DEFNS environment variable. Can you check that the defns.rpn file is actually in the location named by RPN_DEFNS? Also, at the commandline, type "echo $RPN_DEFNS" and see if it returns the expected value. --Michael
by michael_borland
02 Feb 2012, 15:15
Forum: Linac Tracking
Topic: SIGSEGVProgram - another case
Replies: 3
Views: 1732

Re: SIGSEGVProgram - another case

Charles, Another workaround, due to Yusong Wang, is to ask for lost particle output by giving losses=%s.los in &run_setup. (The bug is that the code assumes you always ask for this.) That way, you can remove the use_particle_id=0 parameter on the SCRIPT element and the particle IDs will be consisten...
by michael_borland
02 Feb 2012, 14:10
Forum: Linac Tracking
Topic: SIGSEGVProgram - another case
Replies: 3
Views: 1732

Re: SIGSEGVProgram - another case

Charles,

There is a bug in elegant related to particle accounting after a SCRIPT element in which particles are lost. You can work around this by setting use_particle_id=0 and drift_matrix=1 on your script element.

We'll look into the file upload issue.

--Michael
by michael_borland
27 Jan 2012, 17:58
Forum: Bugs
Topic: TILT bug in zero-length RFDF
Replies: 1
Views: 1835

TILT bug in zero-length RFDF

A bug was reported by J. Rudolph (HZB) related to zero-length RFDF elements with nonzero TILT parameter. Although tracking is done correctly, all matrix output and related analyses (e.g., twiss output) ignore the tilt. A workaround is to set the length to a small, non-zero value, such as 1e-12. This...
by michael_borland
18 Jan 2012, 22:32
Forum: General
Topic: Plasma lens effects in elegant (quadrupole)
Replies: 2
Views: 1238

Re: Plasma lens effects in elegant (quadrupole)

Erik, The best (i.e., only) way to do this right now is using the SCRIPT element. Basically, it allows you to write an external program or script that is integrated into elegant as an element of the beamline. Having a built-in option for a lens like this is a good idea. I'll try to work it into the ...