Skip to content

Numerical simulation of quarter cart model using MATLAB

Notifications You must be signed in to change notification settings

HilarieSit/3200-Final-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3200-Final-Project

Mechanical Engineering Project

  1. Quarter Car Model
  • RUN THIS FILE: leastsquaresfit.m - fits both spring and damping force data into a polynomial least squares curve
  1. Simulation
  • RUN THIS FILE: Simulation.m - solves solve system of ODEs with 4th order Runge-Kutta and forward Euler. Note that there are two dydtsys files: dydtsys10 (for V = 10 km/hr) and dydtsys40 (for V = 40 km/hr). Other than the difference in V value, both dydtsys files are the exact same.

  • calls the following: rk4sys.m, euler.m, dydtsys10.m, dydtsys40.m

  1. Data Analysis
  • RUN THIS FILE: finiteDifference.m

  • RUN THIS FILE: zerocrossing.m - solve for zero-crossing time via bisection method on a 5th order Lagrange Interpolating Polynomial

  • RUN THIS FILE: numericalIntegration.m - compute energy loss due to damping

  • calls the following: lagrangeIP5.m, bisection.m

About

Numerical simulation of quarter cart model using MATLAB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages