&run_setup lattice = hbsrsNov21.lte, use_beamline = RING_ILM10, p_central_mev = 6e3, default_order = 2, &end !&insert_elements ! name=ion*, ! element_def = "IE1: ionEffects" !&end &rpn_load filename = Basic.twi tag = ref &end &run_control n_steps = 1, n_passes = 100 &end &ion_effects pressure_profile = "pg1.sdds", !pressure_factor = 1.0, ion_properties = "ionProperties.sdds", field_calculation_method = "gaussian", !ion_output_interval = 1, verbosity = 3, macro_ions = 1, ! The number of macro ions to generate per bunch on each turn !generation_interval = 1, ion_span[0] = 0.005, 0.001, !The transverse half-extent, in meters, Ions moving outside this region are considered lost !ion_bin_divisor[0] = 10.0, 10.0, beam_output = %s.ebeam, ion_density_output = %s.ionDens, !ion_histogram_output=%s.ionHist, &end ! Set up for 380-bunch beam &sdds_beam !input = makeBunch.out, input=atrain.sdds, !n_duplicates = 379, !duplicate_stagger[0] = 1e-6, !duplicate_stagger[2] = 1e-6, !duplicate_stagger[4] = "(ref.s c_mks / 380 /)" !offset of the coordinates x,x',y,y′ for each duplication by the specified amounts use_bunched_mode = 1 &end &track &end