GKLMovie - BEGIN GKLMovie.m-Plots a movie of the evolution of electrons in their Larmor orbits as a function of axial position Efficiency evolution

Info iconThis 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. % % NOTE: requires GKLceta2.m, WaitbarRandColor.m % % Last edit by Colin Joye, 10/25/04M % %------------------- BEGIN User inputs -------------------- % %-- No prebunching (gyrotron: max eff 70%) ----- delta = 0.538; % detuning
Background image of page 1

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

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

This note was uploaded on 11/20/2010 for the course EET 1102 taught by Professor Staff during the Spring '08 term at CUNY City Tech.

Page1 / 4

GKLMovie - BEGIN GKLMovie.m-Plots a movie of the evolution of electrons in their Larmor orbits as a function of axial position Efficiency evolution

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online