{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

GKLMovie - BEGIN GKLMovie.m-Plots a movie of the evolution...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% -------- BEGIN GKLMovie.m --------------- % Plots a movie of the evolution of electrons in their Larmor orbits % as a function of axial position. Efficiency evolution is also % plotted. Since the nonlinear electron evolution equation, % % dP/d{\zeta} = i({\Delta} - 1 + |P|^2)P + i F exp{-2({\zeta}/{\mu})^2 } % % is solved, a Gaussian electric field profle is assumed, so the equations % are true for a gyrotron or the output cavity of a gyroklystron. % The plot shows the electric field with its temporal dependance removed, % hence the motion of the electrons shows the relative phase between the % electrons in the E-field - effectively, the coordinate system is rotating % at omega*t. Hence electrons that appear to move in reverse (-theta % direction) after the interaction are actually falling behind in phase % according to n*phi = theta + omega*t, where n is the harmonic index, phi % is the fast time scale phase of the electron, omega is the frequency of % the applied RF field, and t is time. % This script opens three figures (1,2,3) and overlays figs 2 and 3 into % fig 1. The time it takes to convert to a movie format and also the final % file size depends on the size of figure 1. Generally, the resulting % movie is about 25 seconds long and 4 MB. MATLAB cannot write to the % specified file if it is already open in a movie viewer.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern