Home > lattice > element_creation > atdampMatElem.m

atdampMatElem

PURPOSE ^

atdampMatElem creates an element that applies the global damping matrix

SYNOPSIS ^

function elem=atdampMatElem(fname,ring,varargin)

DESCRIPTION ^

   atdampMatElem creates an element that applies the global damping matrix
ELEM=ATDAMPMATELEM(FAMNAME,RING,CAVIPASS,BENDPASS,QUADPASS)

FAMNAME:   family name
RING:        initial AT structure, without radiation passmethods
CAVIPASS:    pass method for cavities (default ThinCavityPass)
BENDPASS:    pass method for bending magnets. Special values:
           '' makes no change,
           'auto' wille substitute 'Pass' with 'RadPass' in any method
           (default: 'auto')
QUADPASS:    pass method for quadrupoles
           '' makes no change,
           'auto' wille substitute 'Pass' with 'RadPass' in any method
           (default: '')

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function elem=atdampMatElem(fname,ring,varargin)
0002 %   atdampMatElem creates an element that applies the global damping matrix
0003 %ELEM=ATDAMPMATELEM(FAMNAME,RING,CAVIPASS,BENDPASS,QUADPASS)
0004 %
0005 %FAMNAME:   family name
0006 %RING:        initial AT structure, without radiation passmethods
0007 %CAVIPASS:    pass method for cavities (default ThinCavityPass)
0008 %BENDPASS:    pass method for bending magnets. Special values:
0009 %           '' makes no change,
0010 %           'auto' wille substitute 'Pass' with 'RadPass' in any method
0011 %           (default: 'auto')
0012 %QUADPASS:    pass method for quadrupoles
0013 %           '' makes no change,
0014 %           'auto' wille substitute 'Pass' with 'RadPass' in any method
0015 %           (default: '')
0016 %
0017 
0018 
0019 ringrad=atradon(ring,varargin{:});
0020 
0021 m66_norad=findm66(ring);
0022 m66_rad=findm66(ringrad);
0023 
0024 elem=atM66(fname,m66_norad\m66_rad);
0025 end

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