Homeworks for CHEM-5181
Mass Spectrometry, Analytical Separations, and Computer Programming
Shortcut to this page is https://tinyurl.com/hw-5181-comm
New homeworks will be added at the top when they are assigned.
For anything not specified, make the simplest assumption that makes sense.
Items that are updated after the last HW is assigned will be highlighted in blue.
Reading Checklist
HW Checklist (General)
HW Checklist (Programming)
HW11: looking at final slides and past exams
Assigned: Tue 6-Dec-2022, due Thu 8-Dec-2022
R11.1. Look through the slides that we covered today (in the Slides folder). On the aerosol MS and CIMS lectures I jumped through a lot of stuff. Only the stuff we touched on is required, the rest is not required for the class.
R11.2. Look through the past exams.
As usual, please enter anything that’s not clear for each question on your respective HW files.
HW10: reading on detectors and atmos. chem. instruments
Assigned: Tue 29-Nov-2022, due Thu 1-Dec-2022
R10.1. Look through the slides we covered in the lecture (in the Slides folder)
R10.2. Look through the rest of the slides of this lecture, that we haven’t covered yet. We’ll have to go quickly, so this will help you familiarize yourself with some of the material.
Optional Reading (will become mandatory for upcoming lectures)
R10.3. Read Bertram et al. (2011) on the Aerodyne ToF-CIMS
R10.4. Skim Krechmer et al. (2018) on the Tofwerk / Aerodyne VOCUS PTRMS (of special interest if you might join the de Gouw group). (Jordan Krechmer is a PhD graduate of my group, and he wrote this paper while working for Aerodyne and in collaboration with Prof. Joost de Gouw).
R10.5. Read ONE OF Thomson et al., AS&T 2000 on the PALMS aircraft instrument (David Thomson works part-time with Rainer’s and my group’s now) OR DeCarlo et al., Anal. Chem. 2006 thad describes the high-resolution ToF-AMS (that paper was written by a student in my group as part of his PhD). Skim the other.
HW9: Detectors, DAQ, vacuum reading
Assigned: Tue 15-Nov-2022, due Thu 17-Nov-2022
Reading
R.9.1. Look through the slides that we covered for quad (end of that lecture with the experiments), IT, and FTICR (all in the Slides folder)
R9.2. Complete the reading in R8.2.1 and R8.2.2. Rest is optional for now.
R9.3. Optional for now.
HW8: Ultrahigh-resolution MS reading & Quad simulation
Assigned: Tue 8-Nov-2022 due Tue 15-Nov-2022
Reading
R8.1. Orbitrap and FTICR are now mandatory
R8.2. Reading for detectors and data acquisition and vacuum (optional for now, will be mandatory later)
R8.3. (Assigned 10-Nov-22; due 15-Nov-22)
HW
H8.1. Simple quad simulation. In this HW you will use the quadrupole simulation that I showed in class to better understand how quadrupole works, to investigate different properties of the quadrupole, as well as more generally to understand the power and limitations of simulations as a method for research. The simulation is based on the Steel and Henchman paper that you have read.
a) Download the quad simulation from the class software folder. [You may need to use Windows Menu in Igor → Control → Retrieve All Windows]. Explain what the code is doing, relating it to basic concepts in physics such as forces, energies, equations of motion, methods of solving those equations etc. Note that the code could have some idiosyncrasies, e.g. some functions that are no longer used, or some details that are hard-coded etc. Focus on the functions that I used on the examples, as shown on the Notepad within the experiment.
b) Jose said in class that the trajectory of an ion should only depend on a and q, not on all the parameters. Verify that this is the case using the simulations, by changing m, U, and V by at least a factor of 10 in each direction while keeping a and q constant. Show your plots of the trajectories of the ions of different m/z on top of each other. Comment on whether your results are consistent with what we discussed in class, and if not, why not.
c) Calculate the resolution of the quadrupole for m/z 200 using the computer code for the following settings. If you can, also solve the problem analytically or graphically to verify your answer.
Person | U | V0 |
Madison | 10 | 700 |
Guy | 40 | 625 |
Nicole | 70 | 550 |
Kyle | 120 | 425 |
d) Find the function that makes the stability diagram, and make a copy of the diagram that’s displayed already in the experiment. Produce a stability diagram for m/z 200 with the code provided, but changing one key property. You need to compare the stability diagrams by plotting them on top of each other on the same graph and explain any differences, e.g. using the individual simulations of trajectories. Use few points to do the stability diagrams so that you get the general shape but it doesn’t take a really long run time. [Ignore the empty rows, or do one of them for bonus points]
Person | U |
Guy | Run with the default initial z speed, and then run with 5 times higher speed and 5 times lower speed. |
Nicole | Run with the default angular frequency, and then with 3 times the default and ⅓ of the default |
Madison | Run with the default quadrupole diameter, and then with 3 times the default and ⅓ of the default |
Run with the default quad length, and with 1/10 and 3 times the default | |
Kyle | Run the default initial X position, and with ⅓ and 3 times this value |
Run with the default initial Y position, and with ⅓ and 3 times this value |
e) What may cause the “dent” on the default stability diagram in the code, compared to the ones in the textbook and slides?
HW7: Quad reading
Assigned: Thu 3-Nov-2022 due Tue 8-Nov-2022
Reading
R7.1. Go through the slides (on canvas)
R7.2. Re-read 5.5
R7.3. Read 5.6 if you have time (optional)
R7.4. Watch the videos in 5.7
R7.5. R5.8 & 5.9: 3d and linear ion trap material is mandatory. Orbitrap and FTICR optional
R7.6. R6.1 on clean code is now mandatory
HW
H7.1. Answer the questions on slides 24 & 25 of the handout
H7.2. Plus finish the TOF simulations
HW6: Quad reading
Assigned: Tue 1-Nov-2022, due Thu 3-Nov-2022
Reading
R5.5. is now mandatory
R5.6 & 5.7 are highly recommended if you have time. Note that 5.7 is just watching some videos.
R5.8-5.9 are optional, but will be mandatory soon
R6.1. [Optional, will be mandatory later]. Read Dan Larremore’s presentation on “clean code”. You will see that he emphasizes the same things I do about writing clean code for the reader etc. But he does it in a different way, so hopefully it’ll be useful to read this one too.
HW
Continue to work on the TOF HW5, with presentation due on Tue 8-Nov-2022
HW5: TOF Resolution Simulation and Optimization (Reflectron and Delayed Extraction)
Assigned: Thu 29-Sep-2022; due in parts, per dates below (by 5 pm each of the days marked)
Reading (due 29-Sep)
R5.1. Go through the slides (posted in Canvas)
R5.2. Read pages 155-170 on TOFMS of the Gross textbook. (If interested, read until the end of the TOF section, which includes the folded path instruments that we discussed in class - not mandatory, but is interesting).
R5.3. (Optional, bonus points, for people who want to know more about TOFMS and the instruments that are now standard in atmospheric chemistry) “Skim” the Guilhaus (1995) review on TOFMS. That means to spend < 10 min looking through the abstract, figures, to get a sense of what he is doing. Briefly summarize what you understood and not. Many many times all we have time for is skimming papers, so it is a skill that you need to cultivate. I estimate that I may skim 25 papers a month like this (and more, > 100 with a 1-min version of skimming) and read ~5-10 end-to-end. Although it varies a lot up and down, depending on the projects that I am working on.
R5.4. Please read this very short article on The Importance of Stupidity in Scientific Research. Since most of you are doing or starting research, this is a good paper to reflect on for having the right attitude towards research.
From this point below all the reading is OPTIONAL, but will be mandatory later. Just to give you a chance to read it ahead of time, if you are so inclined.
R5.5. Quadrupole simulation paper (Steel and Henchman, 1998, in the reading folder))
R5.6. Section 4.4 of Gross book, on quadrupole analyzers. This is similar material as the article, but covers some different useful topics.
R5.7. Watch the videos for the triple quads from Thermo and Agilent. Watch again the Agilent Q-TOF video. Comment on which ones were most useful, what important new things you learned (if any), and what is unclear. (Include the specific video and time in the video, if relevant, so that we can follow up if need be).
R5.8. Read Sections 4.5-4.8 of the Gross book on linear ion traps, 3D ion traps, FT-ICR and Orbitrap. Focus on the basic description of how each instrument sets up a geometry and fields (electric and/or magnetic) and what the ion motion and instrument operation looks like. Look at all the figures and try to understand what they are showing.
R5.9. Watch this Ion trap video, this Orbitrap video and this FT-ICR video
Homework
H5. TOF Resolution Simulation and Optimization.
In this problem you will keep building on the same code. A key error to avoid is to overwrite your old working code, that you may need later. Then you may have had old code that worked, but you overwrote it, and now it doesn’t work any more, and you don’t know why. This is a key reason to use code repositories like Github (another being ease of sharing code). So re-read HW instruction #20 and make sure to apply it in this HW.
Trick for calculating the resolution. After calculating the TOFs of some ions, use the formula of R = TOF / 2* D_TOF, and D_TOF = FWHM ~2.355 * std_dev. And calculate std_dev using the internal Igor function.
H5.1. [Due Mon 10-Oct] Making sure H4.3. is correct. We are going to be building on your solution of H4.3. Several of you didn’t complete it, or your solution may not be correct. So your first task is to revisit that simulation and complete the code. Besides providing your answer on your file, also post your results of the TOF (for 4.3.1) and the histogram plot and resolution (for 4.3.3) on Canvas. Since there is only one correct solution, this allows us to see if we are converging or not. If you think your code is working, you can post the results on Canvas immediately.
H5.2. [Due Mon 10-Oct] Discretization error. Numerical methods are very powerful and can solve many many problems that cannot be solved with algebraic methods. But… they have an inherent error, because we are approximating differentials with finite differences. Is the error small, or is it so large that your solution is worthless? It depends, but this is something you DO have to worry about and investigate when using these methods for research.
Here we will use your solution to H5.1. Adapt your routine so that it can take as a parameter the time step of the Euler solution. Then run the case with zero initial velocity once, and plot the error (difference with exact solution with the algebraic methods that we did in HW3 -- make sure your solution is correct, or fix it) vs. the time step, as you decrease the time step by factors of 101/3. How does the error decrease with the time step? Linearly? Quadratically? Exponentially? Less than linearly?
This will give you a sense of the time step that you need to use for the latter parts of the problem. But as I’ve said many times, start the next parts with a coarse time step, and refine it when you are pretty sure that everything is working.
H5.3. [Due 19-Oct-22] Calculate and plot the resolution of the TOFMS vs. m/z, for m/z 1 to 10000. (Hint: use logarithmic steps in m/z space, and start with a few m/z first, adding more when you are sure the code is working). Note that the time step that’s enough for a small error at m/z 1 may not be the same as for m/z 10000. So you may want to use the technique of H5.2. for a few m/z datapoints, to make sure the resolution doesn’t change much, if you increase the time step)
H5.4. [From here on, due 31-Oct-22] Simulation of delayed extraction (Guy and Nicole, working together and turning in a joint HW for this part). The geometry will be the same as in H4.3. The only new variable is that the voltage in the source will only be active after a certain delay td. Modify your code so that it can accept a delay time, and plot the resolution vs. td for m/z 10, 100, 1000, and 10000. Does the resolution actually increase with this technique, and if so by how much? Is the optimum the same for all m/z?
H5.5. Simulation of the reflectron (Madison and Kyle, working together and turning in a joint HW for this part). The geometry will be the same as in H4.3, but instead of the detector, at the right end of the TOF your ions will enter a reflectron where the voltage will increase linearly with space, with a depth of 25 cm. The key variable is the slope of increase of the voltage Vr/Dr where Vr is the voltage at the end of the reflectron, and Dr is the depth of the reflectron. Modify your code so that it can accept Vr (and input Dr as a constant into your code). Calculate and plot the resolution vs. Vr for m/z 10, 100, 1000, and 10000. Does the resolution actually increase with this technique, and if so by how much? Is the optimum the same for all m/z?
H5.6. For both teams, create an animation of your technique (DE or reflectron), that illustrates the reason why the technique works to improve resolution or not. This will be a “movie” of the motion of the ions, ideally comparing (top and bottom of a graph) a case with and without the resolution-enhancing technique.
Both teams will present their solutions and animations BRIEFLY (~10 min) at the start of class on 1-Nov-2022. Please prepare and time your presentations.
Igor trick: to do the animation for the ion, just create two 1-point waves that contain the X and Y position of the ion at a given point in time. Then step thru the calculated positions at regular intervals (e.g. with a For loop) and execute the following commands:
DoUpdate
Sleep /T 4
(You can change the “4” to other numbers >= 1, to change the speed of the animation)
HW4: Finish Review of Prerequisites, Start TOFMS Simulation
Assigned: Tue 27-Sep-2022; due Thu 29-Sep-22 (by 7 am in shared file, per instructions above)
Reading
R4.1. Go through the slides (posted in Canvas)
R4.2. Read the Bendix TOFMS historical poster (M. Grayson)
R4.3. If needed (otherwise you can skip, let me know that you did): Read (Watch) about Euler’s Method in Wikipedia and YouTube. Optional additional video on Khan Academy (explains why and not just how) and optional additional reading of p54-59 of Dalhquist’s book (if you learn better from books).
R4.4. (Optional, or partial, if you have time. Will be mandatory in the next HW). Read pages 155-170 on TOFMS of the Gross textbook. (If interested, read until the end of the TOF section, which includes the folded path instruments that we discussed in class - that part will not be mandatory later, but is interesting).
Homework
H4.1. Calculate and plot (in Igor) the maximum tolerable pressure on a mass spectrometer vs the distance that the ions have to travel in the spectrometer. Use tags to mark three important types of mass spectrometers:
H4.2. Do at least one of the problems about resolution and accuracy on pages 83-87 of the Prob_Stats_Resol pdf. Look through the others and think about how you would solve them. If unclear, please ask in office hours or during the next lecture.
HW4.3. Re-doing the TOFMS simulation with Euler’s method.
4.3.1. In order to understand at a fundamental level what limits the resolution of a TOFMS, and how one can improve it, we can use a numerical solution of the problem. In this HW, we will start creating a simulation that we will build on for future HWs. Since we will build on it, it is very important that you get your simulation to work correctly.
The goal is to write a function named CalcTOFMotion_Euler(), that takes as parameters the m/z of the ion and the voltage of the source, and uses the Euler method and returns the value of the TOF of the ion (so the last statement in the function will be “Return TOF_s”, if TOF_s is the variable where you keep the value of the ion time-of-flight when it reaches the detector). The dimensions of the TOFMS should be constants at the start of your program. No calculations should use the analytical solution for position or speed vs. time.
Remember that for the Euler method, you need to turn the coupled system of differential equations (a = dv/dt and v = dx/dt) into a coupled system of finite difference equations, by replacing the differentials with finite differences. It will be natural to work with time as your key independent variable, and to march forward in time in your solution. You already know everything for iTime = 0, so you can calculate the values for iTime = 1. Once you do, you can calculate the values for iTime = 2, then iTime = 3. And so on until you solve the problem.
As discussed previously, note that it is best to start with very few points, e.g. 5, and then when the program is working, you can add more points. If you start the program with a lot of points, debugging can become a lot more cumbersome.
CONSTANT eCHARGE_C = 1.60218e-19 // Coulombs
CONSTANT AMUTOKG = 1.66054e-27 // kg in 1 amu
CONSTANT Source_m = 0.1 // Size of extraction region
CONSTANT Drift_m = 1 // Size of the drift region
CONSTANT PotEn_eV = 1000 // Potential energy in eV
Function CalcTOFMotion_Euler(Mass_amu, MakePlot)
Variable Mass_amu, MakePlot
Make/O/N=(NPoints) wTime_s, wPos_m, wVel_ms, wAccel_ms2
For (iTime = 0; iTime < NPoints; iTime +=1)
// Do stuff to calculate the values of the waves
EndFor
If (MakePlot = 1)
// Make the plots
EndIf
End
4.3.2. Use the formula from the Wollnik paper (discussed in class today, you can find it in the cheat sheet) to estimate a-la-spherical-cow the TOF of this problem. Is it of the order of the one produced by your problem?
4.3.3. Redo 3.4.3, i.e. calculating the resolution, with the routine that you developed in 4.3.1. (Hint: you can use the Wollnik formulate to see if the differences in TOF that you get make sense)
HW3: Finish Review of Prerequisites, Start TOFMS Simulation
Assigned: Thu 22-Sep-2022; due Tue 27-Sep-22 (by 7 am in shared file, per instructions above)
Announcement
A3.1: I have changed the permissions so that now you can enter GDoc comments directly into this file. The link to the HWs to use will now be https://tinyurl.com/hw-5181-comm. If something is not clear etc. in a specific part of the HW text, please enter a comment and tag me (add “+jose.jimenez@colorado.edu” within the text of the comment. That way I get an email directly and can reply. This will be more agile than asking in Canvas etc. If I make important changes as a result, I’ll post an announcement to Canvas or tag you all in the response.
Reading
R3.1. Go through the slides from the last lecture (posted to Canvas), and answer the usual reading questions.
R3.2. Review the MS Cheat Sheet. You can provide comments now or later in the GDoc (tag me). You can suggest additions or changes at any time, for bonus points (some per suggestion, more if adopted). Note that this is the only information you can bring to exams.
R3.3. Review of Basic Probability and Statistics prerequisite. You can look through these items if needed. Feel free to skip if they are fresh on your mind, and just answer the questions in the HW.
R3.4. Sections 3.4 & 3.5 Resolution and accuracy on Gross textbook. (Save the PDF, as we will read other sections of the textbook later on).
Homework
H3.1. Redo of H2.1. You can paste your answers from the prior HW, or change them in any way you want. I will only grade this version.
H3.2. Answer the questions in blue (clicker or short answers) on slides 73-79 for the handout on MS resolution and accuracy (posted on Canvas). These concern the review of probability and statistics. We will review the rest of the material in those slides in class.
H3.3. Create an account in Github (unless you have one already). Upload the code for your solution to H2.2., and share it with your classmates and me. [This is how code is shared in the real-world, and knowing how to use Github is a very useful skill]
H3.4. Starting the TOFMS Simulation.
3.4.1. Write a function that returns the arrival time at the detector of an ion of a given m/z for the TOFMS above. What is the TOF of an ion of m/z 100 if S = 5 cm, D = 1 m, V = 1000 V?
3.4.2. Check that the trends produced by your function make physical sense. Calculate and plot TOF for different m/z (all other parameters constant). Then calculate and plot TOF vs S (all other parameters constants). Finally do the same with D. Give a simple physical explanation for the trends (if it is not clear to you, explain why). For this part you can write routines that call your function in 4.4.1, or you can also just run that routine for a few values of each parameter, enter the results manually in a Table, and make a plot.
3.4.3. Simulating resolution. Assume that your ions are formed with an initial speed in the x direction (vx), normally distributed with mean of 100 and std of 100. Calculate the arrival times for 100 ions drawn from that distribution (look up the gnoise function to generate their speeds). Plot the histogram of arrival times, and estimate the resolution of the spectrometer under these conditions.
HW2: Practice of Programming while Understanding Linear Regression (aka killing 2 birds with 1 stone)
Assigned Tue 20-Sep-2022; Due: Thu 22-Sep-2022 (by 7 am in shared file, per instructions above)
Reading
R2.1. Go through the slides from the last lecture (posted to Canvas), and comment about anything that’s still unclear etc.
R2.2. Review of basic physics prerequisites. Electric and magnetic fields and forces, and the motion that they cause. Mass spectrometers exploit differences in motion of ions when exposed to controlled electric and magnetic fields in a controlled geometry (really spatio-temporal setup) to create differences in the motions of ions of different masses. The differences in the motion are then measured in some way, to quantify the amount of ions present with different masses. In order to understand how mass spectrometers work, you need to remember those fields & forces, and how forces relate to motion. The reading items below review these basics. If this is all fresh in your mind, you can skip it all and just do the quiz. If not sure, start looking through these resources and focus on the most unfamiliar. Again, we will be users of this physics, so we want to have a good intuitive sense of what’s going on, but no need to memorize too many details. You can also Google around and see if there are resources that seem clearer to you, if so report them in your responses. [These resources have been fine-tuned by feedback from past students, but different people often have different preferences, backgrounds, etc.]
Homework
H2.1. Reading quiz. Answer all the “clicker questions” (those with answers a to e) in the handout, including the ones about fields and forces. Answer in a bulleted list in the following format, referencing the slide number on the bottom right:
H2.2 Solve the regression problem that we discussed in class. Using a brute force method, i.e. calculating the residual for many values of the input parameter (slope) and plotting the results, find the best input parameter that fits the data on the slide. Do this for:
HW1: Review of Prerequisites & Intro to Programming
Assigned Thu 15-Sep-2022; Due: Tue 20-Sep-2022 (by 7 am in shared file, per instructions above)
Reading
R1.1. Go through the slides from the last lecture (posted to Canvas), and comment about anything that’s still unclear etc.
R1.2. Read the Reading and Homework Instructions above. Then read them again. Let me know if something is not clear. Make sure to look at them if in doubt and make sure to follow them in your responses. I may take off a point each time you fail to follow them, just to serve as a reminder. If you have comments, suggestions, or something is not clear, enter them in the Google Doc directly in the appropriate location.
R1.3. Watch again the Agilent Q-TOF video that we watched together in class. First without sound, then with sound.
R1.4. Read the Igor Programming Conventions. Some of it may be over your head right now (skip those items), but come back to these over the semester as you learn more programming. Again, I may take off a point each time you fail to follow them, just to serve as a reminder. As before, if something is not clear, if you have suggestions etc., enter them as comments in the Google Doc.
R1.5. Review basic PChem prerequisite: reading on kinetic theory in the reading folder & reading on Maxwell-Boltzmann distribution
HW
H1.1. If you have not used Igor before, or only a little, go through the “Getting Started” manual and cover as much of it as you have time for. Report where you stopped, and what was difficult / unclear / confusing etc.
H1.2. Solve the problem on slide numbered 17 (on the bottom right corner -- which is NOT page 17 of the PDF).
H1.3. Solve the problem on slide numbered 18
H1.4. BONUS. If you have time, Solve the problem on slide numbered 19.
H1.5. BONUS. If you have time, Solve the problem on slide numbered 21.
Homework 24
Reading
R.24.1: review the slides for aerosol MS (updated in Google Drive) and Chromatography that we covered, and the recording, if needed
HW
H24.1. Complete the FCQs, if you haven’t already (response rate counts for everyone’s grade)
H24.2. Complete the feedback questionnaire for this course (anonymous, response rate counts for everyone’s grade)
H24.3. Review the old exams in the Drive folder (I’ll add some new ones)
Homework 23
Assigned Thu 2-Dec-2021; due Tue 7-Dec-2021 (by email to chem5181@gmail.com by 9 am)
Reading
R23.1. Do 22.5, if you had not done it already
R22.2. FYI the spreadsheet where I did the calculations today during class is here, and the recording is here
HW
H23.1. Do 22.2 and 22.3. If you have already done them, you can revise them if you wish.
Homework 22
Assigned Tue 30-Nov-2021; due Thu 2-Dec-2021 unless indicated otherwise; (by email to chem5181@gmail.com by 9 am)
Reading
R22.1. Review the slides we covered today (CIMS pdf is updated, plus start of Aerosol MS pdf), and the recording, if needed. The recording of the lecture before Thanksgiving is here. Besides answering the 4 usual questions, if there is something that’s still unclear, post at least one question to Piazza, and participate in the discussion of questions from others (you folks have been extraordinarily quiet on that front).
R22.5. Optional (will be mandatory later): read Pagonis et al. (2017) on “poor man’s tubing chromatograph” (Demetrios Pagonis was a student in Paul’s group and a postdoc in Joost de Gouw’s and my group, now he is a professor in Utah). Download the Igor model from https://tinyurl.com/PartitioningDelays, and get it to run in Igor. Change a parameter or two and see how the solution changes. Besides its usefulness to understand sampling issues in atmospheric chemistry and gas sampling, we will use this model to understand how chromatography works.
Homework
H22.1. Revisit the clicker question from before Thanksgiving (reproduced below). Add any relevant calculations to answer the question. You will want to think about molecular density, mean free path, and collision rate vs. pressure, as well as the kinetics of 2nd order reactions, and how the latter is affected by the concentrations of the reactants.
H22.2. Estimating the Detection Limit of the Aerosol Mass Spectrometer (this has been a past final exam question a couple of times). Turn it in on Thu if you can, if not, turn it in on Tue 7-Dec
The aerosol mass spectrometer samples 100 cm3/minute of ambient air into an aerodynamic lens at 2 mbar, which transfers the particles into a high vacuum analysis region. There molecules in ambient particles are vaporized in a hot tungsten surface at 600oC and ionized with an efficiency of 2.5 x 10-7 (1 ion produced out of each 4 million molecules present). Those ions are then analyzed with an efficiency of 25% by the TOFMS. The detection limit is defined as the ambient concentration of a species that produces a signal of 10 ions in 1 minute. Estimate that detection limit (with units of ng species / m3 of ambient air) for a species with a molecular weight of 100 amu.
H22.3. Estimating the detection limit of a PTRMS. Turn it in on Thu if you can, if not, turn it in on Tue 7-Dec
A proton-transfer reaction mass spectrometer (PTR-MS, in the figure) is the most sensitive instrument available for the detection of reduced organic molecules in air, producing ions by chemical ionization (“proton transfer” -- really “proton addition” since sometimes we use proton abstraction which is proton transfer too, but has very different properties).
The reaction is H3O+ + A → H2O + AH+. You have to estimate the detection limit of this instrument in terms of the mixing ratio of the analyte in air (molar fraction, in parts per trillion i.e. parts in 1012). You only need to get the order-of-magnitude right, i.e. within a factor of 3 or so. You may need to make some assumptions. If you don’t know how to make a reasonable assumption, still make your best guess and clearly mark it as a guess. If you get stuck calculating something, assume a value for the result of that part and move on.
Figure: quadrupole PTRMS diagram (courtesy of Prof. Joost de Gouw)
Some parameters for the instrument and its operation include the following:
(1) Graphically sketch the logic chain for calculating the number of analyte ions detected by the instrument, starting with the reagent ion flux and the ambient analyte concentration.
(2) Derive an algebraic expression for the detection limit, clearly defining all quantities and their units.
(3) Derive a numerical value for the detection limit.
You can do these calculations in Igor if that’s useful, though for something like this Excel may be less confusing to help you keep your logic organized.
Homework 20
Assigned Thu 11-Nov-2021; reading due Tue 16-Nov-2021; (by email to chem5181@gmail.com by 9 am)
HW
H20.1 Processes that control unimolecular ion decomposition (prev. final exam)
As discussed in the Lambert reading and our lecture, the two main processes that control the fragmentation of an isolated unimolecular ion (under vacuum) once it has been formed (by any ionization technique) are the amount of internal energy deposited in the molecular ion and the chemical nature of the molecule (including its resistance to fragmentation).
Draw the spectra (and briefly explain how you obtain them) that you would expect to see if acrolein or benzene are (separately) ionized in each of the 3 following cases. I.e. your results should show 6 spectra, with a legend containing the molecule name and the ionization technique for that case). Be careful in the accounting of the energy as discussed in class (EI lecture), including whether the ionization energy is included or excluded.
(a) by photoionization with photons at 10.7 eV
(b) by electron transfer ionization with a reagent whose ionization energy is 13 eV
(c) by low-energy EI with the energy distribution in the notes:.
Below you have the breakdown curve of the acrolein molecular ion (CH2CHCHO+.) as a function of the energy contained by the photon absorbed in photonionization. (From Li and Baer, The dissociation dynamics and thermochemistry of the acrolein ion studied by threshold photoelectron–photoion coincidence spectroscopy, Int. Journal Mass Spec., 2002).
Breakdown curve of the benzene C6H6+. molecular ion (from Williams et al., Ion-Molecule Reactions in a Nitrogen-Benzene Plasma: Implications for the Destruction of Aromatic Compounds, 52nd Annual Gaseous Electronics Conference, Norfolk, VA - 6 October 1999.
Note that the ionization energies can be found in the NIST Chemistry Webbook.
If you need to make assumptions, assume this is a research project and imagine yourself presenting this at a conference, and make the assumptions that you think would be most defensible to your colleagues (that’s a great rule of thumb for many situations!).
Homework 19
Assigned Tue 9-Nov-2021; reading due Thu 11-Nov-2021; HW due Tue 16-Nov-2021 but can also be turned in on the 11th (by email to chem5181@gmail.com by 9 am)
Please consider posting a question in Piazza when something is not clear with reading and HW.
Reading
R19.1. Review the slides that we covered in class and (if needed) the recording. Ask in Piazza if something is still unclear.
R19.2. Read section 14.7 of the book Organic Structural Spectroscopy (chapter written by Graham Cooks, in the Reading folder, a very good book BTW)
HW
Note: these calculations are approximate by nature, so don’t try to get many significant figures. Make the simplifications and approximations you need to get to a numerical answer. I am most interested in your getting the order of magnitude right for each step (i.e. within a factor of 2-3); and critically evaluating whether that order of magnitude makes sense in the bigger picture. If you are missing a number, estimate it in the most reasonable way you can come up with (and make clear that you are doing so and how). Also, some of the later steps can be done even if you can’t do the earlier ones, so try each step independently. Please explain how you are trying to solve each step, so that I can give you partial credit even if you don’t get the final answer right.
19.1 Order of Magnitude Calculations for an Electron Ionization Source
Note that a natural timescale for this problem is 10 μs (replacement time of N2 in the box).
(a) In a typical EI ion source, a current of 3.5 A flows through the filament, and an emission current of 2.5 mA is produced. What is the electron flux (electrons / s ) flowing through the filament? What is the flux leaving the filament and available for ionization? What % of the electrons flowing through the filament are emitted?
What is the speed of the electrons if their energy is 70 eV? What is the associated wavelength? Can you explain why 70 eV electrons are most effective at ionizing almost any molecule? (as compared with electrons with different kinetic energies).
(b) Assume that the actual ionization volume is a cube of 4 mm side, and that 100% of the source pressure of 10-6 Torr is due to N2. What is the ion current detected by the mass spectrometer? Assume that ions formed in the ionization volume are transmitted to the detector with 30% efficiency. Note that the EI cross section of N2 is 2.7 A2 (1A = 10-10 m). Refer to the course notes for the interpretation of the EI cross section.
(c) What is the probability that a given electron that leaves the filament actually ionizes a nitrogen molecule? (this is the “efficiency per electron”)
(d) What is the probability that a molecule that crosses the ionizer volume at its average thermal speed only once (at 300K) is ionized? (this is the regular “ionization efficiency”).
How do the efficiencies compare, per electron, and per N2 molecule? Does this comparison make sense?
(e) Create an animation of “the view from the filament” in Igor. Draw a square which is the projection of the ionization volume as viewed from the filament. Have one N2 molecule with the total cross section of all the N2 molecules in the ionization volume (or larger if needed to see it - put any scaling factor in a legend, together with the simulation time). Have that “molecule” undergo specular reflection at the boundaries of the ionization volume (as if the ionizer was a closed box). Then have electrons impact randomly in the square at the appropriate rate. Display the time in a label. Change the color of the N2 molecule when it is ionized. See the schematic below. Are the results of the simulation consistent with those of parts (b)-(d)?
Igor trick: to do the animation for the ion, just create two 1-point waves that contain the X and Y position of the ion at a given point in time. Then step thru the calculated positions at regular intervals (e.g. with a For loop) and execute the following commands:
DoUpdate
Sleep /T 4
(You can change the “4” to other numbers >= 1, to change the speed of the animation)
(f) Assuming that once formed, the ions gain a kinetic energy of 14 eV, what would be their speed? How does this compare with the electron speed at 70 eV? Does this comparison make sense to you? What can make the ions gain that kinetic energy?
(g) How long will the ions take to travel 20 cm to the end of the quadrupole? How many oscillations of the radio-frequency field of the quadrupole will happen during their travel time, if the RF frequency of the quad is 1.2 MHz? Is that a sufficient number of oscillations for the quadrupole to do its filtering job?
(g) The ions are then detected by an electron multiplier (EM) which is biased at –2.5 kV. What will be their kinetic energy (in eV) upon striking the EM surface? And their speed?
Homework 18
Assigned Fri 5-Nov-2021; due Tue 9-Nov-2021 (by email to chem5181@gmail.com by 9 am)
Please consider posting a question in Piazza when something is not clear with reading and HW.
Reading
R18.1. Review the slides that we covered in class and (if needed) the recording. Revisit the problem that we did in breakout groups, and ask in Piazza if it is still unclear.
R18.2. Sections 2.2, 2.3, 2.4, 2.6, and 2.7 of the Gross book, which were optional before, are now mandatory
R18.3. (optional, will be mandatory later): read section 14.7 of the book Organic Structural Spectroscopy (chapter written by Graham Cooks, in the Reading folder, a very good book BTW)
Homework (optional for bonus points. OK to do 1 of the 2, and ok to do it in small groups)
H18.1. (optional for bonus points) Simulation of aliasing in data acquisition. Implement an analog data acquisition board. Simulate a sinusoidal with an amplitude of 1 V, you can use the code below as a start, if useful. Acquire data at different time resolutions, do the FFT of the acquired waveforms, and plot the major frequencies in the FFT as a function of the time resolution (frequency) of acquisition. Assume that you have infinite precision in recording the voltage. Are the results consistent with Nyquist sampling theorem? Why or why not?
Function Test_FFT(AngFreq, Amp1, Amp2, NoiseAmpl, MakeNewPlot)
Variable AngFreq, Amp1, Amp2, NoiseAmpl, MakeNewPlot
// Angular frequency (rad/s), Amplitude of signals 1 & 2, Amplitude of the noise
Make /O/N=50000 myTimeWave, myYWave, MyFT, MyPS
Make /O/N=50000 myTimeWave_sh, myYWave_sh, MyFT_sh, MyPS_sh
MyTimeWave = x/ 100
MyTimeWave_sh = x / 100
Setscale x 0, 1/100, myYWave
Setscale x 0, 1/100, myYWave_sh
MyYWave = Amp1 * sin(AngFreq* MyTimeWave) + Amp2 * cos(AngFreq/2* MyTimeWave) + gnoise(NoiseAmpl)
MyYWave_sh = Amp1 * sin(AngFreq* MyTimeWave_sh) + Amp2 * cos(AngFreq/2* MyTimeWave_sh) // + gnoise(NoiseAmpl)
End Function
H18.2. (optional for bonus points). Implement a digital filter like the one shown in the slide below. Simulate a waveform with noise (e.g. with the code above), do the FFT, clean up the FFT (set values to 0 for the noise) and then do the IFFT. Do you see an improvement in SNR? Is there a distortion of the waveform? If so, why?
Homework 17
Assigned Tue 26-Oct-2021; due Thu 28-Oct-2021 (by email to chem5181@gmail.com by 9 am)
A note: please consider posting a question in Piazza when something is not clear with reading and HW. I try to fish unclear items out of your reading reports & HWs and answer them at the start of class, but that does take class time. So using Piazza as well as a platform can be useful too. For whatever reason it is getting much less use this year than in most past years.
Reading
R17.1. Many of you reported that you didn’t have enough time to complete all the reading in R16. Please go back and complete any pending items, if needed, and/or re-read any items that were unclear.
R17.2. Review the slides we covered today and (if needed) the recording.
R17.2. Read sections of Gross Book on ionization (mandatory unless marked otherwise):
HW
H17.1. (Revisiting SNR since it seemed to be confusing. This is very similar to some past exam problems). m/z 100 is detected as a 5 ns wide peak in a TOFMS, where individual ions have pulse widths of 1 ns. The repetition rate of the spectrometer (how many spectra we are recording every second) is 50 kHz, and the ion detection rate at that m/z is 10 kHz.
In all cases, assume that you have a good MCP detector, amplifier, and data acquisition electronics, and thus that you can neglect other sources of noise.
Homework 16
Assigned Thu 21-Oct-2021; due Tue 26-Oct-2021 (by email to chem5181@gmail.com by 9 am)
Reading
R16.1. Review the slides for the Orbitrap and SNR / Detectors that we covered, plus (if needed) the recording of the lecture
R16.5. (Optional, but guaranteed to be useful in your PhD -- come back to this after the course, if you don’t have time now): read about Laminar flow and turbulent flow, and how to calculate which applies to your system in each case. (Note that in any tube, reactor etc. that you use, the flow will be one of these types of continuum flow -- or free molecular flow (or in the transitions between these). You should know which one, and know the basics that apply to each of them)
R16.6. Read the electron multiplier poster by ETP (in reading folder)
Homework
H16.1. Jose mentioned his “eyeballing approximation” that the std. dev. of the noise is approx ¼ of the peak-to-peak amplitude. Copy the code to produce the data from below. Explain what the code does. Run some cases, and calculate the JEE (Jose’s Eyeballing Error (%) = (¼ peak-to-peak - std dev) / std dev * 100) for 4 separate runs of the noise. What’s the average error for the approximation?
Function SNR_Demo(Noise_Amplitude)
Variable Noise_Amplitude
Make/O/N=1000 MyTime, Signal, Noise, Signal_Plus_Noise
MyTime = x-500
Signal = 1/(1+abs(MyTime/2))
Noise = gnoise(Noise_Amplitude)
Signal_Plus_Noise = Signal + Noise
//Display Signal vs MyTime
//AppendToGraph Signal_Plus_Noise vs MyTime
End Function
H16.2: solve the problems that we were working on at the end of class, shown in the two slides below
HW12
Assigned Tue 5-Oct-2021; due Thu 7-Oct-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R12.1. If needed, review the recording of today’s class (here)
R12.2.Read (or re-read) sections 4.1-4.6 of McLafferty (mandatory), and if you are so inclined, the rest of the chapter (is and will remain optional).
HW
H12.1. Apply the SIP to the spectrum below to try to determine the ID of the molecule
10 largest peaks:
169 999 | 168 471 | 167 282 | 51 138 | 170 121 |
77 114 | 66 96 | 39 76 | 65 73 | 166 62 |
HW11
Assigned Thu 30-Sep-2021; due Tue 5-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R11.1. If needed, review the recording of today’s class (here).
R11.2. Make progress with the optional-to-be-mandatory readings of HW10, if you haven’t read them all already
HW
H11.1. Apply the SIP to the spectrum below to try to determine the ID of the molecule.
HW10
Assigned Thu 23-Sep-2021; due Tue 28-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R10.1. Review the slides we covered today (in reading folder). The recording is here.
R10.2. Read chapter 5 of McLafferty
R10.3. Read (or re-read) sections 4.1-4.6 of McLafferty (optional, will be mandatory later) and the rest of the chapter (is and will remain optional). Sorry, in the last HW I meant to assign chapter 5, not 4. Chapter 4 is long and challenging, especially for people with less organic chemistry background, and normally we don’t cover all of it in class. (But for those of you that liked chapter 4, chapter 8 goes into the same concepts in even more detail -- but totally optional)
R10.4. (Optional, will be mandatory later) Quadrupole simulation paper (Steel and Henchman, 1998, in the reading folder))
R10.5. (Optional, might be mandatory later): Section 4.4 of Gross book, on quadrupole analyzers (in the reading folder). This is similar material as the article, but covers some different useful topics.
HW
For the molecule below:
(1) Follow the standard interpretation checklist
(2) Can you propose a structure for this molecule? Are there multiple structures that would be consistent with the spectrum?
(3) Mark the structure of the molecule with the fragmentations (bond breakings) that will produce each peak in the spectrum. (You may want to mark multiple copies of your structure, to avoid clutter). Use the notation in Figure 3.1 of McLafferty (p.39). Remember that when a bond breaks, either side of the molecule can become an ion or a neutral. Can the fragmentation of your proposed molecule explain the presence of every peak in the spectrum?
We will discuss this example in detail in class (since several people have requested that we do that), so please give it a serious effort.
HW9
Assigned Tue 21-Sep-2021; due Thu 23-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R9.1. Review the slides we covered today (in reading folder). The recording is here.
R9.2. Read chapter 4 of McLafferty (was optional before)
Homework
H9.1- Calculate (in a table) and plot the isotopic distribution of CH2=CHCl and CH2BrCl
H9.2- The molecular ion of an analyte occurs at 59.9670 amu. Using the exact masses from NIST, identify the product and calculate the relative abundance of the ion with a nominal m/z of 62.
H9.3- The region of a CI mass spectrum containing the protonated molecule shows relative abundances as follows:
m/z 321 2.03%
m/z 322 100.00%
m/z 323 18.38%
m/z 324 34.06%
m/z 325 3.83%
Deduce as much as possible about the molecular formula following the SIP step-by-step till 1.11.
H9.4. Identify the molecule that creates the spectrum below, following the SIP up to step 1.11. Please use the interpretation check the consistency of the interpretation (i.e. that all the observed fragments can be produced from your proposed molecule, and that expected fragments are not missing from the spectrum).
10 largest peaks:
142 999 | 127 430 | 141 173 | 15 67 | 139 52 |
140 47 | 128 23 | 14 13 | 143 12 | 13 7 |
HW8
Assigned Thu 16-Sep-2021; reading due Tue 21-Sep-2021; HW due then if possible, otherwise on Thu 23-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R8.1. Review the slides we covered today. The recording is here.
R8.2. Read chapter 3 of McLafferty (was optional before)
R8.3. (Optional, will be mandatory later) Read chapter 4 of McLafferty
R8.4. Install the demo NIST database on your computer, by copying it from the software folder. It only works under Windows, and it needs to be in the C:\ folder, i.e. C:\NIST98. If you don’t have a PC, find one where you can run this program. Open the MSSEARCH\nistms.exe file, and play with the features of the program.
HW
H8.1. Solve the problem on slide 27 of the lecture slides
H8.2. Verify your solution of H8.1 with an elemental composition calculator. There are many available, e.g. here, here, here (if you find a better one, let me know in your responses)
HW7
Assigned Tue 14-Sep-2021, reading due Thu 16-Sep-2021; HW due Tue 21-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R7.1. Review the lecture slides here (2 sets of slides, review the interpretation ones only till where we covered today). The recording is here
R7.2. (Optional, will be mandatory later) Read chapter 3 of McLafferty. Only if you have time after completing the HW, which is more important for Tue
HW
7.1. Use the code below for the numerical solution of the TOFMS using Euler’s method. This was written by one of your colleagues.
CONSTANT eCHARGE_C = 1.60218e-19 // Coulombs
CONSTANT AMUTOKG = 1.66054e-27 // kg in 1 amu
CONSTANT S_m = 0.1 // Size of extraction region
CONSTANT D_m = 1 // Size of the drift region
CONSTANT SPEED_AVG_m_s = 1000
CONSTANT SPEED_STD_DEV_m_s = 500
//H5.1
Function TOFSimul_Euler(m2z, PE_eV, nPoints)
Variable m2z, PE_eV, nPoints
Variable iTime, dt
Variable/G Acc = eCHARGE_C * (PE_eV / S_m) / (m2z * AMUTOKG) // a = qE / m
Variable TOF_Euler_s, TOF_Anyl_s
// Make waves
Make/O/N=(nPoints) wTime_s=0, wPos_m=0, wVel_m_s=0, wAccel_m_s2=0
wTime_s = x * (200 * 10^-7 / nPoints)
dt = wTime_s[1] - wTime_s[0]
// Set initial values at time 0
wAccel_m_s2[0] = Acc
wVel_m_s[0] = 0
wPos_m[0] = 0
// Find numerical solution with Euler's method
For (iTime = 0; iTime < (nPoints-1); iTime +=1)
If ( wPos_m[iTime] >= (D_m + S_m) ) // Break a loop when you find the TOF solution
TOF_Euler_s = wTime_s[iTime]
Break
Else
Endif
If ( wPos_m[iTime] >= S_m )
wAccel_m_s2[iTime+1] = 0 // Motion under no force
Else
wAccel_m_s2[iTime+1] = wAccel_m_s2[iTime] // Motion under a constant force
Endif
wVel_m_s[iTime+1] = wVel_m_s[iTime] + wAccel_m_s2[iTime]*dt
wPos_m[iTime+1] = wPos_m[iTime] + wVel_m_s[iTime]*dt
Endfor
Return TOF_Euler_s
End
HW6
Assigned Thu 9-Sep-2021; due Tue 12-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R6.1. Review the Lecture slides. The recording is here.
R6.2. If you didn’t already, read all of Chapter 1 of McLafferty
R6.3. If you didn’t do the unknown in McLafferty Chapter 2, work through them. Note that the solutions are in Chapter 11 in the reading folder, but try to work through them and not look at the solutions for a while, you’ll learn more if you struggle, debate with others, ask questions etc.
HW
HW6.0. If you didn’t turn it in already, complete and turn in HW5. It is important to get 5.1 to work correctly (as we will build upon it), so please post your final TOF value in Piazza, and how it compares with the exact solution.
HW6.1. Solve the example we started in class today
HW5: TOFMS Numerical Solution with Euler’s Method
Assigned Tue 7-Sep-2021; reading due Thu 9-Sep-2021. HW due then if feasible, otherwise you can turn it in on 14-Sep-2021, but please turn it all at once (by email to chem5181@gmail.com by 9:30 am)
Reading
R5.1. Review the Lecture slides. The recording is in two parts (not sure why it did that): here (first 10 min) and here (rest of the lecture).
R5.2. Read section 1.8 and Chapter 2 of McLafferty and Turecek (in the reading folder). (Optional: read all of chapter 1, and not just section 1.8)
HW
H5.2. Familiarizing yourself with random number generators and histograms. Start with the function below to generate a number of random values for the initial velocity of the ions produced in a MALDI ion source.
CONSTANT SPEED_AVG_m_s = 1000
CONSTANT SPEED_STD_DEV_m_s = 500
Function MakeInitialSpeedsWave(NIons, MakeNewPlot)
Variable Nions
Variable MakeNewPlot
Make/O/N=(NIons) wInitialSpeed_m_s
Variable iIon
For(iIon = 0; iIon < NIons; iIon++)
wInitialSpeed_m_s[iIon] = SPEED_AVG_m_s + gnoise(SPEED_STD_DEV_m_s)
EndFor
If (MakeNewPlot == 1)
Display wInitialSpeed_m_s
EndIf
End
Show your plot for 100 ions, and explain why it looks the way it does.
Then make a histogram using the Analysis → Histogram command. Make sure the plot is a useful histogram. In particular you will have to use your judgment to decide what’s a useful bin spacing, and how many ions to run to get a useful histogram (in terms of measuring its width accurately). Explain how you make those decisions.
HW3: Review of Prerequisites II
Assigned Tue 31-Aug-2021; Due: Thu 2-Sep-2021 (by email to chem5181@gmail.com by 9:30 am)
Reading
R3.1. Review the Lecture Slides (video of lecture is here, if useful)
R3.2. (If not very familiar with the concept already) Standard error of the mean: in Wikipedia and BiostatHandbook
R3.3. (Optional, if time) Sections 3.4 & 3.5 Resolution and accuracy on Gross textbook
Homework
H3.3. Answer: which parts of the prerequisites material that we have reviewed was less clear or more confusing for you, if any? Why? What are you going to do about it? (note the latter can include coming to office hours, which I’ll post shortly)
H3.4. We measure the concentration of benzene in our classroom 5 times, and we get concentrations of 210, 135, 221, 183, and 142 parts-per-billion. What are the mean, standard deviation, and standard error of the mean in this case? What do the std. dev. And the std. error of the mean? Are they typically the same, different, or it depends on what you want to do with it?
HW1: Logistics, Review of Prerequisites
Assigned Tue 24-Aug-2021; Due: Thu 26-Aug-2021 (by email to chem5181@gmail.com by 9:30 am)
Logistics
L1. Complete the form for conflicts at http://tinyurl.com/j-class-sched & confirm (in your email)
L2. Install Igor on your computer (if not there already). If you haven’t programmed in Igor before, paste the following function on the procedure window, and confirm that it does print the right text when you execute Print_Hello(“Your Name”) on the command window.
FUNCTION Print_Hello(YourNameString)
String YourNameString
Print "My name is " + YourNameString
END FUNCTION
https://chem.libretexts.org/Bookshelves/Analytical_Chemistry/Supplemental_Modules_(Analytical_Chemistry)/Instrumental_Analysis/Mass_Spectrometry/Mass_Spec/Mass_Spectrometry_-_Fragmentation_Patterns
Table of Contents of This Document (You can ignore, this is for my reference about lots of old HW that I sometimes reuse or adapt)
HWs of Current Year TY / (Prev) 3
HWs from Previous Years TY / (Prev) 37
General Research TY / (Prev) 38
Review of Prerequisites TY / (Prev) 38
Igor & Programming TY / (Prev) 41
Working with Real Spectra TY / (Prev) 45
Ion Trap Simulations TY / (Prev) 78
FTICR & Orbitrap TY / (Prev) 80
Question 3 (20 pts). Mass Analyzers. (Midterm Fall’11, Cume’10) 82
MS Instrumentation - Other TY / (Prev) 94
Ion Optics Simulation TY / (Prev) 94
MS Interpretation TY / (Prev) 101
Atmos Chem Inst. TY / (Prev) 102
Analytical Separations TY / (Prev) 102
Homework Assignment #1: assigned 23-Aug-11, due 1-Sep-11 before start of class
(1) Review on electric fields and forces
a. What is the strength of the electric field between two parallel plates at –1000 and 1300 V with respect to ground, if they are separated by 5 mm?
b. Same as a but the plates are at 0 and 2300 V with respect to ground respectively
c. What is the force on a doubly charged (++) mercury ion located between the plates of case a?
d. What speed will that ion acquire after 2 mm of motion? (starting with zero velocity)
e. What is the electric field strength needed to prevent a singly charged (-) mercury ion from falling under the effect of gravity? (assume that the atom has zero initial velocity)
f. Same as e, but for a 1 mm diameter water droplet carrying 50 units of charge (+)
g. What is the net electric force on a neutral mercury atom in an electric field of 106 V/m?
h. An Hg ion (+) has a speed of 10,000 m/s. What electric potential must it climb to reduce its speed to 100 m/s?
(2) Review on magnetic fields and forces
a. What is the force acting on a singly charged (+) potassium ion with zero velocity in a 1 Tesla magnetic field? What is the direction of the force? Assume that the field is infinite in space from the point of view of the ion.
b. Same as a, but the ion has an initial velocity of 2,000 m/s
c. What will be the trajectory of the ion in case b? What are the main parameters (and their values) that characterize the ion’s motion?
(3) Review on Physical Chemistry
a. What function describes the velocity distribution of gas molecules? Briefly explain each of the parameters
b. What is the average thermal speed of H2O at 20 C? What is the maximum velocity? What is the minimum speed? And at –100 C?
c. Same as previous but for SF6
d. What is the (approximate) average collision frequency between air molecules under ambient conditions in Boulder? What about pure SF6 at 1 Atm pressure? What about air at 10-5 mbar?
e. What is the frequency and wavelength of a photon with an energy of 5 eV? Which region of the electromagnetic spectrum is the photon in?
f. Same as previous but with 10 eV
g. What is the speed of an electron with 70 eV of kinetic energy?
h. What is the speed of an SF6+ ion with 70 eV of kinetic energy? How does it compare with the average thermal speed at room temperature (question c)?
i. What is the definition of vapor pressure? How does it depend on temperature?
j. What is the vapor pressure of water at 0C? at 50C? at 100C?
(4) Review on fluid mechanics
a. What is the definition of fluid dynamic viscosity? Of kinematic viscosity? What are their values for air and water at room temperature? How do they change with temperature?
b. What is the equation describing the velocity profile of a fluid in a circular tube under laminar flow?
c. What condition must be met for the flow to be laminar?
d. Will the flow of He carrier gas under typical GC conditions be laminar? (20 cm/s, 250 mm diameter column)
e. What is the mass flow rate in the previous question? What is the volume flow rate?
f. What will be the gas flow through a 100 mm orifice which is exposed to the atmosphere on one side and kept to a pressure of 2 mbar through vacuum pumping?
g. What will be the pumping speed (in l/s) needed to maintain the flow on e, at a pressure of 0.02 mbar?
h. What will be the average molecular diffusion distance of argon atoms originating from a point source after 1 second in still air? And after one minute?
(5) Review on math and statistics
a. What is the definition of derivative? What is its geometrical interpretation? Can you estimate the derivative of attendance to the ASMS conference curve (slide 3 from the class notes) around 1980?
b. What is the definition of an integral? What is its geometrical interpretation? What is the approx. integral of the ASMS attendance between 1980 and 1990? What is the meaning of this number?
c. What is a probability distribution function? (define briefly)
d. What is the probability that an ion will have energy larger than 7 eV, if the ion energy has a normal distribution with mean 5 eV and standard deviation 1 eV?
e. What is the probability that an ion will have an energy of 0 eV in the previous question.
CHEM-5181 Homework 2
Mass Spectrometry and Chromatography, CU Boulder
Due before class by emailing experiments to chem5181@gmail.com (under 5 MB)
NOTES
1. You must report the results (text and/or graphs) of your work in a Notebook in the experiment. This is the work I will grade. It’s ok to use one Notebook for the entire assignment, although it may be cleaner to keep the different questions in different experiments, at least for #4.
2. You should keep the waves for each question in their own DataFolder (this will make it easier for me to look at your work.
3. Please follow the programming style conventions (below). You will receive additional points for following these guidelines. These are especially for your benefit – they help make your code clearer and easier to understand after you come back to it after a while. Remember, “write code for the reader!”
4. For questions 1 and 2, you may wish to copy the command for the function into your Notebook, highlight it, right-click, and choose “Execute Selection”. Then the results are written both in the History and the Notebook.
Question 1: Energy, Wavelength, and Frequency.
Write a function that calculates and reports the frequency and wavelength of photons with a given energy (in eV) and what range of the electromagnetic spectrum the photon is in. A sample output might look like
"A photon with 100 eV of energy has a wavelength of 1.2e-8 m, a frequency of 2.4e16 Hz, and is in the UV portion of the electromagnetic spectrum."
Report these data in your notebook for photons with 1, 3, 20, and 70 eV.
Question 2: Velocity in an Electric Field.
Write a function that takes the mass (in amus) and charge of an ion (integer), its initial velocity (m/s) and a desired final velocity (m/s) and returns** the electric potential the ion must climb up or down to achieve the final velocity. Write in your notebook what law governs this relationship and show a simple derivation of the equation used in your function.
Report the potential required for a singly-charged (+) Hg ion with initial velocity 10,000 m/s to reach a final velocity of 100 m/s.
** Hint: use the Help to learn how to use “return” in a function. Note that when you return a value, the function is trying to send a value, so you need a place to put that value. You can assign it to a variable or print it.
Question 3: Speed Distribution of Gas Molecules
Write a function to calculate the Maxwell-Boltzmann distribution of speeds given the mass of the moving object, the maximum speed for consideration, and the temperature. Declare any necessary constants as constants, not variables.
a) Calculate and plot the speed probability distribution functions for 4He, 20Ne, 40Ar, and 132Xe at 298.15 K (check your work against the plot on the Wikipedia page for the Maxwell-Boltzmann Distribution)
b) Calculate and append to the plot the speed probability distribution functions for 40Ar at 200 and 400 K.
c) Is there a temperature at which the speed probability distribution function of 40Ar is similar to the speed probability distribution function for 20Ne at 298.15K? Append this to your plot.
Homework J4
Assigned Thu 18-Oct-2018; Due: Tue 23-Oct-2018 (by email to chem5181@gmail.com by 9 am)
4.1 Complete the problem that we were solving in class, Starting with the posted solution to HW2, add the simultaneous determination of the best slope and intercept for the regression line. Make a new function with a new name, so that you old function still works. You will have to make X2 a 2d matrix, modify the calculation of X2 to include the intercept, and modify the code at the end to find the best slope and intercept.
Test that it works by typing some data that has an exact solution (and X2 = 0)
4.2. Make a contour plot of the solution (Windows → New → Contour Plot), and play with the options in the plot till it shows the information well
4.3. Make an image plot of the solution. This is also under Windows → New. But you need to create two new waves (SlopesForIP, IntForIP) that have 1 more point than Slopes and Intercepts (the “edges” rather than the “centers” of the bins).
4.4. Copy your working function into a new function, and modify it to take two more parameters QuadOrRobust (which determines whether the regression minimizes the sum of squared residuals or of the absolute values) and and VertOrOrth (which determines whether the regression minimizes the vertical or orthogonal distance).
Run all 4 options on the following data:
X Y
1 2.1
2 3.8
3 5.8
4 8.0
5 10.3
6 11.5
10 40
Comment on the ability of each method to capture the trend in the data.
Homework J3
Assigned Wed 17-Oct-2018; Due: Thu 18-Oct-2018 (by email to chem5181@gmail.com by 9 am)
3.1. Refresh your memory on linear regression, Igor programming, and Homework 2. Be prepared for your HW2 solution to be projected in the screen and discussed as a group. You can submit a revised solution via email if you want, but not needed.
3.2. Read Chapter 1 and sections 4.1 and 4.2.1 in the Programming with Igor Pro book. (You should have bought a printed copy per a previous message, don’t rely on the Amazon preview always working. They reduce what you can see if you go back to it.)
3.3. Do exercise 1.4 on the book (it is really short, just to get people to reopen Igor and remind themselves of very basic programming).
Creating panel in Igor
Learning goals:
(a) Create a panel that allows you to run the basic simulation for any values of the parameters, by pressing a button. See the manual section III-14 on Control Panels. Looking at the figure at the top of page III-362, you only need to use “set variables” for m, z, U, V, RF frequency, quadrupole size, and any other needed parameters, and an button that runs the main routine, given those parameters.
You could also create sliders that are handy, but then you need to add a value display so that it is clear what value is being used.
You will need to create some global variables. Take care of giving them unique names according to the class naming conventions, i.e. starting with “g” to avoid creating bugs due to a local and a global variable having the same name etc. To make sure a new global variable name is unique, search for it in the procedure file (CTRL + F) before declaring it.
Homework J2
Assigned Tue 11-Sep-2018; Due: Thu 13-Sep-2018 (by email to chem5181@gmail.com by 9 am)
2,1 Continuing the Simple Linear Regression Program
2.1.1. Download the example program we were using in class from the Resources page of Piazza. This link should work too. Follow the instructions from slide 9 of the handouts (in particular assume that the intercept = 0. Note that the datapoints have changed slightly vs the ones on the class slide).
2.1.2. Complete the program so that every time you call it, it produces a line graph that shows X2 (sum of squared residuals for all points) vs the slope value.
2.1.3. Then determine the best slope with a precision of 3 decimal points, and have your program print that value at the end of the execution.
2.1.4. BONUS. If you get the above to work, determine the slope using simple robust regression (i.e. minimizing the sum of the absolute values of the residuals, instead of the sum of the squared residuals).
HW7: Simple Linear Regression
Assigned Tue 19-Sep-2017; Due: Thu 21-Sep-2017 (by email to chem5181@gmail.com by 9 am)
7.0. Reading:
7.1. Write a function named LinRegSlope_HW71() that implements standard linear regression and determines the fit slope (assume that the intercept = 0 for now). Your function should work on the waves wXData and wYData, make a plot of the regression error (X2 = “chi squared”, i.e. the sum of the squared vertical deviations between your datapoints and the line) vs. slope value, and return the best value of the slope.
Run your function on the points:
wXData = {2.08962,2.0711,7.56729,4.63173,6.49386}
wYData = {11.9748,13.8373,32.048,18.5561,37.6536}
And compare the results with BOTH of the built-in fitting functions in Igor (Analysis → quick fit or Analysis → CurveFit). What are the differences between the use, options, and output of the two methods?
Note the value of the uncertainty in your slope returned by Igor, and draw it on your X2 vs slope plot. Does it make sense?
7.2. Write a function named LinRegSlopeInt_HW72() that implements standard regression for both the slope and the intercept at the same time. You will need to create a 2-dimensional wave to hold the values of X2 for each value of X and Y.
Your function should make a contour plot of the results, and put a star at the minimum value. (BONUS points: make an image plot instead of a contour plot).
Run your function on the points:
wXData = {6.24888,9.50436,1.52474,2.76626,6.68708}
wYData = {49.9389,53.732,23.2113,23.5812,41.6408}
And compare the results with BOTH of the built-in fitting functions in Igor (Analysis → quick fit or Analysis → CurveFit).
Note the value of the uncertainties in your slope and intercept returned by Igor, and draw it on your X2 vs slope and intercept contour plot. Do they make sense?
What you have programmed here should be the same as the “standard regression” in Excel, Igor, Matlab etc.
7.3. BONUS SECTION if you have time. Tweak your function in 7.2. to minimize the sum of the absolute values of the residuals. Do you get the same result or not?
HW3 - Practice with simple functions in Igor: assigned 2-Sep-14; due 4-Sep-14
HW3.1 - Revisit HW2.2 now that we have covered some details about functions in Igor
HW3.2 - Do the last problem at the end of the resolution lecture notes
HW3.3 - Write a brute-force(*) linear regression function that determines the slope of the line that best fits 3 points that are passed to the function as arguments (assuming intercept = 0).
Test it using the following points:
x = 1 ; y = 2
x = 2 ; y = 4.1
x = 4 ; y = 7.9
Also use the linear fit function in Igor, and compare with the results of the brute force method
(*) Make an plot of the squared residual vs the slope and find the minimum
HW3.4 - Bonus Problem (i.e. bonus points for a volunteer to present it). Modify the previous program to determine both the slope and the intercept. For this you will need to make a contour or image plot of the squared residual vs the slope and intercept. Also use the linear fit function in Igor, and compare with the results of the brute force method.
HW2.3 - Write a function that plots the Maxwell-Boltzmann distribution of molecular speeds of N2 at 1 atm and 295 K in Igor. Properly label the axes & add units (No units is a big mistake!)
HW1 - Curve Fitting in Igor: assigned 26-Aug-2014, due 28-Aug-2014
HW1.1. Download the quadrupole mass spectrum linked here. Knowing that it is a mass spectrum of particles in air and that the higher m/z ions are identified in Fig 1 of this paper, determine a function to go from point number to m/z. Hint: use the Analysis → Curve Fitting tools in Igor (see the manual for details if needed).
HW4. Assigned Thu 4-Sep-2014, due Tue 23-Sep-2014
HW4.1. Resolution of different types of MS, and Igor Function Practice
Write a function that:
(1) works on a mass spectrum specified in two waves named mz and signal (2)identifies peaks in the spectrum and calculates and saves the m/z and resolution of each peak into 2 new vaves, named mz_for_res and Resol, and plots them against each other
(3) fits a function to the 2 waves determined in step 2 to estimate the evolution of resolution vs m/z.
Test and report the results of your function, with the curves for all spectrometers on the same graph when working on:
(a) the spectrum from HW1 (quadrupole)
(b) Time-of-Flight mass spectrum from our Aerodyne time-of-flight aerosol mass spectrometer (ToF-AMS, see DeCarlo et al. 2006 and Canagaratna et al. 2007 if interested in details -- but not needed to do HW). Download the TOF mass spectrum linked here (in Igor Text = ITX format). m/z Cal for ToF-AMS: Knowing that this is a spectrum of aerosol particles in air, and that the points in the spectrum are separated by 1 ns, fit a calibration equation and determine the parameters needed to convert point number (ns) into m/z. Note that there may be an offset between the start of the flight time and the first point number (start of the acquisition), since we may not want to waste datapoints when no ions have had time to arrive yet.
(c) Agilent LC-ESI-TOFMS.
Download the spectrum from an Agilent LC-ESI-TOFMS linked here. The spectrum is on sheet 2. Load the data into Igor. Fit a Gaussian to one of the major peaks, and look at it in linear and log (vertical) scales. Is the Gaussian a good approximation for the peak shape of this instrument? Calculate and plot the resolution vs. m/z, on the same plot as the resolutions from the other instruments. This instrument is the one for which we watched this video as part of the reading. Note: this spectrum is of an antidepressant in water (from people’s urine) and is discussed in this paper. It was graciously provided in Oct. 2013 by Drs. Imma Ferrer and E. Michael Thurman of the CU Center for Environmental Mass Spectrometry. |
(d) Bonus Part of the Problem: “Superhigh resolution” Orbitrap mass spectrometer. Download the Orbitrap mass spectrum linked here (Excel format). It's the average of 73 scans (acquisition = 1 min) of the synthetic peptide VLSPYDLTHK, with monoisotopic m/z (z=1) of 1172.63100, m/z (z=2) = 586.81914, m/z (z=3) = 391.54848).
Load it into Igor using Data Menu → Load Waves. Fit a Gaussian to one of the major peaks, and look at it in linear and log (vertical) scales. Is the Gaussian a good approximation for the peak shape of this instrument? Calculate and plot the resolution vs. m/z, on the same plot as the resolutions from the quadrupole and the TOFMS (you may need to use a log Y scale to see all of them at the same time). Estimate the Orbitrap mass accuracy in ppm for the singly charged ions. (Note: this spectrum was graciously provided by Dr. Stephane Houel of the CU Central Analytical Mass Spec Facility).
Hints:
Note that you can make a simpler spectrum with an easier answer (e.g. 20 points with a single clear peak of known resolution) and test the function with it. Once it is working on the simpler data, you can test it in the more complex data. This trick is extraordinarily useful in many research situations!
---------------------------------------
Homework Assignment #9: posted Mon 14-Oct-2013; due Thu 17-Oct-2013
HW 9.1) m/z calibration, Resolution, and Curve Fitting
The learning goals of this reading and HW are:
Note part of the reading for Thu is: Curve Fitting in Igor (p. III-158 to 182, rest of the chapter is suggested as needed for HW).
For this HW no functions are required, you can document each section on an Igor Notebook with pasted commands, results, and figures. You need to be able to re-execute the commands and redo the figures in class if randomly selected.
(a) Quadrupole mass spectrum. Download the Aerodyne quadrupole aerosol mass spectrometer (Q-AMS) spectrum linked here (PXP format) from the AMS spectral database. Calculate and plot the resolution vs. m/z, making sure to use the ions to the left of the spectrum which are not shown in the default spectrum, knowing that this is a spectrum of particles in air. Fit an appropriate function (built-in, if possible, or custom otherwise) that captures the evolution of the resolution with m/z. (Note: This spectrum was acquired by Jose and published in O’Dowd et al., Nature, 2002).
Bonus question: what is the accuracy of this mass spectrometer?
(b2) Estimate and plot the mass spectrometer resolution (FWHM definition) vs. m/z (choose 10 ions across the range of m/z). Fit an appropriate function that captures the evolution of the resolution with m/z. Plots this on top of the quadrupole results.
(b3) Fit a Gaussian function to one strong and one weak ion. Show the plots in a notebook with both linear and log vertical scales.. Is the Gaussian a good approximation for these peaks? Why or why not?
(b4) Bonus question: what is the accuracy of this mass spectrometer?
For future: simulate ion arrival in TOFMS, shot by shot, with ion shape being Gaussian, uncertainty in ion arrival being 5 ns… as in clicker question for TDC in class
Problem 2. (35 pts) MALDI Time-of-Flight Mass Spectrometry – Cume’06
(a) Derive an equation to predict the ion time-of-flight as a function of m/z for a linear MALDI-TOF instrument, with an acceleration voltage of 10 kV and a flight path length of 1 m.
(b) Assume that all ions (independent of their m/z) leave the surface with a speed of 500 m/s +/- 100 m/s (1s) in the direction of the flight tube. Calculate the resolution (FWHM) of the spectrometer as a function of m/z. What is the expected resolution at m/z 10, 100, 1000, and 10000?
Question 1: TOFMS. – HW Fall’07
In this question you will calculate the resolving power of a simplified matrix desorption laser ionization (MALDI) TOFMS. In MALDI, ions are created when a pulse of photons impacts a surface that contains the analyte molecules mixed with a “matrix” that absorbs laser photons and aids in the ionization process. The TOFMS has a 1.3 meter linear flight path beginning at the ionization surface and ending at the detector. The surface is held at 10 kV, the detector is held at 0 V, and we will assume that all ions are created at exactly the same instant. In this way, acceleration occurs simultaneous to ionization (time zero) and all ions travel the same distance.
(a) Sketch this instrument indicating voltages and field strengths.
(b) Derive an equation to predict ion velocity as a function of m/z for this linear MALDI-TOF instrument, with an acceleration voltage of 10 kV and a flight path length of 1.3 m. List units for all terms in your expression.
(c) Use Igor to plot expected ion flight times for the range m/z = 0 to 1000. (Trick: create a unit mass resolution wave with the following statements in the Igor command line (CTRL + J), or in an Igor function: Make /N= 1000 m_to_z ; m_to_z = x + 1)
(d) In addition to the applied acceleration voltage, all ions also have an energy component originating from the laser ionization process. Along the axis of drift, this energy yields a normal distribution of velocities with a peak at 500 m/s and a full width at maximum of 200 m/s. This distribution is independent of m/z.
Use Igor to plot the expected resolution (FWHM) of the spectrometer for the m/z range 0 to 1000.
(e) Can this instrument resolve singly charged isotope peaks (e.g. CH4+ from CH3D+) across this entire range. If not, across what m/z range is this possible? Note that to answer this question you need to plot the resolution (M/M) vs m/z, and compare with the resolution needed to separate isotopic peaks.
Question 4: TOFMS – Midterm Fall’09
The TOF/TOF mass spectrometer below pulses a source voltage (Vs) to extract ions into TOF-1, and then pulses a gate voltage to let a subset of those ions into TOF-2. Vs = 5000 V and the length of both TOF-MSs is 1 m total (0.5 m each).
a. Find t1 and tg so that ion D is analyzed in TOF-2 but ions C and E are not (in figure A below)
b. Find t1 and tg so that ion G is analyzed in TOF-2 but ion F and H are not (in figure B below)
c. Are the TOF-TOF experiments feasible if the mimimum time needed to pulse the gate is 1 ns?
d. What type of ion source was used to generate these spectra? How can you tell?
Problem M1.3 – Orthogonal Extraction TOFMS (53 pts) – Midterm Fall’07
Figure (i) shows a simplified orthogonal extraction time-of-flight mass spectrometer. Ions are created in the ion source and guided into the extraction region of the TOFMS. We will assume that the ion beam is collimated as it traverses the extraction region, such that ions have zero initial velocity along the drift axis of the TOFMS.
The extraction plate (E.P.) at the back of the extraction region is pulsed between ground and a high voltage, Vaccel. When it is at ground, ions fill the extraction region. When Vaccel is applied, ions in the extraction region are accelerated into the drift region.
The drawing shows the starting position of two ions (A and B, m = 100, z = 1) at the instant Vaccel is applied.
In all parts of the problem, show and explain work with all variables clearly defined (and units as needed). We cannot give partial credit if we cannot CLEARLY understand what you are doing.
(a) (6 pts) Calculate the chamber pressure (Pchamber) in mbar that is required to ensure proper analysis in the TOFMS. Clearly explain your criterion for “proper analysis.”
(b) (10 pts) Calculate the predicted flight times of ion A and B when Vacc = 3500V. Assume acceleration is instantaneous. (10 pts)
(c) (9 pts) Write an expression or set of expressions to determine the acceleration voltage, Vacc, that will create a space focus for ions A and B at the detector. You do not need to solve this expression. But, make sure all variables are clearly defined. And, use text to explain how you are creating a space focus at the detector.
(d) (8 pts) To avoid confusion about the starting time of a detected ion, all ions from the first extraction pulse must be strike the detector before the second extraction pulse occurs. Figure (ii) shows the pulsing sequence applied to the extraction plate.
What is the mass range of this instrument when pulsed at 10 kHz? (assuming ions originate at point A)
(e) (8 pts) Complete the following expression with one of the options below:
“To a first approximation, doubling the mass range of the instrument (_____) the duty cycle of this instrument by a factor of (_____)”:
(I) does not affect; 1
(II) increases; 2
(III) increases; 4
(IV) increases; sqrt(2)
(V) reduces; 2
(VI) reduces; 4
(VII) reduces; sqrt(2)
(f) (12 pts) Electric fields are used to move ions along the Y axis FROM the ion source TO the extraction region of the mass analyzer. The net field is drawn in figure (iii), you can assume that all ions experience the total voltage drop.
Will ions maintain their velocity along Y after acceleration into the TOF chamber?
Draw a hypothetical vector sum that represents the total velocity through the flight chamber.
What is the maximum value of the ion source voltage (Vis,max) that will ensure that ion A will reach the detector without impacting the side of the chamber first? (You might be surprised how low it is)
Problem 3. – Joel, HW Fall’06
In a 1997 paper (J. Am. Soc. Mass Spec. 8(3), 209, 1997) Martin Vestal and co-workers used a linear TOFMS with a delayed extraction source (modified PerSeptive Biosystems Voyager RP) to measure the initial velocity distribution of ions generated by MALDI.
In this problem, you will predict the distribution of recorded flight times for the singly charged insulin ion (MW = 5733.50) based on initial velocity distributions and TOFMS parameters reported in that paper. The basic schematic is identical to the sketch of the linear TOFMS that you drew in lab #1.
• The distance (d1) between the back plate (V0) and the first grid (V1) is 0.39 cm
• The distance (d2) between the first grid and the grid at the beginning of the drift region (V2) is 1.48 cm
• The total length of the drift region (D) between V2 and the detector is 128.9 cm
• The voltage applied V0 is 20 kV
• The voltage applied to V1 for extraction is 90% of the voltage applied to V0, or 18 kV.
• V2 and the detector are held at ground.
• The insulin ions have a mean initial velocity along the TOF axis of 300 m / sec, and range from 0 to 600 m/sec.
An Excel spreadsheet has been provided (on the course web page) as a guide for solving this problem. You are not required to use it, but the printed results you submit should include tables similar to those in the spreadsheet and a plot of the flight times of 7 ions (of different initial velocity) as a function of delay time. Cells of the Excel spreadsheet are colored in order to indicate what is provided as an input, and what requires calculation by you.
These steps will guide you through the spreadsheet:
a. Within the spreadsheet, fill in the cells corresponding to the field strengths in the regions between V0 and V1 (E1) and V1 and V2 (E2), the charge of the ion in Coulombs, and the mass of a single ion in kg. These will be critical values for the calculations that follow.
b. s’ denotes the distance between an ion and V1 at the moment of acceleration. Ions originate at V0; prior to the extraction event (i.e., during the delay), ions drift away from the V0 at an initial velocity originating from the ionization event. [i] Write an expression for s’ as a function of initial velocity (vo) and delay time (td) and use this expression to calculate values for column C in the spreadsheet.
c. As it passes through the first grid, an ion will have a kinetic energy (U1) that is the sum of its initial energy (Uo) and the energy derived from acceleration (Ua1). Write expressions for [i]U1 in terms of Uo and Ua1 [i] Uo in terms initial velocity (vo) and [ii] Ua1 in terms of the electric field in this first region (E1), s’, q, and m. [iii] the velocity of the ion as it passes through the first grid (v1) in terms of U1. Use these expressions to calculate values for column D.
d. Force can be written as the product of mass (m) and acceleration (a) or as the product of electric field (E) and charge (q). [i] Based on this, write a general expression for a in terms of E, q, and m. Denote the units of each variable. Use this expression to solve for the acceleration that occurs in region 1 (a1) and use that expression to find values for Column E.
e. A body undergoing constant acceleration, a, for a time, t, will reach a final velocity, vf, that is equal to the initial velocity, vo, plus the product, ta. [i] Use this fact to write an expression for the time spent in region 1 (T1) after the acceleration event in terms of vo , v1 and a1. Use this expression to solve for values in Column F.
f. Next, we must determine the amount of time an ion will spend traveling through the region between V1 and V2 (Region 2). As in Region 1, the energy that an ion has (U2) as it crosses V2 will be a sum of the energy it had upon entering Region 2 (U1) and the energy it gained by acceleration in Region 2 (Ua2). [i] Write an expression for the velocity of an ion at V2 as a function of Uo, U1, and Ua2. [ii] Write an expression for Ua2 in terms of the electric field in region 2 (E2). Use these expressions (and previous expressions for Uo and U1) to solve for the ion velocities at the exit of Region 2 (v2). (Column G)
g. Use methods similar to parts c and d to complete columns H and I of the spreadsheet.
h. Upon exiting Region 2, an ion enters the field-free drift region of the TOFMS. It will undergo no more acceleration. Its velocity thus remains constant. [i] Write an expression for the time an ion spends in the drift region in terms of the length of the drift region (D) and its velocity upon exiting Region 2 (v2). Use this expression to solve for the time spent in the drift region (TD).
i. An ions total flight time (TTotal) is the sum of time spent in Region 1, Region 2, and the Drift Region. Use this fact to complete Column K. (For comparison, Vestal reports times around 51 microsec. Your value should be close to this.)
j. You now have a working model of the PerSeptive Biosystems Voyager RP TOFMS. As a final step in the problem, we must determine the best delay time, which is the delay time that minimizes the distribution in ion times of flight. Vary delay time in your spreadsheet and generate a plot of flight times as a function of delay time. This can be done by copying calculated values from cells K35-K41 to the corresponding cells in rows 45-51.
k. Print your results, including all cells of the spreadsheet and the generated plot. Which delay time is optimum?
Problem 2.2. Simulation and optimization of the Lab MALDI-TOFMS. In this problem you will simulate the time-of-flight mass spectrometer used in Lab #1 using Igor. You need to turn in your Igor experiment via email to Jose. Include a notebook on the top of your Igor experiment that details the functions that need to be executed to generate the answers to each of the parts of the problem below.
In this problem, you will predict the distribution of recorded flight times for the singly charged protonated ions of the following 3 peptides:
- Angiotensin II mH+ = 1046.62 Da
- Angiotensin I mH+ = 1296.69 Da
- Glu1 fibrinopeptide B mH+ = 1570.68 Da
The basic schematic above is identical to the sketch of the linear TOFMS that you will use in lab #1.
• The distance (d1) between the back plate (at voltage V1) and the first grid (at voltage V2) is 0.39 cm
• The distance (d2) between the first grid and the grid at the beginning of the drift region (at a voltage Vg) is 1.48 cm
• The total length of the drift region (D) between Vg and the detector is 128.9 cm
• The voltage applied V1 is 20 kV
• The voltage applied to V2 for extraction is 90% of the voltage applied to V1, or 18 kV.
• The Vg grid, the drift region, and the detector are held at ground.
Questions:
(a) What resolving power do we need to resolve the flight times of the 3 ions (FWHM definition)?
(b) Draw the mass spectrometer and grids in an Igor graph. (Igor trick: define the vertices of the instrument as points on two waves, x_inst and y_inst, and just display y_inst vs x_inst).
(c) Calculate and plot the X position vs. time-of-flight (with TOF = 0 for the laser shot) for each of the 3 types ions, assuming that they originate at the sample plate with zero initial velocity.
(d) Simulate the trajectories of the three ions simultaneously on top of the instrument drawing of part (b) as an animation in Igor. Offset the ions slightly in the y-direction for visual clarity.
(Igor trick: to do an animation, just create for each ion two 1-point waves that contain the X and Y positions at a given point in time. Then step thru the calculated positions at regular intervals with the following instructions:
DoUpdate
Sleep /T 4
(You can change the “4” to other numbers >= 1, to change the speed of the animation)
(e) Effect of the initial distribution of ion velocities. A key problem that limits the MS resolution in MALDI experiments is that there is a wide distribution of initial ion velocities in the X-direction. We will assume that this distribution of velocities for Angiotensin I is a lognormal distribution with a mean of 500 m/s and a standard deviation of 500 m/s. How does that velocity distribution compare with the thermal velocity of Angiotensin I at room temperature? What would be the temperature at which the average thermal velocity is the same as the average velocity in this case? (Hint: this is why sometimes people talk loosely of “hot ions” in MALDI). Simulate the peak shape of the mass spectrum of Angiotensin I, by means of a Monte Carlo simulation of at least 1000 ions in Igor. What is the resolution of the mass spectrometer (in mass space, not time space) under these conditions? How does it compare with what you saw in the lab when using linear mode and no delayed extraction? What do you conclude from this comparison? (Hint: look up the “histogram” function in Igor)
(f) As an alternative solution for (e), simulate the trajectories of 10 ions that represent the probability-weighed center of the 10 deciles of this lognormal distribution (i.e. the ions that delimit probabilities of 5%, 15% of the initial velocity distribution...). Estimate the spectrometer resolution from these simulations. How does it compare with what you obtained under (e)?
(h) Effect of delayed extraction. As discussed in class, this is a strategy used to increase the resolution of the TOFMS when the distribution of initial ion velocities is wide as in this case. Using the technique on either (d) or (e) (whichever one you prefer), determine the optimum extraction delay, and the optimum resolution of the mass spectrometer with that setting. How do these compare with what you saw in the lab using linear mode, and with the manufacturer specifications (provided by Shuji and also on the course web page)?
(g) Reflectron. Now assume that the instrument is operated in reflectron mode. Assume that the reflectron is located 110 cm away from the Vg grid, that the physical depth of the reflectron is 10 cm, and that the detector for reflectron mode is located 4 cm before the start of the reflectron. Ignore the motion on the Y direction. Draw this version of the instrument in Igor. (Note that the schematic above is not to scale)
(h) The entrance of the reflectron is at ground, and the back of the reflectron is set at 21 kV, while the mid-point of the reflectron is set at 10.5 kV. We will assume that the voltage varies linearly between these points. What is the resolution obtained for the angiontensin ions in this case? Assume that no delayed extraction is used. (using the Monte Carlo simulation method).
(i) Now optimize the reflectron by changing the voltage of the mid-point. What is the optimum voltage setting and the optimum resolution for angiotensin I, and what resolution is obtained? How does this compare with what you obtained in the lab, and with the manufacturer specifications?
(j) Now optimize delayed extraction and reflectron tuning together (2 parameters to optimize, i.e. extraction delay and reflectron mid-point voltage). Is there much of a difference comparing the resolutions obtained when optimizing the delayed extraction and reflectron together, vs. separately?
Problem 2.1. Analysis of a time-of-flight mass spectrum.
(a) Download the time-of-flight mass spectrum file from the course web page. Knowing that this is a spectrum of aerosol particles in air (from our time-of-flight aerosol mass spectrometer), and that the points in the spectrum are separated by 1 ns, determine the calibration equation and parameters to convert point number (ns) into m/z.
(b) Estimate and plot the mass spectrometer resolution (FWHM definition) vs. m/z (choose 10 ions across the range of m/z). Is the resolution constant with m/z? Why?
(c) Focus on the two ions of highest intensity in the spectrum. Are their shapes approximately Gaussian? How can you analyze this quantitatively in Igor? (and please do).
(d) Could you separate N2+ and CO+ with the resolution in this spectrum? Assuming that the peaks are Gaussian, simulate in Igor how the peaks would look if they both had the same intensity.
HW5: TOFMS Resolution Optimization
Assigned Thu 10-Sep-2019; Due Tue 17-Sep-2019 (by email to chem5181@gmail.com by 9:30 am)
Reading
R5.1. Review the lecture slides for today (pls answer the 4 questions as usual)
R5.2. (Mandatory this time): RM Jordan tutorial on TOF (this is a manufacturer from whom you can buy cheap, lower performance TOFs. There is at least one in use in CU CHEM). At least one of your colleagues found this very useful
R5.3. “Skim” the Guilhaus (1995) review on TOFMS. That means to spend < 10 min looking through the abstract, figures, to get a sense of what he is doing. Briefly summarize what you understood and not. Many many times all we have time for is skimming papers, so it is a skill that you need to cultivate. I estimate that I may skim 25 papers a month like this (and more, > 100 with a 1-min version of skimming) and read ~10 end-to-end.
Homework
H5.1. Working with Wyatt’s code
This reflects an extremely common situation in science where you have to work with someone else’s code, because it would be too time-consuming to develop your code from scratch. This always feels weird, like wearing someone else’s clothes, but eventually as you work with it, it starts to feel like your own.
H5.1. Read and run the code developed by Wyatt for H4. Comment on what’s clear or unclear of what he is doing, or what you would do differently.
H5.2. Run Wyatt’s code to solve the problem in H4. Paste the final graph you get for resolution vs m/z. Redo the graph for 3 time step sizes (1e-8, 3e-9, 1e-9, and smaller if need be) and for 2000 ions (So 3 curves, on top of each other in a good graph).
H5.3. Hunting for points! Find any places where Wyatt’s code does not adhere to the updated coding conventions for the course. You get +1 for each instance you find (but e.g. a given variable name can only count once etc). You also get -0.25 for each one you misidentified.If any of the conventions don’t make sense to you, pls comment directly on that document (add a comment from the menu at the specific location). This may seem tedious or unimportant, but as I tried to explain in class, it ends up being very important, especially when collaborating with others in your group or elsewhere, or when distributing your code publicly etc.
H5.4. (a) For people who produced a graph of resolution vs. m/z in H4. Hunting for bugs! If your own result on the HW looked different than Wyatt’s, investigate why. His solution seemed reasonable but may not be completely correct. Try to get the two to agree, finding bugs on your code, or in Wyatt’s or both. +10 points for each bug of Wyatt’s you find that cause a significant change in the results. If your solution agreed with Wyatt’s plot them on top of each other and you are done.
(b) For people who didn’t get a graph of resolution vs m/z. Finalize your code in H4. You can look through Wyatt’s solution and adapt it to your code, but NO copy-pasting (because then you don’t learn). Explain what were, in retrospect, the things that were blocking you from completing the solution. This meta-exercise is probably the most important part of the HW for these students.
H5.2. Optimizing TOF design
In this problem, each of you will modify Wyatt’s code to solve a TOFMS design problem. You are trying to maximize resolution at m/z 200. In all cases your goal is a plot of resolution at m/z 200 vs. the parameter you are optimizing, plus a curve of resolution vs m/z for the initial case (your best result from H5.2) with the curve for the optimum case on top.
Keep things simple at the start, e.g. don’t run 100 values of your parameter or 2000 ions. Run 2 values of the parameter with 20 ions etc., till you get the code to work, then you can do more for the final solution.
(a) For Hannah and Olivia: Optimize the size of the extraction region. I.e. solve the same problem as in HW 4, but changing the size of the extraction region, while keeping the total length of the TOF (extraction + drift) as 1.1 m. Note that the time step may need changes.
(b) For Sara and Anna: Optimize the size of the TOF. Keeping the extraction region of the same size, find the size of the drift region that gives the best resolution (between 10 cm and 3 m).
(c) For Margarita and Will: Optimize the extraction voltage. Keeping everything else the same, optimize the voltage across the extraction region between 0 and 10 kV. Note that TOF will vary (since qV = ½ m v2), so you should adjust the size of the time step accordingly.
(d) For Melissa and Dongwook: Optimize the extraction delay. Implement delayed extraction in the code, by adding one more grid at 5 cm from the left plate, which starts also at 1 kV. Implement extraction by pulsing the back plate to 1.3 kV after a certain delay.
(e) For Ya-Chu, Daniel and Jake: Optimize a reflectron. Implement a reflectron, as a region 20 cm long at the end of the drift tube (so the field free region is now only 0.8 m), with a voltage VR on the back plate. (Note that VR > VSource or the ions would hit the back plate). Optimize VR for max resolution. Assume that the detector is on the same plane as the back plate of the extraction region, but that ALL the flight after the reflectron is field-free.
(f) BONUS points. Optimize your part for m/z 18, 200, and 1000, and show all the curves (resol. Vs parameter, and resolution vs m/z) on top of each other. Does it make sense physically that it varies the way it does. Add the word “BONUS” to the subject line of your email, if you did this.
(f) Super BONUS points. Optimize more than one of the above together. Show the original, individual, and combined plot of resolution vs. m/z. Hint: I suspect (but don’t know for sure) that (c) may lead to a large improvement, but pay attention to the time step. Add the word “BONUS” to the subject line of your email, if you did this.
Homework J5
Assigned Tue 23-Oct-2018; Par 1 Due: Thu 25-Oct-2018 (by email to chem5181@gmail.com by 9 am). Part 2 due Tue 30-Oct-2018 by 9 am
Part 1
5.1. Redo the reading from HW J4, if needed, especially the parts on resolution and TOFMS from the Hoffmann book, which includes a discussion of delayed extraction (including the figure I showed today in class). Comment briefly on the reading per instructions.
5.2. TOFMS. The goal of the HW is to plot the key variables of the motion of an H2O+ ion as a function of position in a simple TOFMS.
With S = 10 cm; D = 1 m; V = 103 Volts
5.2.1. Write the equations for kinetic and potential energy of the ion as a function of the X position. Do not substitute any numbers, use symbols only. This is the “energies” solution methods, easier, but more limited in the problems that it can solve.
5.2.2. Write Newton’s law, and integrate the equations to show the acceleration, speed, and position as a function of time. This is the “forces” method, more complex, but can solve any problem.
5.2.3. Solve the equations from the energies method to obtain an equation(s) for the speed and position of the ion as a function of the X position and (separately, if needed) as a function of time.
5.2.4. Now that we have the equations, let’s plot them in Igor.
5.2.5. Write the equations into your function that allow you to calculate the values at each position.
5.2.6. Plot KE, PE, and v vs X in a single plot. (Note that v will need to be in the right axis). Verify that the results make sense (or at least that they are not obviously wrong).
5.2.7. Format the plot properly, including a Legend (just type “Legend” in the command line), different colors or symbols for each variable, clear axis labels with units, and anything else that’s needed for e.g. a colleague in your research group to understand the plot.
5.2.8. Redo the same plots but vs. time instead of X position, and also showing the position and acceleration of the ion.
5.2.9. Modify your function so that it can take an initial speed of an ion as an input parameter (in m/s), and so it returns the TOF of that ion in s. The function prototype should be:
Function MasterTOFCalc(InitVel_ms)
5.2.10. Write a few sentences reflecting on what were the most important problems you had, and whether they were conceptual, code-structure, code-bookkeeping, or other types.
Part 2: Simulating delayed extraction in a TOFMS for a source of “hot” ions (due Tue 30-Oct, but start as soon as you can)
5.3. Now we will adapt the master function (MasterTOFCalc), and turn it into a subroutine to simulate (and later, optimize) a TOF delayed extraction system. Modify the code to add a second segment in the source, where we can do delayed extraction.
The possible parameters in this case include:
So this is a 13-dimensional problem in general. In this HW we will just investigate the impact of ts, and if that goes reasonably well we may explore a few more parameters later. Use m/z = 18, V1 = 500 V, Vq = 500 V, the initial ion distributions discussed below, and S1 = S2 = 5 cm and D = 1 m. Note that this is the same problem from Part 1, if we don’t do delayed extraction (i.e. if ts = 0).
Check that this part of the code works. One way is to just solve the case in which you run with ts = 0, and see that you get the same solution as Part 1. Then slowly increase ts , and make sure that the trend in TOF makes sense. Are there other quick ways to check that the trends in our solution make sense? (Finding such ways is an extremely important skill in practice). Show any graphs and discuss how you reach your conclusions.
5.4. Now we are ready to calculate the resolution. As we said in class, the resolution is not a property of just the mass spectrometer, but also of “source conditions” meaning the distribution of initial positions and velocities of the ions of interest. We are going to simulate a “hot source” such as in laser ablation sources (e.g. MALDI). The ions will have an initial velocity that has a Gaussian distribution with an average of 1000 m/s and a std dev of 250 m/s. They all start at X = 0.
Write a function called CalcResol() that calls the modified master function many times for many ions with randomly generated initial speeds (see gnoise in Igor), and then makes an (optional) plot of the probability distribution of the ion TOF. Show that plot in your solution (see the Histogram command in Igor and its options). The function should also return the value of the resolution.
In terms of calculating the resolution, applying the definition that we discussed in class of finding the peak, going down to ½ of the Y value of the peak on both sides, and finding the width, can be quite difficult to program and get to work for noisy conditions (which may be the case here). As a shortcut, we will use the fact that FWHM ~ 2.335 * std_dev for a Gaussian (Ref in Wikipedia.). You can find std_dev as sqrt of the Variance, using the pre-programmed Variance function in Igor.
5.5. Simple resolution optimization. We are going to tune (optimize) the extraction delay. Make a function TuneExtDelay() that calls CalcResol() with multiple values of the extraction delay, and makes a plot of resolution vs. extraction delay. What is the optimum extraction delay and resolution?
5.6. Can we distinguish H2O+ from CH4+ with the optimum resolution we get? (Hint: see resources in MS Cheat Sheet)
HW6 will build upon HW5 to explore other properties, so try hard to make this work. But if you are spending many hours and not making much progress, ask for help via Piazza. And don’t spend so much time on this HW that you can’t get to your other responsibilities (or I will hear about it from your advisors etc. ;-)
HW8: Tuning a TOFMS with delayed extraction
Assigned Thu 21-Sep-2017; Due: Tue 3-Oct-2017 (extended) (by email to chem5181@gmail.com by 9 am)
8.0. Reading: same as in HW7, including the suggested one if you can.
8.1. We are going to tune the TOFMS with delayed extraction. We will first study what is probably the most important problem, which is whether the optimum tuning depends on m/z. Since all the ions have to use the same delay, we may need to find a compromise, depending on what we are interested on learning from the spectra.
We will assume that the ions have an initial speed of 1000 m/s with a std dev. of 1000 m/s, independent of m/z. This is a good approximation for some ion sources such as MALDI. (Note that if some values are < 0, we will just take the absolute value). We will keep all the other parameters at the default values in HW6 for now.
The goal is to plot the resolution vs. delay curves for useful ranges for m/z 18, 100, 250, and 1000 (you can use more m/z if you can afford the run time). Plot a graph of the optimum delay vs m/z. Does the optimum delay depend on m/z? Why or why not? What delay would you choose if we were equally interested in the whole spectrum?
To investigate the “why” question, you will want to look at intermediate levels of the problem, as I discussed in class. The code will be structured as:
TuneDelayMultipleIons() → TuneDelay1mz() → CalcResol()* → MasterTOFCalc()
At each level you can plot a simple cases or a couple of cases and compare what’s going on, in order to understand the results. Note that for * you can make a histogram to visualize the results, even though we don’t use the histogram to calculate the numerical value of the resolution.
You will start with the code provided here as pxp (here as bare IPF), where Euler’s method has been replaced by IntegrateODE (mostly by my postdoc Zhe Peng who uses IntegrateODE all the time in his research). Note that you will have to modify the code to solve the problems.
Make this change to the code. Where it says in CalcResol():
wInitSpeed[iIon] = max(0, wInitSpeed[iIon]) // avoid negative velocities
Replace it with:
wInitSpeed[iIon] = abs(wInitSpeed[iIon]) // avoid negative velocities
Practical notes: Remember to test your code with small numbers for all the relevant parameters, so that your code runs quickly and you can iterate and make sure everything is good. Then at the end you can do a run with more points for the final result. The code will write how long each run is taking, so that way you can estimate how many runs you can afford. Also note that NUMSTEPS * TIMESTEP_S needs to be larger than the largest TOF of any ion you are calculating (otherwise the calculation will stop before the ion reaches the detector). TIMESTEP_S needs to be small enough so that it is smaller than the differences in TOF for the group of ions of interest for a particular CalcResol() run, which you can estimate as TOF / (2 * Resol * 10).
8.2 Repeat 8.1, but for an ion source in which all ions have the same temperature (an approximation of e.g. electron impact or chemical ionization), so that the random speed decreases as as 1/sqrt(m/z). Assume that ions of m/z 250 have an initial speed of 1000 m/s with a std dev. of 1000 m/s, and scale both parameters for the other ions from those values.
Make the same plots as in 8.1. Do you get the same results as in 8.1? Why or why not?
8.3. Let’s investigate some of the other parameters, as follows:
In all cases choose a reasonable range that seems physically possible, and that is centered on the default parameters.
Suggested “tricks” to understand the results. If you want to think about whether a trend makes sense, there are two approaches that should be useful:
But overall, if a result is "opaque" to you (you can't decide whether is right or wrong or why it may be that way), go one or two levels down in the problem. E.g. if you have a plot of optimum delay vs m/z, it may be hard to interpret. But if you simulate a two values of the delay for 4 ions (2 m/z's x 2 speeds) things may become clearer. And this would only take 8 runs of the TOF function, as opposed to very expensive runs of the higher level functions.
HW6. Assigned Thu 25-Sep-2014; Due Tue 30-Sep-2014
HW6. Calculating and tuning the resolution of a linear TOF
This HW is due only electronically as an emailed IPF, with a single master function for every part of the problem, that does everything that’s needed and works when pasted into the procedure window of a new Igor experiment.
(a) Let’s estimate the resolution of the instrument in linear TOF mode. Use your function from the Linear TOF from HW5. Make sure that the time step is small enough, but not too small.
A key problem that limits the MS resolution in MALDI experiments is that there is a wide distribution of initial ion velocities in the X-direction. We will assume (simplifying the information from this paper by Juhasz et al., JASMS, 1997) that this distribution of velocities for Angiotensin I is a normal distribution with a mean of 700 m/s and a standard deviation of 300 m/s. How does that velocity distribution compare with the thermal velocity of Angiotensin I at room temperature? What would be the temperature at which the average thermal velocity is the same as the average velocity in this case? (Hint: this is related to why sometimes people talk loosely of “hot ions” in MALDI and related techniques).
To estimate the resolution, we will simulate the peak shape of the mass spectrum of Angiotensin I, by means of a “Montecarlo simulation” of at least 1000 ions in Igor (but start your program with 10 or 20 ions until you know it is working). Each ion will have a random initial velocity, generated according to the above distribution. Do this with a function of (approximate) prototype:
Function EstimateTOFResol (m_amu, z_e, v0_avg_ms, v0_stddev_ms)
that returns the estimated resolution of the spectrometer for those settings.
This function should call for each ion a modified version of your CalcTOFIonPosvsTime_HW5(..., vx_init), in which you pass an additional initial parameter, the initial velocity of that particular ion in the x direction.
Each ion will have a specific time-of-flight, which will vary depending on the random initial velocity. In order to determine the resolution, at the end of the calculation you will need to plot a histogram of the 1000 times, see p. III-128 to III-136 of the Igor Manual for how to make histograms in Igor. Note that your code needs to be smart about the parameters of the histogram so that you have enough histogram horizontal resolution to estimate the TOFMS resolution. It is a good idea to make a wave with 20 numbers and do histograms manually until you understand that feature.
What is the resolution obtained for the angiontensin ions in this case?
(b) Tune the instrument to get the best resolution by changing V2. I.e. write a function that varies V2 and plots the resolution obtained for each of the 3 ions, and choose the “best” value.
(c) Bonus feature: allow yourself to change any of the other parameters of the spectrometer, is there something else you can do to get better resolution for this problem?
Homework Assignment #7: assigned Thu 3-Oct-2013, due Thu 10-Oct-2013
In this HW we will use the TOF simulation of HW6d, using IntegrateODE only (bye bye Euler’s method!), to investigate the delayed extraction technique. Delayed extraction is a technique to increase the resolution of a TOFMS. As we discussed in class the resolution of the TOFMS in HW6 is infinite, i.e. all ions of the same mass arrive at exactly the same time. In order for us to be able to study delayed extraction, we need to introduce an imperfection in the initial position or velocity distribution of the ions. We will do this on 7a. Then in 7b we will “measure” the resolution of the TOFMS with that initial imperfection. 7c is an optional part (bonus points), that introduces an alternative way to do the same measurement as in 7b. In 7d we will use delayed extraction to optimize the instrument resolution, and we will interpret the results in 7e. 7f is also optional and compares our results directly with those in the instrument manual.
Note: you need to modify your routine from HW6d in this problem, so you need to get that one to work. If it is still not working for you, please seek help with your fellow students, Piazza, or me. However you do not need HW6e-f, and if you haven’t done those parts yet, you should work on HW7 first, and then come back to those when HW7 is done. Bonus sections can be shown on 10-Oct, or also on 17-Oct (first come first serve).
(c) (bonus section, not required). As an alternative solution for (b), simulate the trajectories of 10 ions that represent the probability-weighed center of the 10 deciles of this lognormal distribution (i.e. the ions that delimit probabilities of 5%, 15% of the initial velocity distribution...). Estimate the spectrometer resolution from these simulations. How does it compare with what you obtained under (e)? Can you think of a cleverer (computationally cheaper) way to get to the solution using a similar method for this case?
(d) Effect of delayed extraction. As discussed in class, this is a strategy used to increase the resolution of the TOFMS when the distribution of initial ion velocities is wide as in this case. For this instrument this is done by setting the variable-voltage grid to 20 kV for a certain time period (extraction delay), and then lowering it to its final value. This should be done with a function of prototype:
Function CalcPlotResolvsExtractDelay(ExtDelayLow_s, ExtDelayHigh_s, [other param as needed])
and the function should return the optimum extraction delay and resolution. (Trick: a function can only return one number, but you can return two values by returning a complex number).
Also plot a few histograms for a few different values of your extraction delay. Paste the histograms on your notebook, or for bonus points, add them to the same plot as your resolution vs delay, using the technique in the section “Creating Stacked Plots” in p. II-12 of the Igor Manual.
(e) Compare your results to those in the manual for this instrument, see p. E-2 of the Voyager Users Guide. Are the results similar? Can you speculate about the reasons of any differences?
(f) Bonus feature: in order to explore the solution to part (e) further, write a function with prototype:
Function CalcPlotOptDelayvsVVGridVoltage(VVG_low_V, VVG_high_V, [others])
which makes a plot similar that in p E-2 of the manual, i.e. plots the optimum delay vs. the VVG voltage. To add the data from the manual on top of your data (for m/z = 1000 and 2000) you can use IgorThief (a useful trick for your future research!).
(g) Even more bonus: if you have gotten to here, you now have a simulation working that can be used for many other experiments. For example, you could explore whether the simulation results depend on m/z, and whether this dependence is similar to that in the instrument manual. Or you could explore how the results change if you change the initial imperfection of the ions. Or what resolution you would get if your upstairs neighbor lets you your flightube continue through a hole in the floor to 8 m length. Or something else that you are curious about.
Problem 2. – HW Fall’06 F19
The figure below represents the simplified stability diagram of a quadrupole for three ions of masses m1, m2, and m3 (singly charged) vs. U and V. Explain which ions will / will not be observed as the values of U and V are stepped from point A to B etc. up to point G in the figure. (Note that there are two G’s in the figure, do both as Gleft and Gright)
(b) Draw the stability diagram in a vs q coordinates. Indicate the location of point C and point E on that diagram (for the m/z discussed in part a)
Question 2: Quadrupoles. – HW Fall’07
We have discussed how a quadrupole is a m/z filter that transmits a range of m/z values, which depends on values of U and V. In this problem, we will develop plots in Igor to estimate the transmitted m/z range.
(a) To approximate the stability diagram, draw a triangle with boundaries α= 0.46q – 0.09 and α= -1.15q+1.035 (red lines).
We will use the quadrupole described in the paper by Steel and Henchman having r0 = 0.26 cm and ω =14.2 x 106 rad/s. Likewise, we will assume singly charged ions so the equations in this figure apply.
(b) The scan line shown above was achieved with U = 82 V and Vo = 497 V. Plot this scan line on the same graph as your stability diagram for m = 0 to 2000 u and color it blue. (Trick: create a unit resolution m/z wave as above)
(c) Add similar lines for U = 82 V, Vo = 700 V (color green) and U = 82 V, Vo = 1100 V (color red).
(d) Add a legend identifying lines by their U/V ratios.
(e) Use Igors cursor functions to determine where each of these scan lines intersect the stability boundaries. Note that the point number of the cursor is the m/z of each point. Report the ranges of m/z that are transmitted for each scan line.
Quadrupole Trajectory Simulations
In this problem you will implement a simulation of ion trajectories for a simple quadrupole mass filter, use it to understand the physics of ion filtering, and also use it to explain some of the quadrupole properties we have discussed in class. All the simulations are based on the paper distributed in class, Steel and Henchman, J. Chem. Ed., 75(8): 1049-1054. This is an excellent paper that you should read in its entirety before you try to implement the simulations. All the parameters of the quadrupole will be the same as in that paper, e.g. in caption of Figure 3.
(a) Write the equations of motion along the 3 axes on your Igor notebook, then discretize them using Euler’s method (leaving the forces as qEx etc.) and solve for the unknowns, so that given all the initial conditions at t = 0, you could calculate all parameters describing the motion of the ions forward in time, if given E = (Ex, Ey, Ez). (I will use bold for vectors as is commonly done to avoid drawing arrows over them, which is difficult in word-processing programs). Note again that these equations are general for any mass spectrometer that uses only electric fields. What changes between spectrometer types (quad, electric sector, Orbitrap, time-of-flight) is the arrangement of the ion source, fields, and detector in space and time.
(b) Now rewrite (on the notebook) the algebraic equations of the numerical solution using the 4th order Runge-Kutta method (“RK4”). See a numerical analysis textbook, or e.g. http://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods
(c) The electric potential field at any point is given by equation (7) in the paper. Is the potential a scalar or a vector? Calculate E from the expression in equation (7). Be explicit about how you do it and be careful with signs.
(d) Substitute the expressions for E in the equations you derived in part (a) and write the resulting equations (still on the notebook).
(e) Implement an Igor Function to plot the electric potential vs X and Y, which changes in time, as shown in class. Hint: you should define a 2D-matrix to contain the potential values, and 2 waves of X and Y values at which to plot the potentials. Hint2: you will then need to make an “image plot” to show this potential. Note that Igor requires that the waves used for the X and Y axes should have one more point than the corresponding matrix dimension (i.e. they need to be the “edges” of the discretized chunks of e.g. X-axis, rather than the centers of those bins).
(f) Implement an Igor Function to calculate the trajectory of an ion in time, and animate it along the way as shown in class. Your function should be able to use either the Euler or RK4 methods, and be executable in the command line in the form:
Calc_Quad_Traject(0.0007, 0.0007, 199, 30, 300, 1)
Where x0 = y0 = 0.0007 m, are the initial positions of the ion when entering the quadrupole, m/z = 199 Th, U = 30 volts, V = 300 volts (which can be substituted by other values that you decide to type in the command line when running the function). The last digit controls whether the Euler (1) or RK4 (2) method is used.
Verify that this function works by repeating the simulations in Fig 3D in the paper. Plot the ion trajectories in the same format as Fig 3D and the slide showing the simulation in the quadrupole lecture. I.e. you also need to include two Y vs X plots: one with just the trajectory, and another one with the electric field and the current ion position. You may find the following command useful:
ModifyGraph axisEnab(bottom)={0,0.45} // Can also be done for other axes
If you plot both graphs vs. different bottom axes and use the above command, you can have the four plots in the same graph window in Igor, which is useful to reduce clutter.
(g) Test the grid-independence of the Euler and RK4 methods rigorously. For this create a plot of the final X and Y positions of an ion when it exits the quadrupole under the conditions of Fig 3D vs. the log of the time-step for each method. For our purposes a deviation in the final positions (X and Y) of less than 1% in each direction should be sufficient. If you chose a different value, pls justify it.
Is it sufficient to test grid-independence with only the case in Fig 3D? Or do you need to run more cases of different ions and voltages? Do we need to test the grid-independence of the simulations with respect to the discretization of the potential matrix in X and Y? Why or why not?
(h) Will an ion with m = 398 amu and q = 2e follow the same trajectory than the nominal ion in the paper (m = 199 and q = 1e)? Why or why not (based on the equations)? Verify your answer with the function, and paste the trajectories in your notebook.
(i) A student recalls that we said in class that “an RF-only quadrupole transmits all ions at all m/z.” Is this true, based on your simulation, or was this a mistake by the sleep-deprived professor or student? I.e., what is the range of m/z’s which can be transmitted with your quadrupole? Note that your RF and DC power supplies are limited to 1000 V, and that for this mode of operation you can only select a single value of U and V0. Use the same initial ion position as above.
(j) What is the resolution of the quadrupole, when operated with U = 70 and V0 = 480, with the intention of transmitting m/z = 199? What would be the resolution that we would need for “unit mass resolution” operation?
(k) Calculate and plot the stability diagram for m/z 199 in terms of and q. Hint: as before, you will need to declare and plot a 2D matrix which contains e.g. 0 if the ion is unstable on the X, -1 if on the Y, and 1 if stable. You will then need to make an image plot with the same trick as above.
Does your stability diagram look the same as the ones in the textbook and the classroom slides? Please investigate any deviations with respect to those.
Please follow the programming style conventions posted on the web (I’ll give 5 bonus pts just for following those strictly – they will save you a lot of time in the long run).
Question 5 (25 pts) – Qq-ToF Mass Analyzer (Final Fall’10, Midterm Fall’06)
You want to operate this EI/CI Qq-ToF instrument as both (1) a stand-alone ToF-MS; (2) for parent-ion scan MS/MS.
Write your answers below (use additional pages if needed)
a. Suggest pressures of operation for each region (CI, EI, Q1, Q2, and ToF) for each of modes 1 and 2, and explain why those pressures are needed. Make assumptions as needed, and based on your experience in labs and information given in lectures. Write your answers in the table below.
Region | Pressure for Mode 1 | Reason(s) for P1 | Pressure for Mode 2 | Reason(s) for P2 |
CI |
|
|
|
|
EI |
|
|
|
|
Q1 |
|
|
|
|
Q2 |
|
|
|
|
ToF |
|
|
|
|
Mark the stability diagrams below with the ranges of values of a and q for Q1 and Q2 for modes 1 & 2
c. Mark the blank graphs below with the time traces of U and V for each Q and each mode of operation.
HW 11 for Thu 31-Oct-2013
(c) Explain why the stability diagram that I made with the simulation doesn’t look the same as the ones in the book (i.e. it has a “dent” on the lower right). You need to show some simulations that explain the effect, as well as understand the cause. This could be a limitation of the mathematical model, an imperfection of the numerical simulation in implementing the solution of the mathematical model (e.g. time step is too large or too small, or the grid of U and V values is too coarse...), the value of one or several parameters etc. Try to be clever about finding the solution with a low number of simulations.
(d) The quadrupole RF supply fails, and a colleague tells you she has one that can provide the same voltage but only at 20 kHz. Simulate the trajectory of an ion at the default RF frequency and at 20 kHz and compare the trajectories. Will that work with the default parameters? Why or why not? You just need to get a couple more spectra to finish your PhD thesis and your advisor doesn’t have the money to fix the RF supply: can you improve the performance of the quadrupole sufficiently to take the spectra you need and graduate?
2019
Homework
H8.2. Download the code for the ion trap simulation that I showed in class from this link. Briefly explain what the code is doing in different places. Run variants of the stable example simulation (Plot_RZ_Motion_Dynamic(200, 0, 500, 1e-3, 1e-3, 1000,1000,10)) where:
Show and explain the key modifications of the code, as well as your results. Submit a PXP with a notebook on top, where you make clear how to run the modified simulation that shows the effect. Note that the modifications of the code will be quite small, only a few lines of code. But think carefully about what these should be. Discussing options e.g. in Piazza is fine.
Don’t worry about the limited accuracy of Euler’s method. This could be improved upon, and should not affect what you can do).
HW 7 for MS Course:
Assigned Tue 15-Oct-2019; Due Thu 17-Oct-2019 (by email to chem5181@gmail.com by 9:30 am)
Homework J8
Assigned Tue 8-Nov-2018; due Thu 4-Dec-2018 (by email to chem5181@gmail.com by 9 am)
8.2. Ion Trap Simulations
Download the IPF for the ion trap simulation shown in class, from this link in the resources page in Piazza. Make sure to follow the graph specifications above for all your graphs. Try to explain all the trends that appear.
8.2.1. Look through the code in the procedure window, and explain what it does, copying key pieces of the code in your response as needed, followed by an explanation of what they are doing. Run a few cases such as the ones below (which are the ones I ran in class).
- Stable: Plot_RZ_Motion_Dynamic(200, 0, 500, 1e-3, 1e-3, 1000,1000,10)
- Unstable: Plot_RZ_Motion_Dynamic(150, 0, 500, 1e-3, 1e-3, 1000,1000,5)
8.2.2. Write a function that makes a “stability diagram” with the default parameters given. We will keep U = 0, so the diagram is just an X-Y plot of the values of stability (1 = stable, 0 = unstable) vs. qz. You will want to choose some values of e.g. m/z so that you span the relevant range of qz. As before, start with very few simulations (e.g. a few m/z), you can always do longer simulations and get better graphs when the problem is solved. Use the default values for the initial R & Z positions and speeds in the function calls above. Show your function and graphs, and explain if the results make sense.
8.2.3. Plot the stability diagram between qz = 0.75 and 0.95 (with at least 60 points in that range) while decreasing the time step of the simulations by a factor of 3. Plot the results for each time step on top of each other in the same graph, until no further change is detected. What time step is needed to study this problem accurately? (Use that time step for later parts of the problem, but note that you can develop your code with larger time steps to save time, and then do only the final simulations with the small time step)
8.2.4. Plot the stability diagram on the same region as in 10.2.2, but changing one initial parameter as follows. For each parameter, make both small and large changes, depending on the results. Explain your results, both from the point of view of the simulation, as well as from the point of view of the fundamental theory discussed in class and in the reading.
Person | Sensitivity simulation |
Barnhill, Cody | Change initial R position |
Chen, Zhenhao | Change initial Z position |
Draper, Anthony | Change initial R speed |
Horstman, Jonathan | Change initial Z speed |
Jensen, Andrew | Change RF frequency |
Lee, Chris | Change dimensions of the trap |
Lei, Zepeng | Change RF frequency |
Liu, Zeyu | Change initial Z speed |
Mackey, Kyle | Change dimensions of the trap |
Schueneman, Mindy | Change initial R position |
8.2.5. BONUS section, not required but can be used to increase the grade > 100 (and potentially compensate for lost points in past HW or midterm). Implement “resonant ejection”, by adding another voltage on the z-direction only, with an AC frequency (amplitude) of ¼ (½ - or smaller) of the RF value. Compare the motion of ions with and without the AC voltage on the same plots. Show that you can eject an ion of the right mass when qz = 0.5, while the ions of lower and higher masses are still stable.
HW9 for MW Course
Assigned Tue 29-Oct-2019; Due Thu 31-Oct-2019 (by email to chem5181@gmail.com by 9:30 am)
Reading
R9.0 Read the items on R8.3, if you didn’t have time before HW8
R9.1 (Optional) Read this resource about FTICR, which was pointed out by one of your fellow studies
R9.2. (Optional) Read this resource about Orbitrap
R9.3. Watch this video about the math of the Fourier Transform
Homework
So while I don’t expect you to become experts on the hard math of the Fourier Transform, using it and having a sense of what it does can be exceedingly useful for a scientist. This HW is intended to provide you with that sense.
H9.1. (a) Download this experiment, and explain what the code is doing. Look up the Igor manual as needed. (Note that if your right click on a function, you get an option to go straight to the help for it)
(b) Run the function with amplitude1 = 10 and AngFreq = 10, and all the other parameters at zero. Show the plots, and explain what the plots mean. Do the X values and Y values shown for the frequency plot make sense to you?
(c) Change the angular frequency. How do both plots change, and does it make sense to you?
(d) Back to the parameters for (b), but now add amplitude2 starting with 1 then 5 then 10 then 15 then 100. How do BOTH plots change, and why?
(e) Back to the parameters for (b), but now increase the noise, again start with 1 then 5… How high does the noise have to get for you to no longer see a signal in time? And what about in frequency space? (Hint: this is a reason why FT is so popular in science and engineering!)
(f) What is the “resolution” of the FFT result in frequency space? Is it affected by the amount of noise you add? Show the plots that illustrate this.
HW8. Assigned Fri 17-Oct-2014, due Tue 21-Oct-2014
HW8.1. Simulation of the FTICR motion and FTICR (and Orbitrap) detection. Assume that you have a positive ion of m/z 500 moving with a kinetic energy of 20 eV perpendicular to a magnetic field of 20 T at the FTICR of the National High Magnetic Field Lab in Florida.
Determine the resolution of the spectrometer. Note that it may improve as you use more rotation cycles and more points per cycle, but it is most important that you get one value first, and then you can work on improving it.
Assume that in the normal running of an analysis, there are two different m/z of interest. One of the masses focuses on the detector at exactly ½ of the magnetic field as the other in a sector instrument. One day the scanning circuitry of the magnet breaks down. The operator sets the magnetic field at a fixed value such that the lower of the two masses is detected. If the accelerating voltage is 2000 V for the lower m/z, to what voltage should it be changed to enable detection of the higher of the two m/z with the same magnetic field?
Question 2 (15 pts)- (Final Fall’10)
A sector mass spectrometer of radius 30 cm and maximum field strength 0.8 Tesla is normally operated at an accelerating voltage of 8000 V. What is its mass range for singly charged ions? What accelerating potential should be used to reach an upper mass of 6000 Da?
Version in HW – Fall’03
2) A sector mass spectrometer of radius 45 cm, 75 degree angle, and maximum field strength 1.2 Tesla is normally operated at an accelerating voltage of 9500 V. What is its mass range for singly charged ions? What accelerating potential should be used to reach an upper m/z of 9000? If you had an electric, rather than magnetic sector mass spectrometer, what electric field intensity would be needed to reach m/z 9000 with the same geometry, and if the electric plates in the analyzer were separated by 5 cm?
Homework Assignment #4: assigned Tue 10-Sep-2013, due Thu 12-Sep-2014
HW 4.1: Electric Sector Mass Spectrometer, Part I
Consider the following simple mass electric sector mass spectrometer, as drawn below:
- Two parallel plates, length 0.5 m, separated by 0.3 m. The maximum voltage that can be applied across the plates will be 10kV.
- Ions are inserted on the left side at 90% of the distance between the plates. The ion's initial kinetic energy is 10 eV in the x-direction and 0 eV in the y-direction. A detector of width 1 cm is placed at the right side at 10% of the distance between the plates.
- In this problem we will ignore edge effects of the electric field at the edges of the plates, i.e. the field will be assumed to always be perpendicular to the plates (or the equipotential lines will be assumed to always be parallel to the plates).
- Save the functions for each step, so that you can execute any of the steps in class separately. It is ok (in fact recommended) for the latter functions to call the earlier ones.
- Paste results (graphs specially) and comments in an Igor Notebook (under Windows Menu → New → Notebook)
1) Write a function that draws the plates, injection plot, and detector in Igor as a plot (i.e. displaying a wave against another, NOT as a drawing using the “Drawing Tools” in Igor). Make the aspect ratio of the plot approximately to scale in the x- and y- direction.
2) Write a function to plot the electric field equipotential lines, and draw a single arrow to represent the electric field vector (see below for drawing arrows, or you can do it using a “Tag” that we discussed earlier in class.
3) Assume that the plates are aligned so that the electric field is in the same direction as gravity. Can gravitational forces be neglected for this problem, or must they be included? Discuss in your notebook, and include appropriate equations.
4) You will now calculate the trajectories (x, y) of ions that are inserted into the electric field.
4.1) Write in the notebook the equation(s) of motion for an ion of mass m and z elementary charge units that is introduced between the plates at the injection point. No need for fancy equation formatting, just make them understandable.
4.2) Discretize the equations in your notebook using Euler’s method: http://en.wikipedia.org/wiki/Euler_method (This web page is obviously part of the reading for Thu, also listed on the course Wiki page)
4.3) Calculate and plot the trajectories of 3 ions of m/z 100, 200, and -100 using Euler’s method. Add a legend so that it is clear which trajectory corresponds to which ion.
4.4) Animate the trajectories in your screen. I.e. all ions enter through the slot at the same time, and their position evolves in time according to the equations of motion.
Igor trick: to do an animation, just create for each ion two 1-point waves that contain the X and Y positions at a given point in time. Then step thru the calculated positions at regular intervals with the following commands:
DoUpdate
Sleep /T 4
(You can change the “4” to other numbers >= 1, to change the speed of the animation)
We will build on this problem for the next several HWs, so don’t hesitate to ask questions or find the help you need!
Tip: Making Arrows in Igor
Arrows are a form of trace markers in Igor. Each point in a wave can have an arrow. The tail of the arrow is located at the plotted point of the wave.
To create arrows, you need a two-dimensional matrix that describes the arrow length and angle:
Make/N=(10 , 2) arrowWave // make a wave with 10 rows and 2 columns.
// The number of rows in the arrowWave should be the
// same as the number of points in the wave you’re plotting.
The 0th column of the arrowWave describes the arrow length in image points (minimum = 4 points). The 1th column of the arrowWave gives the arrow angle (in radians, 0 = horizontal pointing right).
You can fill the 0 column with the same value by
arrowWave[][0] = 10 // leaving the first [] empty implies “all” rows
=============================================
Homework Assignment #5: assigned Tue 17-Sep-2013
Question 4: Simplified Electric Sector Mass Spectrometer
Consider the following simple mass selector:
· Two parallel plates, length 0.5 m, separated by 0.3 m. The maximum voltage across the plates will be 10kV.
· Ions are inserted at the left side at 90% of the distance between the plates. The ion's initial velocity will be 5x104 m/s in the x-direction and 0 m/s in the y-direction. A detector of width 0.05 m is placed at the right side at 10% of the distance between the plates.
· In this problem we will ignore edge effects of the electric field at the edges of the plates, i.e. the field will be assumed to always be perpendicular to the plates (or the equipotential lines will be assumed to always be parallel to the plates).
1. Make a plot of the plates and the electric field between the plates (assume the high voltage is on the upper plate). (See note at the end for how to make arrows.) Paste the plot in your Notebook.
a. Make a "good" plot. Consider the following points:
· Include axis labels (with units).
· Make the aspect ratio of the plot approximately to scale in the x- and y- direction (i.e., for this plot, the y-axis certainly shouldn't be longer than the x-axis!).
· Make the plate color distinct from the axis colors (make the more important one the darker color).
2. Assume that the plates are aligned so that the electric field is in the same direction as gravity. Can gravitational forces be neglected for this problem, or must they be included? Make your discussion in your notebook, and include appropriate equations.
3. You will now calculate the trajectories (x, y) of ions that are inserted into the electric field.
a. Draw a force diagram for an ion between the plates and paste it in your notebook. You can draw it in Powerpoint (select and copy all objects then paste in the notebook) or you can type 'display" in the Igor command line, then type ctrl+t in the graph and use the tools to draw the graph (note that you must type ctrl+t to close the tools or press the top tool button before you can copy the graph).
b. Write (in the notebook) the equations of motion (acceleration, velocity, position) for the x- and y-directions. These can be in the form "da_x/dt = ...".
c. Write an Igor function that will calculate the x- and y- position of an ion inserted into the electric field.
i. The function should take arguments for the following:
· The dimensions of the separated plates
· The potential on each plate
· The initial position and velocity of the ion at the point of insertion
· The mass and charge of the inserted ion
· The time step of the simulation (dt)
ii. The number of points in the waves used should be calculated in the function based on the time for the ion to travel the horizontal distance and dt.
iii. The function should perform numerical integration by Euler's method (acceleration -> velocity -> position).
4. Determine an appropriate dt for your simulations. You'll be doing a "grid independence test" (i.e., showing that your solution doesn't depend on your time step). Run your function for a singly-charged (+) ion with m = 100 amu with a fairly coarse time step, choosing some values for the potential on each plate (these values don't matter much for this part of the problem). Then halve dt (this doubles the number of time steps) until the solution changes by less than 1% in the final x and y positions.
a. Plot the x- and y-positions on different bottom (or left) axes and arrange your plot so that the x- and y-positions are displayed next to each other or above and below each other. Put a plot in your notebook which shows that you have achieved grid independence and report the time step that you settle on.
5. Make a "good plot" (similar to part 1) that shows the plates (but not the electric field) and the detector. (You may wish to make a graph macro (ctrl+y, choose a new WindowName, and check the box for New Graph Macro) at this point so that you can easily make this base again.) Add a trace that shows the path of the ion from part 3. Implement the physical constraint of impaction with a plate in the function so that if the ion impacts one of the plates, it stops moving. Put this plot (with the modification showing impaction) in your Notebook.
6. "Tune your mass spectrometer" (i.e., adjust the voltages on the plates) so that your ion hits in the middle of the detector.
7. Using the same voltage difference as in part 6, add traces for different ions that have the same initial velocity to show ions that
a. hit the top and bottom of the detector (report the detection amu range at this voltage in your notebook)
b. impact the bottom plate
c. impact the top plate
d. stops between the plates (doesn't reach the exit but doesn't impact the top or bottom plate)
e. exit through the right (detection) side of the spectrometer, but miss the detector and don't impact a plate
f. exit through the left (injection) side of the spectrometer, but don’t impact a plate
· If any of these trajectories are impossible, explain why in your notebook.
· Make sure that all of your traces can be identified and that your plot has a good legend (including the tuning of the spectrometer). Copy the plot into your notebook.
You will now make new plots to explore the properties of the spectrometer.
8. Make a new plot (use your graph macro) and use the same tuning as in parts 6 & 7. Paste in your notebook a plot that shows the trajectories of a singly-charged (+) ion with m = 100 amu with different initial velocities so that the ion
a. hit the top and bottom of the detector (report the initial velocity range in your notebook)
b. impact the bottom plate
c. impact the top plate
d. stops between the plates (doesn't reach the exit but doesn't impact the top or bottom plate)
e. exit through the right (detector) side of the spectrometer, but miss the detector and don't impact a plate
f. exit through the left (injection) side of the spectrometer, but don’t impact a plate
· If any of these trajectories are impossible, explain why in your notebook.
· Make sure that all of your traces can be identified and that your plot has a good legend (including the tuning of the spectrometer). Copy the plot into your notebook.
9. Based on the equations of motion, will an ion with m = 200 amu and q=2e follow the same trajectory as an ion with m = 100 amu and q = 1e? Discuss in your notebook and include a plot to support your argument.
10. Make a new plot and use the same tuning as in parts 6-8. Paste in your notebook a plot that shows a few ions that enter the spectrometer with the same kinetic energy and a few ions that enter the spectrometer with the same momentum. Discuss in your notebook whether this is a mass-to-charge selector, a kinetic energy selector, or a momentum selector.
Making Arrows
Arrows are a form of trace markers in Igor. Each point in a wave can have an arrow. The tail of the arrow is located at the plotted point of the wave.
To create arrows, you need a two-dimensional matrix that describes the arrow length and angle.
Make/N=(10 , 2) arrowWave // make a wave with 10 rows and 2 columns.
// The number of rows in the arrowWave should be the
// same as the number of points in the wave you’re plotting.
The 0th column of the arrowWave describes the arrow length in image points (minimum = 4 points).
The 1th column of the arrowWave gives the arrow angle (in radians, 0 = horizontal pointing right).
You can fill the 0 column with the same value by
arrowWave[][0] = 10 // leaving the first [] empty implies “all” rows
HW 5: Electric Sector Mass Spectrometer, Part II
In this HW we will build on your code for HW 4 and explore some of the basic performance features of the mass spectrometer. Each step should be a separate Igor function, which can call previous functions.
IMPORTANT: in all HWs, each section should be kept running separately, so don’t overwrite e.g. the code for 5.1 when you work on 5.2. If needed, make a copy of the code and use that for 5.2. When you finish the problem, check that you can still run each part of the code separately. In class I may ask to run e.g. 5.1 and “I overwrote the code later on” doesn’t work.
HW 5.0) If needed, clean up your functions from HW4 so that they work to the specifications above. I.e. you have should have a function such as:
Function CalcIonTraj(mz, EKin0, YPos0)
that produces 3 waves (or a matrix equivalent etc.) containing the values of time (s), XPos (m), YPos (m) for that ion.
This calculation should be for only one ion. If you need to calculate the trajectories of multiple ions, that should be done through multiple calls to CalcIonTraj() from another function.
The animation part of HW 4 should also be done on a separate function from CalcIonTraj().
It is ok to collaborate with others or post entire Functions in Piazza for 5.0. Still each person should type their own code, as this is best for learning. For later parts the regular policy applies: ok to discuss but not collaborate, or post entire functions.
5.1) In the remainder of HW5, we will assume that we have a magnetic sector MS upstream of this electric sector, and that it is selecting ions with a given linear momentum.
Write a function to "Tune your mass spectrometer", i.e. choose the voltages on the plates so that an ion w/ m/z 100 hits in the middle of the detector. Your function should return that voltage difference, and take as an input the momentum selected by the magnetic sector MS upstream (and other parameters as needed).
5.2) Using your best voltage parameters from 5.1 for a momentum of 1.63E-20 kg m s-1, you will test the dependence of the simulation results on the time step that you use for the solution of this problem. This is an inherent issue with numerical solution methods, that to be very accurate they need small time steps. But how small is good enough? A good way to test this is experimentally as we will do here.
Write a function that calls CalcIonTraj() with different time steps (TS) and plots the final YPos of the ion of interest when exiting the MS vs TS. Chose a range of TS spanning at least 100, and going down in logarithmic steps, e.g. 10 ms, 3.3 ms, 1 ms, 0.33 ms and so on. Keep going down in TS until YPos changes by less than 1% for a change of a factor of 3.3 in TS.
5.3) Next we will investigate the resolution of the instrument at m/z 100 as designed. Using the results from previous sections, write a function that estimates the resolution of the mass spectrometer if all the ions have exactly the same momentum. What are the physical reasons why the resolution of the instrument is limited?
5.4) Then write a function to estimate the resolution of the instrument if the ions can have a variation in the entrance YPosition of 0.1 cm. Which physical reason dominates in terms of limiting the resolution of the instrument?
5.5) Next we will simulate the impact of imperfect vacuum in the signal levels, using the time step determined in 5.2. To approximately simulate collisions of ions with neutrals, your function will take as an input the pressure in the mass spectrometer.
Assume that collisions occur randomly in time, and use the PoissonNoise() function as your “random event generator.” E.g. if in a given time step the probability of colliding with a neutral is 1%, then you can call PoissonNoise(0.01). If the output is 1 (or larger), there has been a collision, if it is 0, there has been no collision.
When there is a collision, the Vx and Vy are each perturbed randomly. We will simulate this with the following equations:
Vx_after_coll = Vx_before_coll * (1 - abs(gnoise(0.1))
Vy_after_coll = Vy_before_coll * (1 - abs(gnoise(0.1))
I.e. physically the ion retains most of its speed, but there is a random loss of momentum which is typically 10% of the initial value. Note that the losses of momentum in X and Y are uncorrelated.
Write a function that calculates and plots the trajectories of 10 ions under these conditions (no need for animation although it may be interesting). Show your plots for pressures of 0.01 mbar, 0.001 mbar, 0.0001 mbar, and 0.00001 mbar. If each “zero” in pressure doubles the cost of the instrument, what pressure would you choose for your system?
=====================================
Question 4: Trajectory of an Ion between Parallel Plates
b. Write (in the notebook) the equations of motion (acceleration, velocity, position) for the x- and y-directions. These can be in the form "da_x/dt = ...".
c. Write an Igor function that will calculate the x- and y- position of an ion inserted into the electric field.
i. The function should take arguments for the following:
· The dimensions of the separated plates
· The potential on each plate
· The initial position and velocity of the ion at the point of insertion
· The mass and charge of the inserted ion
· The time step of the simulation (dt)
ii. The number of points in the waves used should be calculated in the function based on the time for the ion to travel the horizontal distance and dt.
iii. The function should perform numerical integration by Euler's method (acceleration -> velocity -> position).
4. Determine an appropriate dt for your simulations. You'll be doing a "grid independence test" (i.e., showing that your solution doesn't depend on your time step). Run your function for a singly-charged (+) ion with m = 100 amu with a fairly coarse time step, choosing some values for the potential on each plate (these values don't matter much for this part of the problem). Then halve dt (this doubles the number of time steps) until the solution changes by less than 1% in the final x and y positions.
a. Plot the x- and y-positions on different bottom (or left) axes and arrange your plot so that the x- and y-positions are displayed next to each other or above and below each other. Put a plot in your notebook which shows that you have achieved grid independence and report the time step that you settle on.
5. Make a "good plot" (similar to part 1) that shows the plates (but not the electric field) and the detector. (You may wish to make a graph macro (ctrl+y, choose a new WindowName, and check the box for New Graph Macro) at this point so that you can easily make this base again.) Add a trace that shows the path of the ion from part 3. Implement the physical constraint of impaction with a plate in the function so that if the ion impacts one of the plates, it stops moving. Put this plot (with the modification showing impaction) in your Notebook.
7. Using the same voltage difference as in part 6, add traces for different ions that have the same initial velocity to show ions that
a. hit the top and bottom of the detector (report the detection amu range at this voltage in your notebook)
b. impact the bottom plate
c. impact the top plate
d. stops between the plates (doesn't reach the exit but doesn't impact the top or bottom plate)
e. exit through the right (detection) side of the spectrometer, but miss the detector and don't impact a plate
f. exit through the left (injection) side of the spectrometer, but don’t impact a plate
· If any of these trajectories are impossible, explain why in your notebook.
· Make sure that all of your traces can be identified and that your plot has a good legend (including the tuning of the spectrometer). Copy the plot into your notebook.
You will now make new plots to explore the properties of the spectrometer.
8. Make a new plot (use your graph macro) and use the same tuning as in parts 6 & 7. Paste in your notebook a plot that shows the trajectories of a singly-charged (+) ion with m = 100 amu with different initial velocities so that the ion
a. hit the top and bottom of the detector (report the initial velocity range in your notebook)
b. impact the bottom plate
c. impact the top plate
d. stops between the plates (doesn't reach the exit but doesn't impact the top or bottom plate)
e. exist through the right (detector) side of the spectrometer, but miss the detector and don't impact a plate
f. exit through the left (injection) side of the spectrometer, but don’t impact a plate
· If any of these trajectories are impossible, explain why in your notebook.
· Make sure that all of your traces can be identified and that your plot has a good legend (including the tuning of the spectrometer). Copy the plot into your notebook.
9. Based on the equations of motion, will an ion with m = 200 amu and q=2e follow the same trajectory as an ion with m = 100 amu and q = 1e? Discuss in your notebook and include a plot to support your argument.
10. Make a new plot and use the same tuning as in parts 6-8. Paste in your notebook a plot that shows a few ions that enter the spectrometer with the same energy and a few ions that enter the spectrometer with the same momentum. Discuss in your notebook whether this is a mass-to-charge selector, a kinetic energy selector, or a momentum selector.
Problem 2.3 – Simulating the Magnetic Sector Mass Analyzer – Fall’07 HW
In this problem we will simulate the magnetic sector mass analyzer, along the lines of the simulation I showed in class and that is pictured below, which is available at: http://www.vias.org/simulations/simusoft_ms_sectorfield.html
(a) Write the equations of motion for an ion of mass m, charge z, and kinetic energy Vs in a uniform magnetic field of strength B (geometry as in the figure, X-axis to the right, Y-axis up on the page, Z-axis out of the page towards you).
(b) Discretize the relevant equations with the finite difference method
(c) Solve and plot the motion of the ion (with the values in the figure below, z = 1, as well as for ions with m = 30 amu and m = 40 amu) in Igor by marching forward in time in small steps. Too large time steps will cause poor convergence, while too small will take a long time. You can determine a first guess of the time scale of the process from the equations of motion, and then increase or decrease the time step until satisfactory performance is achieved.
(d) From the previous simulation, what is the distance between the ion source exit and the corner of the spectrometer, and between the corner of the spectrometer and the detector, in the figure below? (Note that they will be the same)
(e) What is the resolution of the mass spectrometer at m/z = 82 Th, assuming that the ion source is a point source, and that the width of the detector entrance is 1 mm?
4) Compile a table with the specifications of one instrument at the MS facility (see assignments below) including: types of sample introduction available and their parameters (e.g. direct heated introduction up to 300 C), operating pressure, types of ionization available and their parameters, type of mass analyzer and parameters (m/z range, resolution, detection limit), dynamic range (ratio of the largest to smaller signal that can be measured at the same time), time resolution, capability for MS/MS (yes/no, and if yes, how). Not all parameters will be relevant for all instruments, please explain briefly why a parameter may not be applicable to your instrument. The information may be available on the web page descriptions of the instruments, in the manuals of the instruments at the mass spec facility, in papers that describe applications of the instruments (see those linked to the course page), or in manufacturer’s web sites (but make sure you don’t quote specifications for a different model of the instrument. Please respect the time of the MS facility personnel. This assignment has to be turned in by email in HTML format – don’t worry, that is quite easy. Please plain HTML only, not HTML files made with Word, Frontpage… as those are impossible to combine later. I’ll post an HTML file that you only have to edit with a text editor (e.g. notepad) and view with a browser such as internet explorer. You get bonus points if you post it on the web and email me the link for the page.
Problem 5.1- Ion Optics Simulations in Igor
The figure below is a schematic of an electron ionization source and its extraction optics. (FYI: this is the ion source used in the Aerosol Mass Spectrometer used by the Jimenez Lab). Ions are created inside the box to the left, as electrons are emitted from the filament (small circle below the “cathode” voltage) they ionize some of the neutral molecules inside the box.
Using the values of voltages from the table below, (5.1.1) write an Igor program that calculates the position, velocity, and acceleration vs. time, and plot the velocity and acceleration vs. position curves for (a) an H2O+ ion and (b) a Hg+ ion as they are extracted by the ion optics and they enter the quadrupole mass analyzer (labeled as “rod system”). (5.1.2) Then program a realistic animation of the motion of the two ions simultaneously. Turn in the Igor code and a writeup by email to chem5181@gmail.com.
Assume that the entire box interior is sitting at the V1 (“ion reference”) voltage and that ions are formed on the central axis of the ion source. Measure the distances from the graph (please use mm and not inches) and assume that the graph is drawn on a 1:1 scale. Note that most of the voltages are defined relative to the “ion reference” voltage.
Note: Disregard superscripts on the voltages.
Problem – Ion Optics Simulations
Now we will deal with the more complex case of two-dimensional ion trajectories. Rather than programming it in Igor, this time you will use the ion optics simulation program from http://www.vias.org/simulations/simusoft_ionoptics.html , with 1 tick of beam width and 1 tick of beam angle, create (a) an ion reflector and (b) an optic that can turn the ions 90 degrees up, with as little ion dispersion as you can get (at the point in which the ions leave the box). Do those designs work for ion beams with 4/0 and 0/4 ticks ? (you don’t need to optimize the designs to work for every case, it only needs to work for the 1/1 case and then you can report whether it works or not for the other cases and why). Pls submit the screen shots (Alt + PrintScreen in Windows) as the solution, along with any comments on tricks, problems etc.
12.1 Reading (due Tue 24-Oct-17)
HW16 (jumping numbers to accomodate LV HWs)
Assigned Thu 26-Oct-2017; Due: Halloween 31-Oct (by email to chem5181@gmail.com by 9 am)
Reading
Approximate Montecarlo simulation of a mass spectrum
You want to simulate the EI and CI mass spectra of methane. Assume that all the bonds in methane have a dissociation energy of 103 kcal/mol (see notes). Assume that the largest fragment keeps the charge, and the smaller fragment leaves as a neutral.
(a) For CI, the internal energy of the molecular ions immediately after ionization is a continuous uniform distribution between 1 and 2 eV. Make of plot the mass spectrum of methane for these conditions.
(b) For EI, the internal energy distribution of the molecular ions immediately after ionization is given by a uniform PDF between 0 and 15 eV. Using Igor, create a function that simulates a realization of the mass spectrum of methane under these conditions, as a function of the number of ions recorded. You will need to use the “enoise” function in Igor.
(b1) Plot and show 2 “realizations” (= sample spectra) with 5 ions, 2 realization with 25 ions, and 2 realizations with 1000 ions. What do we learn from this? Which one will be the most similar one to a real spectrum?
(b2) Calculate and plot the signal-to-noise ratio for the peak at m/z 13, as a function of the number of ions simulated. You will need to run enough values of the number of ions (logarithmically spaced) and then enough realizations at each number so that you get a robust SNR value. How many ions do you need to record for the relative standard deviation (std dev / mean = 1 / SNR) of all the peaks to be less than 5% (which is the same as SNR > 20).
(b3) Can you use the code that you just completed to simulate the results for CI?
Note: SNR is an extremely important parameter in experimental research. It is defined as the ratio of the average signal by the std. deviation of the signal, when you do multiple measurements of that signal (or multiple simulations, in our case).
HW9. Assigned Thu 23-Oct-2014, Due Thu 30-Oct-2014
HW9.2. Ion-molecule reaction kinetics in the PTRMS
In this problem you will use the KinSim kinetic solver in Igor to calculate the evolution of the concentration of the reagent and analyte ions in time in the PTRMS, with all the numerical parameters being the same as in 9.1. (This solver is extremely useful, e.g. 7 people in my group and Paul’s group are using currently in their research. So your learning to use it is part of the point of this problem). You should solve for the evolution of the water cluster (H2O)nH3O+ mixing ratios, assuming only bare H3O+ enters the flowtube. You will then use the kinetic solver to calculate the evolution of the mixing ratios of (H2O)nH3O+ for n = 0 to 6 (so 7 total species) vs. time in the drift tube. You will need the following information:
You will do the calculations for two conditions:
Your results should be two graphs, showing the evolution of the 7 water cluster species in time for cases (a) and (b).
BONUS question: look through the KinSim code, and explain how it works
HW 18 - Unimolecular Ion Fragmentation & Ion-Molecule Chemistry
Assigned Fri 24-Nov-2017; Due: Mon 12-Dec-2017 (by email to BOTH zhe.peng@colorado.edu AND chem5181@gmail.com by 9 am)
18.1 Low- and high-energy behaviors of molecular ion
Note: Some of the information in Slide 17 of the lecture notes would be very useful for you to answer questions below. Steps (g) and (h) are bonus questions.
This is a k(E) diagram of propane molecular ion (C3H8+). Curves 1–3 correspond to three major fragmentation pathways.
(a) Digitize these curves using IgorThief.
a. Right-click this graph to save it to your computer;
b. Type “#include <igorthief>” in your Igor procedure window, then click “Compile” to load IgorThief;
c. Go to the dropdown menu “Data -> Package -> IgorThief” to start IgorThief.
d. Follow the instructions of IgorThief to digitize.
(b) Read Section 22.8 (a, b) and Further Information 22.1 in Atkins’ PChem textbook (included in the suggested reading) to understand the RRK model (not RRKM), if you have not. In theory, what is the value of the variable “s” in the RRK rate formula for C3H8+?
(c) Fit the curves you digitized with the RRK formula. Note that you already know the value of “s” in theory. Explain what you get.
(d) Repeat (a) and (c) for the following graph (the one we have discussed in class). Try one curve. Can you well fit that curve with “s” fixed? Can you well fit without “s” fixed? Explain what you get.
(e) Let’s try stepwise fitting. Can you well fit parts of that curve with “s” fixed? Can you well fit without “s” fixed?
(f) Note that the k(E) and E ranges of the two graphs are different. Think about the validity of the assumptions of the RRK model and explain the differences between the fitting results of (c) and (e). What do the fitted “s” values mean in (e) in the RRK framework?
(g) What do the fitted “s” values mean in (e) in the RRKM framework? Based on RRKM, can you explain why log k(E) increases with E rapidly at low E and more slowly at high E?
(h) Infer the products of Pathways 1–3 from the corresponding curves. You will need the answers to some questions above (and, of course, some material covered in class).
18.2. Distribution of H3O+(H2O)n clusters in PTR-MS
(a) Derive the expression of Langevin rate constant for polar molecules (based on ion-permanent dipole interaction).
(b) Make reasonable assumptions and use available data (including but not limited to enthalpy and entropy of vaporization of water, hydrogen bond length in water, and dipole moment of water molecules) to estimate the forward rate constants of the following reactions:
H3O+(H2O)n + H2O ↔ H3O+(H2O)n+1 n=0, 1, 2,…, 6
(Note: only right orders of magnitude are needed for your estimates. You are allowed to use any data in the literature and/or online, but commonly used data are preferred. If you use data of quantities that are too close to the target quantities, you will not get full credit for this step.)
(c) Based on the estimates in (b) and the equilibrium constants in Fig. 2 of Lau et al. (1982), calculate the reverse rate constants of the reactions above.
(d) Download the latest version of the chemical kinetic integrator KinSim. Username and password for downloading will be distributed on Piazza. Read its instructions and make sure that you can run the example case and get a plot for it. Zhe will guide implementing this PTR-MS reaction system into KinSim during class on Tue 12-Dec., and that will likely be the final HW for the class.
Homework
H12.1. We want to use the Ebara pump (that you read the specs of, and that we discussed in class) as a backing pump for the Pfeiffer Turbo HiPace 300M. Are these pumps compatible?
H12.2. A basic digital filter. Download the FFT demo (same program as a couple of HWs ago. Run Test_FFT(10, 10,10, 10, 0). Implement a simple digital filter in a function, in which you set frequencies higher than those of interest to zero on the FFT result, and then you do the transform back into time space (you’ll need to review the Igor manual for the FFT function and possibly on signal processing). How well does it work? Does the amount of noise influence the result?
F3- Fall’06 Substances A and B were found to have retention times of 26.40 and 27.63 min., respectively, on a 50.0 cm column. An unretained species passed through the column in 2.30 min. The peak widths (at base = 4) for A and B were 1.11 and 1.20 min, respectively. Accounting for the mobile phase time, calculate: (a) the resolution of each peak using the FWHM definition; (b) the average number of plates in the column; (c) the plate height; (d) the length of column required to achieve a resolution of 50; (e) the time required to elute substance B on the column determined under d; and (f) the plate height required for a resolution of 50 on the original 30 cm column and in the original time.
4.3- What would be the effect of the following on the plate height of a GC column?
- Increasing the weight of the stationary phase relative to the packing weight
- Decreasing the rate of sample injection
- Increasing the injection port temperature
- Increasing the flow rate
- Reducing the particle size of the packing
- Decreasing the column temperature
HW Fall’06, Fall’04
Problem 9.1- The following data apply to a column for liquid chromatography: Length of packing: 24.7 cm; Flow Rate: 0.213 mL/min; VM: 1.87 mL; VS: 0.100 mL. A chromatogram of a mixture of species A, B, C, and D provided the following data:
Species Retention Time, min Width of Peak at Base, min
Non retained 3.1 --
A 5.4 0.41
B 13.3 1.07
C 14.1 1.16
D 21.6 1.72
Properly accounting for the mobile phase time, calculate: (a) the number of plates from each peak; (b) the mean and standard deviation of N; (c) the average plate height; (d) the capacity factor, partition coefficient, and retardation for each retained species; (f) the resolution and separation factor for species B & C; (g) the length of column needed to give a resolution of 1.5; (h) the time required to separate B & C with resolution of 1.5 in the column under h.
11.6. From band 6 in the figure below:
(a) Estimate the ratio of the partition constants of methyl:octyl:octadecyl with toluene under the conditions of the separation. Assume Vs remains constant.
(b) Let us assume that the reserved-phase adsorbent surfaces are homogeneously covered with the chains sticking out like bristles on a brush. The Vs would vary with chain length. What are the ratios of K for toluene with Vs varying in this way? Does this simple picture produce consistent results? Why?
J3. Capillary Electrophoresis (8 pts) Final’04
Sketch the Van Deemter plot for a capillary electrophoresis separation.
(a) Which parameters should we use for the X and Y axis in the case of CE? Why?
(b) Explain the various physico-chemical processes that contribute to band broadening in CE, their dependence on the X-axis parameter, and the reasons for this dependence.
(c) Do you expect to find an optimum at intermediate X, or to run at the highest value of the X-axis parameter that you can possibly achieve?
Part B: Theory of Chromatography (20 points)
1. Refer to Figures 2 and 3
Part C: Liquid Chromatography (10 points)
2. The following questions are specific to LC or HPLC
F. Explain why the 'HP' in HPLC can alternately be defined as 'High Pressure' or 'High Performance'.
G. Is there a theoretical limit to optimization of plate height using HPLC? Is there a practical limit? Explain.
H. Explain the concept of 'stationary phase volume' in LC or HPLC.
I. Why would one want to use gradient elution in LC or HPLC?
5.1- one ml of hexane (density = 0.66 g /ml) is injected into a GC. Assume that the density of hexane vapor is 2.5 g/l at 69C and 1 Atm and that the temperature and gas pressure at the column head are 120C and 2.2 atm.
(c) What is the volume of hexane vapor that enters the column?
(d) If the flow leaving the column is 2 ml / min, what is the width in seconds that the peak could possibly have (if no broadening occurred)?
5.2- Gradients always run from weakest to strongest eluting mobile phase conditions. You wish to run a gradient for a supercritical fluid chromatography separation.
(a) Would you run a rising or falling temperature gradient?
(b) Would you run a rising or a falling pressure gradient?
5.3- The figure below shows the Van Deemter curves for three different carrier gases. These were determined from a C17 hydrocarbon peak with k = 7.90 in an open tubular column.
(a) Explain why the three curves look the way they do.
(b) Which carrier gas should be used to obtain the best separation for this hydrocarbon and similar compounds, as to both efficiency and speed?
13.3. Resolution in MS vs Chromatography (From a past final exam)
The graph below, which can be downloaded from here can represent a mass spectrum showing two peaks vs m/z; or a chromatogram showing the detector response to two eluting species as a function of corrected retention time (t’R). Using the definitions discussed in class and the readings, fit the peaks in Igor and calculate the resolution for each the two peaks if (a) this is a mass spectrum and (b) if this is a chromatogram. (c) Are the MS and Chrom resolutions numbers the same or different? Why? (d) Would this level resolution be considered sufficient for an MS or chromatography analysis?
13.4. Chromatographic Theory for HPLC (from a previous final exam)
The graph below shows the value of plate height vs. flow rate (i.e. mobile phase velocity) for an HPLC separation, and for three different stationary phase particle diameters.
(a) For the cases with 10 and 3 m particles, sketch graphically the individual contribution of each one of the terms of the Van Deemter equation to band broadening.
(b) Digitize both curves using IgorThief (including not just the datapoints but also the curves drawn through the data), and determine each of the terms using curve fitting in Igor. How good of a fit are you able to get? Which term(s) are more or less important? How similar are they to your sketches in (a)? Does the relative importance of the terms make sense for HPLC?
(c) Explain why each of the individual terms has the observed dependence on the mobile phase velocity.
(d) Given the results of the fit, explain the effect of reducing particle size on separation efficiency.
(e) You want to separate two particular compounds with this system, and you need to do this analysis tens of thousands of times, so speed is critical. The detector that you are using is only sensitive to those two compounds in the mixture you will be analyzing. You are using a particle size of 5 um. How would you choose the mobile phase velocity? You can run only one preliminary experiment and use the results to make your decision.
13.2 High-Field IMS
Briefly explain (a) what is the physical reason for the fact that a high electric field can have an extra separating power when compared to the lower fields used in traditional ion mobility spectrometry? (b) why can it be useful to introduce a high-field IMS in between an ESI source and a mass spectrometer? You can use information from the readings and also the following paper (or any other resources, but do report any other resources you use):
Randy W. Purves and Roger Guevremont. Electrospray Ionization High-Field Asymmetric Waveform Ion Mobility Spectrometry-Mass Spectrometry. Anal. Chem.; 1999; 71(13) pp 2346 - 2357; (Article) DOI: 10.1021/ac981380y
HW9 - 2017
9.2. Installing Labview (confirm via email).
Well before Class 1 if LV (Thu 12-Oct-2017), you must download, install, and activate LabVIEW using the CU Student License serial number. It is best if you do this on a Windows computer using W7 or W10. It should work if you install LabVIEW on a “Windows virtual machine” on a Mac, but Mac installations will be more difficult for us to support. Labview for the Mac is problematic and should not be installed. We will install and use LabVIEW 2016, even though the most recent version is 2017. 2016 is the latest version that the CU student serial number supports.
To download LabVIEW, browse to http://www.ni.com/download/labview-development-system-2016/6046/en/ Choose the 2nd download link, for a current user. This will download the LabVIEW installation program, which is more than 1GB. Please install the 32 bit version, even if you have a 64 bit operating system. The 32 bit version is more than enough for what we will do, and the 64-bit version has some problems with drivers that are difficult to solve.
When it finished downloading, run the file to unzip the contents of the file, and run the installer. This should be installing LabVIEW 2016. If you got a different version, start over! For the User Information, enter your name and “University of Colorado”. On the Serial Numbers tab, enter the CU Student SN (will be given via Piazza) in the LabVIEW 2016 space. Do not enter anything in the following three spaces.
On the Features page, you can deselect Database Connectivity Toolkit and Report Generation Toolkit. Leave everything else selected and press Next as needed until the installation completes. Accept the licenses when asked, and we suggest you allow it to Disable Windows Fast Startup if asked.
At the end of the installation, it will ask for a source of the “Support” installation material. But that is not downloaded yet, so decline support for now.
After installation, activate LV. You will need to create an NI account with your CU email address to complete this step. If you miss this step at the end of the installer, you can find and launch the NI License Manager and use that to activate LabVIEW.
You will then need to download and install the NI Drivers. These can be found at http://www.ni.com/download/ni-daqmx-17.1/6836/en/ Download this file. Unzip the contents. Run the Setup.exe program. Use the “Typical” installation option. The “Search for Important Information” is not needed. Accept the license agreements. Restart your computer.
From this installation, you will need to be able to start and run two programs: LabVIEW, and NI’s Measurement and Automation Explorer. When I did a test install, it did not create proper shortcuts for these programs. Before reporting to class that you have successfully installed LabVIEW, make sure you can find and launch both programs. For the second (NI-MAX), if you cannot find a shortcut to it, one option is to launch LabVIEW, then in the Tools menu, select “Measurement and Automation Explorer, which should be the first item in the menu.
HW15 - Labview - assigned 5-Dec-13; due 10-Dec-13
Open “USB 6008 P controller w simulated data.vi”. Note that you will also need the simulated AI and AO vis, as well as the global vi. They are all linked here.
(a) Debug it so that it runs. Note that debugging does not include removing the simulated error in “Simulated AO Data.vi”.
(b) Make a plot that keeps updating and that shows the input, error, and output values
(c) Error handling
- Add error clusters to Simulated AI Data.vi.
- Add error chaining between Simulated AI Data.vi and Simulated AO Data.vi.
- Add logic so that the loop stops if there is an error.
(d) Documentation
- Document the code according to best practices
- consider icons, VI descriptions, labels and explanatory text, control and indicator descriptions, etc.
HW14 - Labview - assigned 21-Nov-13; due: 5-Dec-13
14.1. Calculation, Plotting, and Saving of US Standard Atmosphere with Labview
This is a problem that has already been done in CHEM-5161. You can download the problem, the US Standard Atmosphere data, and a template vi from the CHEM-5161 web page here.
14.2 Sorting an array.
Using LV, redo the problem that we did in the CHEM-5181 midterm using Igor: Write a vi named SortArray in LV to sort (in descending order) the elements of a pre-existing 1d wave of arbitrary length named WaveToSort into a new wave named WaveSorted. E.g. if WaveToSort = {2, 5, -3, -1} then your program will create WaveSorted = {5, 2, -1, -3}. Grading will be based on (a) vi compiles and does the right thing. (b) vi is well organized and clearly commented.
Note: use of any pre-programmed Sort functions in LV is not allowed. Your function needs to accomplish its objective using the LV equivalent of For loops, While loops, If statements etc.
14.3 (Optional). Euler’s method in Labview.
Implement a solution of a differential equation of the form dy/dt = -a * y + b using Euler’s method in Labview, with a, b and the time step being entered by the front panel, and the result being shown in a graph.