generalQuadSim
Simulates ion trajectories in an RF only quadrupole device with arbitrary electrode geometry considering space charge and interaction with a flowing background gas. The electrode geometry and resulting electric field is defined by a set of SIMION potential arrays. The pressure / density and flow velocity of the background gas can be defined by spatially resolved fields, e.g. from an CFD simulation of the simulated device.
Warning
This application has to be revised. It can fail with an exception under certain conditions.
Note
Currently, no collisions of simulated particles with electrode surfaces are considered in this application and the RF frequency of the device is currently fixed at 1 MHz.
Simulation configuration description
sim_time_stepsintegerNumber of simulation time steps
trajectory_write_intervalintegerInterval, in time steps, between writes to the trajectory result file.
dtfloatTime step length in seconds.
n_ionsvector of integersNumber of ions with the masses defined in
ion_massesion_massesvector of floatVector of ion masses in amu.
V_rffloatRF amplitude in V.
V_entrancefloatDC amplitude for the entrance electrode into the quadrupole in V.
P_factorfloatScaling factor for the pressure field.
space_charge_factorfloatMultiplication factor for particle-particle interaction (space charge)
collision_gas_mass_amufloatMolecular mass of the particles of the background gas in amu.
collision_gas_diameter_angstromfloatEffective collision diameter of the particles of the background gas in angström.
background_temperature:Isotropic temperature of the background gas in K.
start_q_length_mmfloatLength of the ion start zone in axial direction in mm.
entrance_aperture_mmfloatWith of the quadratic cross section of the ion start zone in mm.
q_start_mmfloatBegin of the ion start zone in axial (
x) direction in mm.restart_q_length_mmfloatLength of the ion start zone for restarted ions in axial (
x) direction in mm.max_q_length_mmfloatEnd position in axial (
x) direction, where ions are terminated in mm.max_r_mmfloatMaximal distance in radial direction from the center line of the quad where ions are terminated.
Paths to gas parameter fields and potential arrays
Note
All file paths are relative to the simulation configuration file.
rho_field_fileFile pathPath to background gas density (rho) field.
flow_field_fileFile pathPath to background gas flow velocity field.
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 potentials:
electric_field_rf_fileFile pathPath to potential array for RF electrodes with normalized bipolar field for RF electrodes.
electric_field_entrance_fileFile pathPath to the normalized potential array for the entrance electrode.