Skip to Content.
Sympa Menu

opal - Re: [Opal] OPAL Dispersion Issues

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] OPAL Dispersion Issues


Chronological Thread 
  • From: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
  • To: Ryan Roussel <roussel AT g.ucla.edu>, opal AT lists.psi.ch
  • Subject: Re: [Opal] OPAL Dispersion Issues
  • Date: Sun, 15 Apr 2018 11:23:01 +0200
  • Authentication-results: localhost; dmarc=pass header.from=gmail.com

Hi Ryan,

a first general remark when modeling fringe fields with a hard-edge model: you wont get any edge focusing and odd effects can occur (as with any element whose length is shorter than X * dt * beta and/or whose fields aren't smooth).

I don't think that the orientation of the second dipole is what you wanted it to be, see the plot in the attachment (file: 'lattice.png'. The data for this plot can be produced using the python file data/<inputfn>_ElementPositions.py where in your case <inputfn> is CSR. The path of the reference particle in lab coordinates is in the file <inputfn>.stat (columns 18-20)).

I've corrected the lattice (although with hard-coded bend radius), see attachment (plot: 'lattice_corrected.png', input: 'CSR.in') and ran the simulation with 1e4 particles. The final particle distribution is also in the attachment ('CSR_end.dat.gz').

christof

On Tue, Apr 10, 2018 at 11:43 PM, Ryan Roussel <roussel AT g.ucla.edu> wrote:
Hello all,
I am having difficulty obtaining correct physical results with OPAL-T involving dipole magnets. I have attached the relevant files.

The beamline is a single dogleg with two equal strength bend magnets. The issue I am seeing is in the calculation of the dispersion function and the final particle distribution. The dispersion contribution from the first dipole magnet is orders of magnitude lower than what it should be, while the second dipole contributes something reasonable. On the other hand the particle phase space distribution between the dipoles looks correct for a dispersion section but the final particle distribution after the second dipole looks incorrect as it is not symmetrical. 

Note: My graph x-axes have been cut off for some reason both labels are z(m).

Any help on this issue would be greatly appreciated.
Thanks,
Ryan Roussel


Attachment: lattice.png
Description: PNG image

Attachment: lattice_corrected.png
Description: PNG image

Attachment: CSR.in
Description: Binary data

Attachment: CSR_end.dat.gz
Description: application/gzip




Archive powered by MHonArc 2.6.19.

Top of Page