rustms::chemistry::formula

Function one_over_reduced_mobility_to_ccs

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

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

Arguments:

  • one_over_k0 - 1 over reduced ion mobility (1/k0)
  • 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:

  • ccs - collision cross-section

§Examples

use rustms::chemistry::formula::one_over_reduced_mobility_to_ccs;

let ccs = one_over_reduced_mobility_to_ccs(0.5, 1000.0, 2, 28.013, 31.85, 273.15);
assert_eq!(ccs, 201.64796734428452);