!------------------------------------------------------------------------ &tao_start n_universes = 1 plot_file = 'tao.init' / !------------------------------------------------------------------------ &tao_design_lattice design_lattice(1)%file = "ring.lat" / !------------------------------------------------------------------------ !------------------------------------------------------------------------ ! Data &tao_d2_data d2_data%name = "phase" universe = '*' ! apply to all universes n_d1_data = 2 / &tao_d1_data ix_d1_data = 1 d1_data%name = "x" default_weight = 1e6 ix_min_data = 0 ix_max_data = 3 data(0)%name = "beginning" data(1)%name = "det1" data(2)%name = "det2" data(3)%name = "ip" data(0)%ele_name = "beginning" data(1)%ele_name = "det_y" data(2)%ele_name = "det_x" data(3)%ele_name = "ip" / &tao_d1_data ix_d1_data = 2 d1_data%name = "y" default_weight = 1e6 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / !--------------------------------------------------- &tao_d2_data d2_data%name = "eta" universe = '*' ! apply to all universes n_d1_data = 2 / &tao_d1_data ix_d1_data = 1 d1_data%name = "x" default_weight = 100 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / &tao_d1_data ix_d1_data = 2 d1_data%name = "y" default_weight = 200 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / !--------------------------------------------------- &tao_d2_data d2_data%name = "etap" universe = '*' ! apply to all universes n_d1_data = 2 / &tao_d1_data ix_d1_data = 1 d1_data%name = "x" default_weight = 100 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / &tao_d1_data ix_d1_data = 2 d1_data%name = "y" default_weight = 200 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / !--------------------------------------------------- &tao_d2_data d2_data%name = "beta" universe = '*' ! apply to all universes n_d1_data = 2 / &tao_d1_data ix_d1_data = 1 d1_data%name = "x" default_weight = 1 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / &tao_d1_data ix_d1_data = 2 d1_data%name = "y" default_weight = 1 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / !--------------------------------------------------- &tao_d2_data d2_data%name = "alpha" universe = '*' ! apply to all universes n_d1_data = 2 / &tao_d1_data ix_d1_data = 1 d1_data%name = "x" default_weight = 1 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / &tao_d1_data ix_d1_data = 2 d1_data%name = "y" default_weight = 1 ix_min_data = 0 ix_max_data = 3 data(0)%name = "SAME: phase.x" data(0)%ele_name = "SAME: phase.x" / !-------------------------------------------------------------- !------------------------------------------------------------------------ ! variables &tao_var v1_var%name = "quad_k1" default_attribute = "k1" default_weight = 1e5 default_step = 1e-4 ix_min_var = 0 ix_max_var = 4 var(0)%name = "Quad_x2" var(1)%name = "Quad_y2" var(2)%name = "Quad_x3" var(3)%name = "Quad_y3" var(4)%name = "Quad_a" var(0)%ele_name = "Quad_x2" var(1)%ele_name = "Quad_y2" var(2)%ele_name = "Quad_x3" var(3)%ele_name = "Quad_y3" var(4)%ele_name = "Quad_a" / !------------------------------------------------------------------------ !------------------------------------------------------------------------ ! plots &tao_params global%plot_on = .true. global%n_opti_cycles = 200 n_d2_data_max = 8 ! orbit, phase, coupling, cbar, beta, and eta. n_v1_var_max = 8 ! quadrupoles, steerings, etc... n_data_max = 300 n_var_max = 300 / &tao_plot_page plot_page%size = 400, 600 plot_page%text_height = 10.0 plot_page%border = 0, 0, 0, 0, '%PAGE' region(1)%name = 'head' region(1)%location = 0.025, 1.0, 0.90, 1.0 region(2)%name = 'top' region(2)%location = 0.0, 0.935, 0.50, 0.90 region(3)%name = 'bottom' region(3)%location = 0.0, 0.935, 0.10, 0.50 region(4)%name = 'foot' region(4)%location = 0.0, 1.0, 0.00, 0.10 place(1) = 'head', 'layout' place(2) = 'top', 'beta' place(3) = 'bottom','eta' place(4) = 'foot', 'table' / &tao_template_plot plot%name = 'layout' plot%x%min = 0 plot%x%max = 200 plot%n_graph = 1 plot%x_axis_type = 's' / &tao_template_graph graph%type = 'lat_layout' graph_index = 1 graph%name = 'u1' graph%box = 1, 1, 1, 1 graph%ix_universe = 1 graph%margin = 0.12, 0.12, 0.12, 0.12, '%BOX' graph%n_curve = 0 / &element_shapes shape(1) = 'Quadrupole' '*' 'XBox' 'Magenta' 15 T shape(2) = 'SBend' '*' 'Box' 'Green' 15 T / &tao_template_plot plot%name = 'table' plot%n_graph = 1 / &tao_template_graph graph%type = 'key_table' graph_index = 1 graph%n_curve = 0 / !---------------------------------------------------------------- &tao_template_plot plot%name = 'phase' plot%x%min = 0 plot%x%max = 200 plot%x%major_div = 5 plot%x%label = ' ' plot%x_axis_type = 's' plot%n_graph = 2 / &tao_template_graph graph%name = 'x' graph_index = 1 graph%box = 1, 2, 1, 2 graph%title = 'Horizontal Phase (deg)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'phi-x' graph%y%max = 2 graph%y%min = -2 graph%y%major_div = 5 graph%n_curve = 1 ! graph%who(1) = 'model', +1 ! graph%who(2) = 'design', -1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'phase.x' curve(1)%y_axis_scale_factor = 57.29578 / &tao_template_graph graph%name = 'y' graph_index = 2 graph%box = 1, 1, 1, 2 graph%title = 'Vertical Phase (deg)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'phi-y' graph%y%max = 2 graph%y%min = -2 graph%y%major_div = 5 graph%n_curve = 1 ! graph%who(1) = 'model', +1 ! graph%who(2) = 'design', -1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'phase.y' curve(1)%y_axis_scale_factor = 57.29578 / !---------------------------------------------------------------- &tao_template_plot plot%name = 'beta' plot%x%min = 0 plot%x%max = 200 plot%x%major_div = 5 plot%x%label = ' ' plot%x_axis_type = 's' plot%n_graph = 2 / &tao_template_graph graph%name = 'x' graph_index = 1 graph%box = 1, 2, 1, 2 graph%title = 'Horizontal Beta (m)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'beta-x' graph%y%max = 20 graph%y%min = 0 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'beta.x' curve(1)%y_axis_scale_factor = 1 / &tao_template_graph graph%name = 'y' graph_index = 2 graph%box = 1, 1, 1, 2 graph%title = 'Vertical Beta (m)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'beta-y' graph%y%max = 20 graph%y%min = 0 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'beta.y' curve(1)%y_axis_scale_factor = 1 / !---------------------------------------------------------------- &tao_template_plot plot%name = 'eta' plot%x%min = 0 plot%x%max = 200 plot%x%major_div = 5 plot%x%label = ' ' plot%x_axis_type = 's' plot%n_graph = 1 / &tao_template_graph graph%name = 'x' graph_index = 1 graph%box = 1, 1, 1, 1 graph%title = 'Horizontal Eta (m)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'eta-x' graph%y%max = 3 graph%y%min = 0 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'eta.x' curve(1)%y_axis_scale_factor = 1 / !---------------------------------------------------------------- &tao_template_plot plot%name = 'floor' plot%x%min = 0 plot%x%max = 200 plot%x%major_div = 5 plot%x%label = ' ' plot%x_axis_type = 's' plot%n_graph = 2 / &tao_template_graph graph%name = 'x' graph_index = 1 graph%box = 1, 2, 1, 2 graph%title = 'Horizontal floor coordinates (m)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'floor-x' graph%y%max = 100 graph%y%min = 0 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'floor.x' curve(1)%y_axis_scale_factor = 1 / &tao_template_graph graph%name = 'z' graph_index = 2 graph%box = 1, 1, 1, 2 graph%title = 'Vertical floor coordinates (m)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'floor-z' graph%y%max = 100 graph%y%min = 0 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'calculation' ! curve(1)%data_source = 'data_array' curve(1)%data_type = 'floor.z' curve(1)%y_axis_scale_factor = 1 / !---------------------------------------------------------------- &tao_template_plot plot%name = 'quad_k1' plot%x%min = 0 plot%x%max = 4 plot%x%major_div = 5 plot%x%label = ' ' plot%x_axis_type = 'index' plot%n_graph = 1 / &tao_template_graph graph%name = 'k1' graph_index = 1 graph%box = 1, 1, 1, 1 graph%title = 'Quadrupole K1 (1/m^2)' graph%margin = 0.15, 0.06, 0.12, 0.12, '%BOX' graph%y%label = 'k1' graph%y%max = 2 graph%y%min = -2 graph%y%major_div = 5 graph%n_curve = 1 curve(1)%data_source = 'var_array' curve(1)%data_type = 'quad_k1' curve(1)%y_axis_scale_factor = 1 /