Skip to content

PTC_TWISS A_ Initialization

piotrskowronski edited this page Aug 7, 2018 · 15 revisions

Initialization is done in subroutine initmap

There are 2 use cases

  1. Transfer lines with provided initial parameters
  • Initialisation with Twiss parameters (beta, alpha and dispersion)
  • A_ linear coefficients are read from a table, enabled with option initial_ascript_manual=true
  • option initial_matrix_manual=true
  • option initial_matrix_table=true
  • option initial_moments_manual=true
  • option initial_map_manual=true
  1. Closed solution of rings

Transfer lines with provided initial parameters

  1. Initialisation with Twiss parameters (beta and alpha) It is activated when betx and bety passed to ptc_twiss are bigger than zero and all options initial_* are false.

    It is implemented in subroutine readinitialtwiss.

    • It reads the arguments passed to ptc_twiss ** Orbit ** For transverse planes beta, alpha, dispersion ** For longitudinal beta and alpha

    • Beta and alpha is scaled with the reference momentum

       do i=1,c_%nd
         be(i)= beta(i)/(1_dp+orbit(5))
         al(i)=alpha(i)/(1_dp+orbit(5))
         !print*, 'be ', be(i), ' beta', beta(i)
      enddo

Closed solution of rings

Clone this wiki locally