You are browsing as a guest. Sign up (or log in) to start making projects!

4h 52m 19s logged

Devlog 7

As always, a lot of work has been done around the physics simulations; in fact, I’ve finished them all (except the Fluid Simulation for reasons that I’ll explain here). The simulations finished today are the Refraction and Temperature Simulations. If you are interested in the work that has been done, here is the list:

  • created a function in the Refraction Simulation .py file to calculate the value of the refracted angle based on the initial incidence angle as well as the refractive indexes of the mediums by using Snell-Descartes Law and some trigonometry to change the x and y positions of the refracted light ray as well as the main ray
  • defined some lists that contain real life physical values (refractive indexes of air, water, glass, ethanol, diamond and plastic as well as their color)
  • created the .py file for the Temperature Simulation
  • calculated some physics formulae to simulate the entropy (or increase in disorder) of the particles in a gas (in this case, your regular air) by using the Stokes-Einstein equation to calculate the diffusion coefficient for each particle (how fast the particle spreads) as well as Sutherland’s Law to calculate the dynamic viscosity of the air mentioned above
  • added a damping factor when calculating the dynamic viscosity of the air containing the particles because Sutherland’s Law tends to break when reaching absolute zero (for reference, -273.15°C or 0°K)
  • added a function to simulate Brownian Motion for the particles based on the values calculated before as well as functions to create those particles and draw them on the screen
  • fixed some physics bugs on the first Projectile Simulation
  • created the .py file for the Bohr Atomic Simulation

If I didn’t make the Fluid Simulation as of now, it’s because I don’t know if I’m going to use the simple method (springs connected to each other to simulate waves propagating) or the complex method (using Navier-Stokes equations to simulate the fluid’s motion, pressure, diffusion and external forces). I will see how much time I can allocate for this simulation and decide.

Again and as always, thanks for taking the time to read my devlogs and supporting me.

0
9

Comments 0

No comments yet. Be the first!