Home > atphysics > LongitudinalDynamics > atRFacc.m

atRFacc

PURPOSE ^

delta_max_rf = atRFacc(ring)

SYNOPSIS ^

function delta_max_rf = atRFacc(ring)

DESCRIPTION ^

   delta_max_rf = atRFacc(ring)
   The functions computes the RF acceptance of the ring
   ring is tha at lattice without radiation
   delta_max_rf is the RF acceptance
   
   see also: RFacc

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function delta_max_rf = atRFacc(ring)
0002 %   delta_max_rf = atRFacc(ring)
0003 %   The functions computes the RF acceptance of the ring
0004 %   ring is tha at lattice without radiation
0005 %   delta_max_rf is the RF acceptance
0006 %
0007 %   see also: RFacc
0008 
0009 U0=atgetU0(ring);
0010 E0=atenergy(ring);
0011 alpha=mcf(ring,0);
0012 maskcav=atgetcells(ring,'Class','RFCavity');
0013 Voltage=atgetfieldvalues(ring,maskcav,'Voltage');
0014 hnum=atgetfieldvalues(ring,maskcav,'HarmNumber');
0015 h=hnum(1);
0016 Vrf=sum(Voltage);
0017 delta_max_rf=RFacc(Vrf,U0,E0,h,alpha);
0018 
0019

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005