The purpose of this laboratory work is to simulate a damped harmonic simulator. The main problem was to represent mathematically the problem. In fact we have to deal with a second-order differential equation. To solve this equation I used Euler's method.
When we have our differential equation solved, we can use the obtained data to plot it or to create a simple simulation.
The differential equation used is: and as soon as we compute the x for the each moment of time, we're almost done with the serious mathematical computations.
The process of prepairing for the lab was done in a team of: Alexandra Pleșco, Eugen Ungureanu, Sergiu Terman, Vladimir Tribusean. And as you warned us in the lab requirements, we had lot of fun. 😄
The program was written fully in python and I've used the numpy, matplotlib, pygame libraries in order to make things happen.
Here is a little demo
At this laboratory work I had the opportunity to represent mathematically and to simulate a real mechanical process. It is very useful for us, as future engineers to be able to transpose the real-world processes in a mathematical domain in order to be able to make beautiful computations.
The main difficulty was to understand the mathematical problem and to learn how Euler's method works. The rest of the process was fun.