atphysics#
Modules
COLLECTIVEEFFECTS |
|
LINEAROPTICS |
|
LONGITUDINALDYNAMICS |
|
NONLINEARDYNAMICS |
|
ORBIT |
|
PARAMETERSUMMARYFUNCTIONS |
|
RADIATION |
|
TOUSCHEKPIWINSKI |
|
TUNEANDCHROMATICITY |
|
NAFFLIB |
Classes
Physical constants |
Functions
Average of optical functions on selected elements |
|
computes the change in the closed orbit due to parameter perturbations |
|
returns longitudinal positions of accelerator lattice elements. |
- class PhysConstant#
- Physical constantsAutomatically generated from https://physics.nist.gov/cuu/Constants/Table/allascii.txtThe values of the constants provided at this site are recommended for international useby CODATA and are the latest available.Termed the “2022 CODATA recommended values,” they are generally recognized worldwidefor use in all fields of science and technology.The values became available on 20 May 2024 and replaced the 2018 CODATA set.They are based on all of the data available through 31 December 2022.The 2022 adjustment was carried out under the auspices of the CODATA Task Groupon Fundamental Constants.
- atavedata(ring, dpp, refpts)#
- Average of optical functions on selected elements[lindata,avebeta,avemu,avedisp,tunes,chroms]=atavedata(ring,dpp,refpts)LINDATA : Identical to ATLINOPT outputAVEBEA : Average Beta functionsAVEMU : Average phase advanceAVEDISP : Average dispersionTUNES : Vector of tunesCHROMS : Vector of chromaticites[lindata,avebeta,avemu,avedisp,tunes,chroms]=atavedata(ring,dpp,refpts,orbitin)does not search for closed orbit. instead ORBITIN is used
- findrespm(ring, obsindex, perturbindex, pvalue, 'field', m, n, orbitfunction, args)#
- computes the change in the closed orbit due to parameter perturbationsTwo calling syntax options1. findrespm(ring, obsindex, perturbindex, pvalue, ‘field’, m, n, orbitfunction, args)2. !!! not implemented yet findrespm(ring, obsindex, perturbgroup, pvalue, orbitfunction, args)RING - ring latticeOBSINDEX - indexes of elements where the orbit is observed (at the entrance)PERTURBINDEX - Integer indexes of elements whose parameters are perturbedused with syntax 1 only.PERTURBGROUP - cell array of AT paramgroups. See ATPARAMGROUPused with syntax 2 onlyPVALUE - amount of peturbation(Numeric array or scalar if all perturbations are the same magnitude)FIELD,M,N are only use with syntax 1.FIELD - field name of the parameter to perturb (string)M,N - index in the matrix, if the field is a matrixFor example to perturb the quadrupole field in amultipole elementFIELD = ‘PolynomB’, M = 1, N = 2ORBITFUNCTION - specifies which of the FINDORBIT functions is used‘findorbit4’ (default)‘findsyncorbit’‘findorbit6’ARGS - additioanl arguments may be passsed to some of the FINDORBIT functionsfindorbit4 - constant momentum error dPfindsyncorbit - fixed orbit lengthening dCTReturns a 1-by-4 cell array of O-by-P matrixeswhere O = length(OBSINDEX) and P = length(PERTURB)one for each of the close orbit components: X, PX, Y, PY
- findspos(ring, 1:length(ring))#
- returns longitudinal positions of accelerator lattice elements.Return value is a row vector of positions S at the entrance of eachelement specified REFPTS (index list or logical mask)Note: REFPTS is an array of increasing indexes thatselect elements from range 1 to length(LATTICE)+1.REFPTS is allowed to go 1 point beyond thenumber of elements. In this case the last point isthe EXIT of the last element. If LATTICE is a RINGit is also the entrance of the first element after 1 turn.Note:1. Use findspos(ring,1:length(ring)) for to findlongitudinal position of all elements2. Use findspos(line,length(line)+1) to find thetotal physical length3. If line is a closed ring, exit of the last elementis also the entrance to the first.