7.34 ion_effects

&ion_effects  
          STRING pressure_profile = NULL;  
          double pressure_factor = 1.0;  
          STRING ion_properties = NULL;  
          STRING beam_output = NULL;  
          long beam_output_all_locations = 0;  
          STRING ion_density_output = NULL;  
          long ion_output_all_locations = 1;  
          long ion_species_output = 0;  
          long ion_output_interval = 1;  
          STRING field_calculation_method = NULL;  
          double gaussian_ion_range = 3;  
          double distribution_fit_target = 0.03;  
          double distribution_fit_tolerance = 1e-5;  
          long distribution_fit_evaluations = 300;  
          long distribution_fit_passes = 3;  
          long distribution_fit_restarts = 10;  
          long hybrid_simplex_comparison_interval = -1;  
          STRING fit_residual_type = NULL;  
          long macro_ions = 0;  
          long symmetrize = 0;  
          long generation_interval = 1;  
          long multiple_ionization_interval = 100;  
          double multiple_ionization_energy_peak = 20;  
          double multiple_ionization_energy_rms = 10;  
          double ion_span[2] = {0, 0};  
          double ion_bin_divisor[2] = {10.0, 10.0};  
          double ion_range_multiplier[2] = {2.0, 2.0};  
          double ion_sigma_limit_multiplier[2] = {0, 0};  
          long ion_histogram_max_bins = 1000;  
          long ion_histogram_min_per_bin = 5;  
          STRING ion_histogram_output = NULL;  
          double ion_histogram_output_s_start = -1;  
          double ion_histogram_output_s_end = -1;  
          long ion_histogram_output_interval = 1000;  
          long ion_histogram_min_output_bins = 200;  
          long ion_poisson_bins[2] = {0, 0};  
          long disable_until_pass = 0;  
          long freeze_ions_until_pass = 0;  
          long freeze_electrons_until_pass = 0;  
          long verbosity = 0;  
&end

The user is strongly advised to study the ion histograms by using the ion_histogram_output parameter to request this data. The histograms should not be excessively noisy. The data also includes the fits, which should be close to the data. (For “gaussian” mode, this is generally not possible.) A sample command to examine the histograms and fits for the y plane (generally the most difficult) is

sddsplot -column=Position,Charge* run.ionHist -split=page  
         -groupby=page -separate=page -graph=line,vary

The Poisson solver option makes use of the FFTW library (http://www.fftw.org/). This library must be installed for the Poisson solver to work. The Poisson equation is solved over the full ion_span.

linear_chromatic_tracking_setup