Skip to content

A basic MATLAB program that simulates particles under the influence of gravity.

Notifications You must be signed in to change notification settings

kylelevy/ParticleSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

MATLAB Particle Simulator

This is a simple particle simulator in the MATLAB environment. It was created as an exercise for my Kinematics and Dynamics course and uses Euler's Method (Momentum Update) to simulate the trajectory of particles under the influence of gravity.

$$F_{net} = \frac{dp}{dt}$$

$$dp = F_{net} * dt$$

Using this property, we can extract the following relations:

$$P_0 = P_1 + F_{net} * dt$$

$$X_0 = X_1 + \frac{P_0}{m} * dt$$

Using these equations, we can simulate the trajectory of these particles by calculating their updated position per increment time ($dt$) in a loop.

image

About

A basic MATLAB program that simulates particles under the influence of gravity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages