├── Screenshots ├── overall_1.jpg ├── overall_2.jpg ├── schematic_1.jpg └── schematic_2.jpg ├── mass_spring_damper_system.slx ├── mass_spring_damper_system.slxc ├── param.m ├── LICENSE └── README.md /Screenshots/overall_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/Screenshots/overall_1.jpg -------------------------------------------------------------------------------- /Screenshots/overall_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/Screenshots/overall_2.jpg -------------------------------------------------------------------------------- /Screenshots/schematic_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/Screenshots/schematic_1.jpg -------------------------------------------------------------------------------- /Screenshots/schematic_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/Screenshots/schematic_2.jpg -------------------------------------------------------------------------------- /mass_spring_damper_system.slx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/mass_spring_damper_system.slx -------------------------------------------------------------------------------- /mass_spring_damper_system.slxc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arasgungore/mass-spring-damper-system/HEAD/mass_spring_damper_system.slxc -------------------------------------------------------------------------------- /param.m: -------------------------------------------------------------------------------- 1 | %% Mass-Spring-Damper System Simulation 2 | clc, clear 3 | 4 | m = 1; 5 | b = 0.1; 6 | k = 0.1; 7 | 8 | k1 = 3; 9 | k2 = 5; 10 | d1 = 6; 11 | d2 = 10; 12 | F = 10; 13 | m1 = 2; 14 | m2 = 2; 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Aras Güngöre 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mass-spring-damper-system 2 | 3 | A Simulink project that simulates both single and double mass-spring-damper systems. As output, the project plots the position-time graph of the mass(es). 4 | 5 | 6 | 7 | ## Run on Terminal 8 | 9 | ```sh 10 | matlab -nodisplay -nosplash -nodesktop -r "run('param.m');exit;" 11 | ``` 12 | 13 | 14 | 15 | ## System 16 | 17 | ### Single Mass-Spring-Damper System 18 | 19 | Screenshot 20 | 21 | Screenshot 22 | 23 | 24 | ### Double Mass-Spring-Damper System 25 | 26 | Screenshot 27 | 28 | Screenshot 29 | 30 | 31 | 32 | ## Author 33 | 34 | 👤 **Aras Güngöre** 35 | 36 | * LinkedIn: [@arasgungore](https://www.linkedin.com/in/arasgungore) 37 | * GitHub: [@arasgungore](https://github.com/arasgungore) 38 | --------------------------------------------------------------------------------