An open API service indexing awesome lists of open source software.

https://github.com/mseri/ocaml-cviode

Contact variational integrators - native ocaml implementation
https://github.com/mseri/ocaml-cviode

geometric-integrator hacktoberfest solvers

Last synced: 11 months ago
JSON representation

Contact variational integrators - native ocaml implementation

Awesome Lists containing this project

README

          

# Contact variational integrators - native ocaml implementation

This is a collection of geometric solvers for initial value problems derived from contact Lagrangians.
The provided solvers concern Lagrangians of the form
```latex
$$
L(x, \dot{x}, z, t) = \frac12|\dot{x}|^2 + g_1(x)g_2(z) + h(z) + f(t)x
$$
```
For further information refer to [_Vermeeren, Bravetti, Seri: Contact Variational Integrators (2019)_](https://arxiv.org/abs/1902.00436).

Running the integrators on the damped oscillator with and without forcing (see [example/damped.ml](example/damped.ml)) produces the following output:

![no forcing, critical damping](img/damped.png)

![no forcing, critical damping](img/forced.png)

## TODO

- [ ] Add mli with documentation
- [ ] Add implementation with support for $g_2(z)$ as per description
- [ ] Figure out how to test