-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2618 from pybamm-team/pydata-theme
Change docs to use Pydata theme
- Loading branch information
Showing
210 changed files
with
713 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,117 @@ | ||
.. Root of all pybamm docs | ||
.. _GitHub: https://github.com/pybamm-team/PyBaMM | ||
.. Remove the right side-bar for the home page | ||
Welcome to PyBaMM's documentation! | ||
================================== | ||
:html_theme.sidebar_secondary.remove: | ||
|
||
Python Battery Mathematical Modelling (**PyBAMM**) solves continuum models for | ||
batteries, using both numerical methods and asymptotic analysis. | ||
#################### | ||
PyBaMM documentation | ||
#################### | ||
|
||
PyBaMM is hosted on GitHub_. This page provides the *API*, or *developer | ||
documentation* for ``pybamm``. | ||
.. This TOC defines what goes in the top navbar | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
source/user_guide/index | ||
source/api/index | ||
|
||
Quickstart | ||
========================= | ||
PyBaMM is available on GNU/Linux, MacOS and Windows. | ||
**Version**: |version| | ||
|
||
Using pip | ||
---------- | ||
.. **Download documentation**: | ||
.. `PDF Version <https://numpy.org/doc/stable/numpy-user.pdf>`_ | | ||
.. `Historical versions of documentation <https://numpy.org/doc/>`_ | ||
**Useful links**: | ||
`Project Home Page <https://pybamm.org>`_ | | ||
`Installation <source/user_guide/installation/index.html>`_ | | ||
`Source Repository <https://github.com/pybamm-team/pybamm>`_ | | ||
`Issue Tracker <https://github.com/pybamm-team/pybamm/issues>`_ | | ||
`Discussions <https://github.com/pybamm-team/pybamm/discussions>`_ | ||
|
||
GNU/Linux and Windows | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
PyBaMM (Python Battery Mathematical Modelling) is an open-source battery simulation package | ||
written in Python. Our mission is to accelerate battery modelling research by | ||
providing open-source tools for multi-institutional, interdisciplinary collaboration. | ||
Broadly, PyBaMM consists of | ||
|
||
.. code:: bash | ||
#. a framework for writing and solving systems of differential equations, | ||
#. a library of battery models and parameters, and | ||
#. specialized tools for simulating battery-specific experiments and visualizing the results. | ||
|
||
pip install pybamm | ||
Together, these enable flexible model definitions and fast battery simulations, allowing users to | ||
explore the effect of different battery designs and modeling assumptions under a variety of operating scenarios. | ||
|
||
macOS | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
.. grid:: 2 | ||
|
||
.. code:: bash | ||
.. grid-item-card:: | ||
:img-top: source/_static/index-images/getting_started.svg | ||
|
||
brew install sundials && pip install pybamm | ||
User Guide | ||
^^^^^^^^^^ | ||
|
||
Using conda | ||
------------- | ||
PyBaMM is available as a conda package through the conda-forge channel. | ||
The user guide is the best place to start learning PyBaMM. It contains an installation | ||
guide, an introduction to the main concepts and links to additional tutorials. | ||
|
||
.. code:: bash | ||
+++ | ||
|
||
conda install -c conda-forge pybamm | ||
.. button-ref:: source/user_guide/index | ||
:expand: | ||
:color: secondary | ||
:click-parent: | ||
|
||
Optional solvers | ||
----------------- | ||
Following GNU/Linux and macOS solvers are optionally available: | ||
To the user guide | ||
|
||
.. grid-item-card:: | ||
:img-top: source/_static/index-images/examples.svg | ||
|
||
* `scikits.odes <https://scikits-odes.readthedocs.io/en/latest/>`_ -based solver, see `Optional - scikits.odes solver <https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-scikits-odes-solver>`_. | ||
* `jax <https://jax.readthedocs.io/en/latest/notebooks/quickstart.html>`_ -based solver, see `Optional - JaxSolver <https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-jaxsolver>`_. | ||
Examples | ||
^^^^^^^^ | ||
|
||
Installation | ||
============ | ||
Examples and tutorials can be viewed on the GitHub examples page, | ||
which also provides a link to run them online through Google Colab. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
+++ | ||
|
||
install/GNU-linux | ||
install/windows | ||
install/windows-wsl | ||
install/install-from-source | ||
.. button-link:: https://github.com/pybamm-team/PyBaMM/tree/develop/examples/notebooks | ||
:expand: | ||
:color: secondary | ||
:click-parent: | ||
|
||
API documentation | ||
==================== | ||
To the examples | ||
|
||
.. module:: pybamm | ||
.. grid-item-card:: | ||
:img-top: source/_static/index-images/api.svg | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
source/expression_tree/index | ||
source/models/index | ||
source/parameters/index | ||
source/geometry/index | ||
source/meshes/index | ||
source/spatial_methods/index | ||
source/solvers/index | ||
source/experiments/index | ||
source/simulation | ||
source/plotting/index | ||
source/util | ||
source/callbacks | ||
source/citations | ||
source/batch_study | ||
|
||
Examples | ||
======== | ||
|
||
Detailed examples can be viewed on the | ||
`GitHub examples page <https://github.com/pybamm-team/PyBaMM/tree/develop/examples/notebooks>`_, | ||
and run locally using ``jupyter notebook``, or online through | ||
`Google Colab <https://colab.research.google.com/github/pybamm-team/PyBaMM/blob/develop/>`_. | ||
|
||
Contributing | ||
============ | ||
|
||
Contributions to PyBaMM and its development are welcome! If you have ideas for features, bug fixes, models, spatial methods, or solvers, we would love to hear from you. | ||
|
||
Before contributing, please read the `Contribution Guidelines <https://github.com/pybamm-team/PyBaMM/blob/develop/CONTRIBUTING.md>`_. | ||
API Documentation | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
The reference guide contains a detailed description of the functions, | ||
modules, and objects included in PyBaMM. The reference describes how the | ||
methods work and which parameters can be used. | ||
|
||
+++ | ||
|
||
.. button-ref:: source/api/index | ||
:expand: | ||
:color: secondary | ||
:click-parent: | ||
|
||
To the API documentation | ||
|
||
.. grid-item-card:: | ||
:img-top: source/_static/index-images/contributor.svg | ||
|
||
Contributor's Guide | ||
^^^^^^^^^^^^^^^^^^^ | ||
|
||
Contributions to PyBaMM and its development are welcome! If you have ideas for | ||
features, bug fixes, models, spatial methods, or solvers, we would love to hear from you. | ||
|
||
+++ | ||
|
||
.. button-link:: https://github.com/pybamm-team/PyBaMM/blob/develop/CONTRIBUTING.md | ||
:expand: | ||
:color: secondary | ||
:click-parent: | ||
|
||
To the contributor's guide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.