Skip to content

yuxiaoyuan0406/runge-kutta.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runge-Kutta in Python

Run Runge-Kutta methods in python.

TOC

Experiments and examples

All examples are placed under examples/

Spring-damping system simulation experiment

Run a spring-damping system simulation with a given set of parameters.

This experiment gives the unit impulse response of a spring-damping system, and try fitting the result to an underdamped ( $0<\zeta<1$ ) second-order system.

See examples/spring-damping/ for more details.

To run this experiment:

# in project root directory
python examples/spring-damping/spring-damping-experiment.py

Use your own parameters:

# in project root directory
python examples/spring-damping/spring-damping-experiment.py --param path/to/your/para.json