Code Monkey home page Code Monkey logo

massdamperspring-simulator's Introduction

Operational research

student gr. FAF-111: Mihai Iachimovschi

Topic: Simulation of a Mass-Damper-Spring System

Intro

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: equation and as soon as we compute the x for the each moment of time, we're almost done with the serious mathematical computations.

Prepairing

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. 😄

Coding

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

Outro

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.

massdamperspring-simulator's People

Contributors

mishunika avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

allanstark

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.