Find here my PHYS291 project for 2014 !
10/02 : I created this page to display my PHYS291 project, which is not ready yet , come back !
28/05 : The project is going on fine, the main core of the program now has its final shape, I still have to kill a few bugs though.I still have to figure out some quantum mechanics point but overall I think it's getting quite close to what it is supposed to be.
30/05 : Unexpected difficulties bringing more unexpected difficulties, I had to rethink my approach of the problem. It became obvious that I couldn't treat the quantum mechanical part analytically, so I will have to use a premade database (from nist website). This is quite a disappointment to me, but I want to focus more on the data analysis part than on the pure theoritical quantum part. Major puzzle : my code works just fine except for one problem that is not an error but that I can't explain at all, I might just have to reread everything from head to toe ...
18/06 : The program is running ! After many difficulties including a graphic card death and a handful of segmentation faults, it is finally ready to be uploaded !
Steps to run my PHYS291 project : PLEASE READ
1 : Download the folder following this link.
2 : Compile the c++ file called 'projet' in the folder.
3 : The program reads a sequence of wavelengths and tries to match it with the emission spectrum of an atom.
Your database file has to be called datalines.txt and to be placed in the folder mentioned above, and the wavelengths have to be in nanometers and on top of each other.
The input wavelengths should not be greater than a centimeter. I already wrote a datalines file filled with the Hydrogen atom lines, unfortunately this atom shares many lines with other atom so the result may not be as sharp as expected. Feel free to add your own data !
4 : Grab a book, the algoritm is probably not the best conception-wise and the computation may take some time depending on your machine's settings.
UPDATE : I made two versions of the program, the one called project.cpp is the full version but might be long to run, while the second called alternate.cpp runs faster but doesn't sort the wavelengths in low to high order, which is unnecessary to the final result but still very interesting in the coding process.