Expand description
Simulates N-body pendulums.
This crate is designed to solve the governing equations describing the motion of N-body pendulums.
The central function is simulator::integrate()
, which integrates the system for
one step.
For instance,
let mut p: pendulum::Pendulum = pendulum::simulator::init(nitems);
// call as many times as you want
let dt: f64 = pendulum::simulator::integrate(&mut p);
Note that the time step size dt
is decided by the integrator and not to be specified.
Modules
- Calculates the current statistics of the system.
- Has methods to manipulate the pendulum.
Structs
- Stores kinetic and the potential energies.
- Stores the state of the pendulum.