TIMSSim
Simulates the trajectories of charged particles in a Trapped Ion Mobility Spectrometry (TIMS) Device, including background gas interaction, ion chemistry and space charge. A TIMS device consists of a set of electrodes forming three regions: the entrance funnel, the TIMS tunnel and the exit funnel. Ions are trapped by an electric field which counteract the drag force of a flow of gas. The magnitude of the axial electric field is progressively decreased, allowing for ions to be diluted from the device.
The electrode geometry and potentials are defined through SIMION potential arrays. An RF voltage is applied to the TIMS analyzer electrodes to provide radial ion confinement. In addition to this an axial electric field gradient is created by applying DC potentials to the electrodes. Ions start uniformly distributed in a configurable start zone. The interaction between background gas and the ions can be described with different collision models. Electric ion-ion interaction (space charge) can be modeled with a parallelized version of a Barnes-Hut tree.
The modeled ions are chemically reactive. The temperature dependent reactions of the individual chemical species are simulated with RS. The reactions are defined in an RS configuration file. To simulate chemically inert ions, an RS configuration without reactions between the species has to be defined.
Simulation configuration description
sim_time_stepsintegerNumber of simulation time steps
dt_sfloatTime step length in seconds
concentrations_write_intervalintegerInterval, in time steps, between the writes of the species concentration .
trajectory_write_intervalintegerInterval, in time steps, between writes to the trajectory result file.
trajectory_write_velocitiesbooleanif
true: Particle velocities are written to the auxiliary data in the trajectory result file.space_charge_factorfloatMultiplication factor for particle-particle interaction (space charge).
reaction_configurationfile pathPath to a RS configuration file, defining the chemical reaction system for the simulation. This file path is interpreted relatively to the simulation run configuration file.
n_particlesvector of integersNumber of particles of the
discretechemical substances defined in the reaction configuration. The order in this vector is the same as the order ofdiscretesubstances defined in the reaction configuration.Example: If the
[SUBSTANCES]block in the reaction configuration is[SUBSTANCES] Cl_1 discrete 19 1 3.57e-4 4.00000000e-10 Cl_2 discrete 37 1 2.76e-4 5.17391304e-10 Cl_3 discrete 55 1 2.35e-4 6.07659574e-10
the
n_ionsvector[100, 50, 10]will initalize the simulation with 100 particles ofCl_1, 50 ofCl_2and 10 ofCl_3.start_box_dimensions_mmVector of floatsx-, y-, and z-dimensions (in mm) of the ion start zone.
start_box_position_mmVector of floatsx-, y-, and z-coordinates (in mm) of the corner of the ion start zone.
simulation_domain_boundariesVector of vector of floatsDefines the outer boundaries of the simulation domain around the coordinate system origin, where ions are terminated. Is defined as vector of three two component vectors, defining the minimum and maximum in the spatial dimensions:
[[x low, x high], [y low, y high], [z low, z high]]
confining_RF_amplitude_VfloatPeak-to-peak amplitude (in V) of the confining voltage meant to reduce radial ion drift.
confining_RF_frequency_HzfloatFrequency (in Hz) of the confining voltage.
potential_gradient_filenamefile pathPath to a CSV file defining the potential gradient applied to the electrodes. The file is expected to be single column with one value each row.
potential_gradient: Vector of floatsPotential gradient that is the be applied to the electrodes. This gradient can be defined either through a CSV file as described above or directly through a vector in the input JSON file. The application will always check for a file path to a CSV first. If none is given, it will then check for a vector containing the gradient. If both a file path and a vector are provided, the file path will take precedence.
Potential Array Configuration
The electrode geometry and potentials of the TIMS analyzer are defined through SIMION potential arrays. Potentials are applied to the potential arrays in the order they are supplied via the potential gradient, e.g. the first value given in the potential gradient file/vector is applied to the first potential arrays, the second value to the second array and so on. At the same time opposite phases of an RF voltage are applied to adjacent electrodes throughout the entire analyzer.
potential_array_scalefloatGeometric scaling factor for the potential arrays specified in
potential_arrays.potential_arraysVector of file pathsPaths to the SIMION potential array files defining the electrode geometry of the analyzer. Typically, SIMION potential arrays generated with the fast adjust option are used for potential definition.
The potential arrays have to have the same geometric extend and are assumed to be normalized. The total potential at a location is calculated by a linear combination of the individual potentials.
The file paths are relative to the simulation run configuration file.
Collision models and background gas interaction
The simulation has different modes to model the interactions between ions and the background gas which are suitable for different background gas pressure ranges.
The collision model mode is controlled by the collision_model parameter:
collision_modelkeyword [SDS,HS,MD,none]Sets the used collision / background gas interaction model:
SDS: Statistical Diffusion Simulation modelHS: Hard Sphere modelMD: Molecular Dynamics modelnone: No background gas interaction (mostly for testing purposes)
background_pressure_PafloatIsotropic pressure of the neutral background gas in Pascal.
background_temperature_K: floatBackground gas temperature in Kelvin.
flow_mode: keyword [uniform,parabolic]Sets the background gas flow mode:
uniform: Uniform flow velocity inxdirection (default value)parabolic: Uniform flow velocity inxdirection
The parameter is optional, if it is omitted,
uniformflow profile is assumed.collision_gas_velocity_x_ms-1floatUniform background gas velocity in
xdirection in m per second.collision_gas_mass_amufloatMolecular mass of the particles of the background gas in amu.
collision_gas_diameter_nmfloatEffective collision diameter of the particles of the background gas in nm.