rustms::chemistry::formula

Function ccs_to_one_over_reduced_mobility

Source
pub fn ccs_to_one_over_reduced_mobility(
    ccs: f64,
    mz: f64,
    charge: u32,
    mass_gas: f64,
    temp: f64,
    t_diff: f64,
) -> f64
Expand description

convert CCS to 1 over reduced ion mobility (1/k0)

Arguments:

  • ccs - collision cross-section
  • charge - charge state of the ion
  • mz - mass-over-charge of the ion
  • mass_gas - mass of drift gas (N2)
  • temp - temperature of the drift gas in C°
  • t_diff - factor to translate from C° to K

Returns:

  • one_over_k0 - 1 over reduced ion mobility (1/k0)

§Examples

use rustms::chemistry::formula::ccs_to_one_over_reduced_mobility;

let k0 = ccs_to_one_over_reduced_mobility(806.5918693771381, 1000.0, 2, 28.013, 31.85, 273.15);
assert_eq!(k0, 2.0);