Devlog 8
Today, I didn’t have as much time as the previous days but I still managed to finish a chemistry simulation (for reference, the Bohr Atomic Representation simulation).
Since this is the only simulation that I’ve made today, there will not be a lot of things to say so I’ll try to make it short for you. If you want to see the things that I’ve done in detail, here is, as always, the list:
- defined some variables containing a lot of informations such as the atomic properties variables (atom name, mass, proton, neutron and electron number), lists to store each atomic element created (protons, neutrons, electrons) as well as the electron shells (1s, 2s, 2p, 3s, 3p), some other “art” variables (colors, fonts, screen radii for the atomic elements) and trigonometry variables (the inital electron angle because, as I’ll explain later, their motion has to be simulated according to the unit circle)
- defined a lot of functions so as to create the atomic elements mentioned above (protons, neutrons, electrons and electron shells) by creating dictionaries (a kind of variable that can store different types of values which can be retrieved through a key; take Excel tables as an example) containing their initial position, angles for the electrons, their rotation speed and their current shell, check the number of electron shells that have to be simulated (by checking the number of electrons of the simulated atom), add the said atomic elements to their respective lists and draw them on the screen and lastly, a function to update the position of the electrons by calculating their sine and cosine values on the unit circle previously mentioned
- added labels describing the atomic values of the simulated atom as well as the simulation title
I think that I’ll finish the chemistry simulations and the Fluid Simulation tomorrow to get started on the launcher-simulation interface and fixing some features. After doing that, only the Place and the other launcher buttons (maybe other fixes) will be left to make.
Thanks for taking the time to read my devlogs, I really appreciate it.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.