C++ framework for dynamical systems simulation