Skip to content

From Lagrangian to equation of motion, create or simulate any kind of 2 dimensional linked pendulums.

Notifications You must be signed in to change notification settings

VINCENTHOG/generalizedPendulums

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generalized Pendulum Software

  • Describe your pendulums and their linkage.

  • Get the Euler-Lagrange equations of your system.

  • Try it in the simulator.

Run the program:

   $ python model.py 

Description

This program uses the Lagrange equation of a two dimensional pendulum system to generate the Euler-Lagrange equation.

It also generates the Jacobian matrix of the generalized position. (Useful for external forces)

The simulator uses the basic equation of motion with a 4th order Runge-Kutta to reduce numerical error.

This software is ideal for beginners in physical simulation.

Dependencies

Sympy, Numpy and Matplotlib

About

From Lagrangian to equation of motion, create or simulate any kind of 2 dimensional linked pendulums.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages