DMSSimplifiedSim
Simplified simulation of ion motion and chemical induced differential mobility in a Differential Ion Mobility (DMS) separation device with idealized planar electrodes: Ions are drifting in a gap between two planar electrodes on which an asymmetric RF bisinusoidal high voltage waveform, the Separation Voltage (SV), is applied. Due to different ion mobilities in the high field phase and the low field phase of the SV, ions are drifting in the direction perpendicular to the electrodes. This drift is countered by an DC Compensation Voltage (CV), which is scanned to get an differential mobility spectrum.
There are multiple physical and chemical mechanisms leading to differential mobility of ions. The varying electric acceleration in the high and low field phase of the SV induce a variation of the effective ion temperature of the clustered ions. Therefore, the average cluster size is reduced in the high field phase, since high effective temperature leads to declustering. If the clusters can reform / regrow in the low field phase, this leads to changing average sizes of the clusters between high and low field phases, which in turn leads to different mobility in the high and low field phases.
This application is intended to simulate compensation voltage due to chemically induced differential mobility of clustered small ions in a simplified way. This application is not a full trajectory simulation. Instead, the temperature and field dependent reactions of the individual species are simulated with RS. The drift of an ion in the separation dimension in a time step of length \(dt\) is approximated simply by multiplying the ion mobility \(K\) with the time step length and the field strength \(E\):
\[dz = K \cdot E(t) \cdot dt\]
The simulated compensation voltage (CV) can be found by varying the CV so that no net motion of the ions in the separation axis remains.
The chemical reaction configuration is defined in an RS configuration file. Currently, the mobility of the individual chemical species is assumed to be static and thus not dependent on the field or the effective ion temperature. The ions are initialized at random positions in a variable start zone.
Simulation configuration description
sim_time_stepsintegerNumber of simulation time steps
sim_time_steps_per_sv_oscillationintegerNumber of time steps for one complete oscillation of the separation voltage (SV). The time step length in the simulation is set accordingly.
sv_frequency_s-1floatFrequency of the SV in Hz.
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.
reaction_configurationfile pathPath to a RS configuration file, defining the chemical reaction system for the simulation.
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_width_x_mmfloatSize (in mm) of the ion start zone in
xdirection, which is the long axis of the DMS device, parallel to the planar electrodes.start_width_y_mmfloatSize (in mm) of the ion start zone in
ydirection.start_width_z_mmfloatSize (in mm) of the ion start zone in
zdirection, which is the separation axis.cv_modeKeyword: [static,auto]Compensation voltage mode:
static: A static CV, defined bycv_Vmm-1is applied.auto: Automatic mode to find an optimized CV for maximum transmission through the DMS. The CV is adapted after every SV cycle to minimize the total drift of the simulated particle ensemble in the separation (z) axis. The CV is written to a csv file<resultbasename>_cv.csvafter every SV cycle in this mode.cv_Vmm-1defines the initial CV value in this mode.
cv_relaxation_parameter:Dampening parameter for the minimization process when
cv_modeisauto.sv_mode:Separation waveform mode:
bi_sin: “Classical” DMS wave form: A superposition of two sine waves, one with the base SV frequency and one with the double frequency, resulting in in a high and low field phase.square: Ideal square waveform with 1/2 ratio between low and high field phase.clipped_sin: A clipped sine SV waveform, with half an sine wave as high field phase and a clipped phase as low field phase.
sv_Vmm-1:Separation voltage in V per mm.
cv_Vmm-1:Compensation voltage in V per mm. If
cv_modeisauto, initial CV voltage for the minimization process.background_temperature_KfloatBackground gas temperature
background_pressure_PafloatIsotropic pressure of the neutral background gas in Pascal.