Search found 83 matches

by Philippe Piot
04 Nov 2016, 14:47
Forum: Optimization and Matching
Topic: rpn_load to set several quads
Replies: 2
Views: 4632

Re: rpn_load to set several quads

MIchael,
Thank you very much; I was not aware of the capability of the load-parameter. Best, -- Philippe.
by Philippe Piot
04 Nov 2016, 14:45
Forum: Bugs
Topic: issue with divide_elements
Replies: 2
Views: 4262

Re: issue with divide_elements

MIchael,
Thank you very much for the suggestion! -- Philippe.
by Philippe Piot
04 Nov 2016, 05:29
Forum: Optimization and Matching
Topic: rpn_load to set several quads
Replies: 2
Views: 4632

rpn_load to set several quads

Hi, I have a long FODO lattice. I fit once fodo cell to find the quad strength needed for a specified phase advance and then I would like to set all the quad in the FODO lattice given the value I found for one cell. I tried to do something like this: # load the quad associated to one cell &rpn_load ...
by Philippe Piot
04 Nov 2016, 05:20
Forum: Bugs
Topic: issue with divide_elements
Replies: 2
Views: 4262

issue with divide_elements

Hi, I noticed the divide_element changes the output results in some instances (i my case when tracking a particle distribution using a previously fitted lattice). I have attached a targz file that reproduces my problem. In brief, I do some fitting and in the last pass I track an incoming distributio...
by Philippe Piot
07 Sep 2016, 09:30
Forum: Optimization and Matching
Topic: chromatic functions
Replies: 6
Views: 7394

Re: chromatic functions

Michael, To follow up with this question about chromatic function (dbetax/dp and dalphax/dp). Would it be possible to dump these functions as a function of the distance along the beamline -- right now they are evaluated at the end of the beam line. Is there an easy way to do so without modifying ele...
by Philippe Piot
02 Aug 2016, 10:44
Forum: Feature Requests
Topic: ellipse distribution
Replies: 1
Views: 13059

ellipse distribution

Michael, Is there a way to have a special distribution in the &bunch parameter to generate particle distributed on the perimeter of an ellipse. This would enable tracking equivalent-beam ellipses to, e.g., study the impact of chromatic aberrations. Right now the only alternative I found was to gener...
by Philippe Piot
31 Jul 2016, 12:48
Forum: Optimization and Matching
Topic: chromatic functions
Replies: 6
Views: 7394

Re: chromatic functions

Michael,
Indeed I had an old version on my laptop -- also I think there is no mention [yet ;-)] of the dalphax/dp and dalphay/dp in the doc under the twiss output section. Thank you very much for your prompt answer. All the best, -- Philippe.
by Philippe Piot
30 Jul 2016, 12:05
Forum: Optimization and Matching
Topic: chromatic functions
Replies: 6
Views: 7394

chromatic functions

Hi,
In ELEGANT is there a way to directly get the chromatic amplitude functions (Wx, Wy)? I see only dbetax/dp and dbetay/dp in the .twi file but not dalphax/dp and dalphy/dp -- both dalpha/dp and dbeta/dp are needed to get the chromatic amplitude.
Thank you, -- Philippe.
by Philippe Piot
06 Jul 2016, 16:05
Forum: General
Topic: rms calculation on a profile
Replies: 1
Views: 1520

rms calculation on a profile

I was wondering is there is a way to compute the statistic (e.g. rms) of one column (a variable) using another column as weight. For instance I generate some profiles I(x) versus x and want to compute <x^2> using sddsrunstat or similar. Right now I use sddsprocess generate the I(x)*x*x, I(x)*x, etc....
by Philippe Piot
10 Jul 2014, 10:18
Forum: Linac Tracking
Topic: calling a script many times within the elements of a lattice
Replies: 1
Views: 1730

calling a script many times within the elements of a lattice

All,
Is there a way to "continuously" call a script a few times per elements? We would like to use an external space charge algorithm coupled with elegant via the script element. Thank you very much for any suggestion. Best, -- Philippe.