Skip to content

Latest commit

 

History

History

verlet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Velocity-Verlet

Description

Implement Velocity Verlet for simple harmonic oscillation

  • $m = 1\text{kg}$
  • $k = 200 \text{N} / \text{m}^2$

Build Process

# If there is no data directory
mkdir data

# Build & Run
cargo run --release

# Plot
python nc_plot.py

Result

position

velocity

energy