MAX IV online LINAC model
An online linac model has been developed at MAX IV in order to enable a calculation of the properties of the linac beam based on the actual settings of the magnetic elements. The model is based on the Elegant simulation code and uses the design linac lattice file. A set of Matlab scripts fetch the actual settings of all elements via the Tango control system, pass these values on to Elegant and run