&matrix_output

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

&matrix_output

Post by Max » 09 Feb 2010, 10:07

I have a question about the &matrix_output option.
I am interested in computing the R-matrix terms in presence of closed orbit distortions:

&matrix_output
SDDS_output = %s.mat
individual_matrices = 1
&end

Since the R-terms turn out to be the same regardless of the amplitude of the closed orbit, I assume that
Elegant computes them for the basic lattice. Am I right ? How does on compute them with a lattice with
errors and at the perturbed closed orbit ?

Thanks, Max

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: &matrix_output

Post by michael_borland » 10 Feb 2010, 10:27

Max,

By default the matrix_output command runs immediately when seen. However, the closed orbit is only run later in the main loop. You need to tell elegant to perform matrix_output later. You can do this by setting output_at_each_step=1 in matrix_output.

Let me know if that doesn't work.

--Michael

Post Reply