Download Library User Guide

Transcript
five
Taylor Polymorphism and Knobs
PTC supports the full usage of Taylor maps derived from the integrator for the
computation of lattice functions. PTC uses FPP, a package of polymorphic types
and tools to extract and analyze the Taylor maps. Information explaining FPP1 is at
http://mad.web.cern.ch/mad/PTC_proper/
5.1
Polymorphs
A polymorph is the Fortran90 type real_8:
type real_8
type (taylor) :: T
real(dp) :: r
integer :: kind
integer :: i
real(dp) :: s
logical(lp) :: alloc
end type real_8
!
!
!
!
!
!
active if Taylor
active if real or knob
1=real,2=Taylor,3=Taylor knob,0=special
used for knobs
scaling for knobs
is Taylor is allocated in DA-package?
Polymorphs allow the computation of parameter-dependent maps.
States of a Polymorph
A polymorph Y can be real (Y%kind = 1), Taylor (Y%kind = 2), or a special Taylor
called a knob (Y%kind = 3).
Computing a Taylor Map
Suppose we have a closed orbit at position 1 given by six real numbers fix(1:6).
We can construct the following array of six polymorphs:
type(real_8) :: Y(6)
type(damap) :: id
call init(state, NO, 0)
call alloc(Y)
1
The CERN folder is called
PTC_proper to distinguish
it from the information on
Mad-X. Most of the information in the PTC_proper
folder is about FPP.