I am using Elegant to optimize FODO lattice parameters for given drift, quad's lengths and phase advance.
However, I run into some problems where Elegant cannot find the periodic solution of my FODO lattice.
For example, this set of parameter works fine.
Code: Select all
elegant elegant.ele -macro=driftlength=4.24,quadlength=0.2,phaseadv=0.4
Code: Select all
elegant elegant.ele -macro=driftlength=4.241,quadlength=0.2,phaseadv=0.4
Code: Select all
************************** Summary of warnings ****************************
3 types of warnings were recorded:
5* twiss_output: beamline unstable for y plane.
4* twiss_output: beamline unstable for x plane.
1* optimize: Maximum number of passes reached in simplex optimization
*****************************************************************************
Thanks.