Skip to content
ketchPublic

About

Analysis of initial value ODE solvers

Resources

Stars

86 stars

Watchers

11 watching

Forks

Repository files navigation

NodePy: A package for the analysis of numerical ODE solvers

Tests codecov.io

PyPI Downloads License: BSD-3-Clause

DOI DOI

Installation

NodePy requires Python 3.10 or later. To install with pip, do:

pip install nodepy

This will also automatically fetch dependencies. It will not fetch optional dependencies, which include networkx, cvxpy and scipy (that are used only in a few specialized routines and/or examples). The optional dependencies can be installed with pip.

Overview

NodePy (Numerical ODEs in Python) is a Python package for designing, analyzing, and testing numerical methods for initial value ODEs. Its development was motivated by my own research in time integration methods for PDEs. I found that I was frequently repeating tasks that could be automated and integrated. Initially I developed a collection of MATLAB scripts, but this became unwieldy due to the large number of files that were necessary and the more limited capability for code reuse.

NodePy represents an object-oriented approach, in which the basic object is a numerical ODE solver. The idea is to design a laboratory for such methods in the same sense that MATLAB is a laboratory for matrices.

Documentation can be found online at

http://nodepy.readthedocs.org/en/latest/

To get started, you can also have a look at the examples folder, beginning with an introduction as Jupyter notebook.

The development version can be obtained from

http://github.com/ketch/nodepy

Citation

If you use NodePy in published work, please cite both the software and the paper describing it in the Journal of Open Source Software (JOSS).

The software:

Ketcheson, D. I.  NodePy software version <version number>,
http://github.com/ketch/nodepy/.

Please insert the version number that you used.

The JOSS paper:

Ketcheson, D. I., Ranocha, H., Parsani, M., bin Waheed, U., and
Hadjimichael, Y.  NodePy: A package for the analysis of numerical ODE
solvers.  Journal of Open Source Software, 5(55), 2515 (2020).
https://doi.org/10.21105/joss.02515

BibTeX entry for the JOSS paper:

@article{ketcheson2020nodepy,
  title={{NodePy}: {A} package for the analysis of numerical {ODE} solvers},
  author={Ketcheson, David I. and Ranocha, Hendrik and Parsani, Matteo and
          bin Waheed, Umair and Hadjimichael, Yiannis},
  journal={Journal of Open Source Software},
  year={2020},
  volume={5},
  number={55},
  pages={2515},
  publisher={The Open Journal},
  doi={10.21105/joss.02515}
}

Support

If you encounter an error or need help, please raise an issue.

Contributing

Contributions of new features or other improvements are very welcome! Please submit a pull request or contact the authors.

To run the tests (doctests, unit tests and the example notebooks):

pip install -e ".[test]"
pytest

Add -m "not notebook" to skip the notebooks, which are slow, and --cov to measure test coverage.

License

NodePy is distributed under the terms of the BSD 3-Clause License.

Funding

NodePy development has been supported by:

  • A U.S. Dept. of Energy Computational Science Graduate Fellowship
  • Grants from King Abdullah University of Science & Technology

About

Analysis of initial value ODE solvers

Resources

Stars

86 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages