Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

valentinsulzer/PyBaMM.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyBaMM.jl

This repository is now archived and read-only. It is not expected to work in its current state.

PyBaMM.jl is a common interface binding for the PyBaMM Python battery modeling package. It uses the PythonCall.jl interop in order to retrieve the equations from python in a Julia-readable form.

Installation

PyBaMM will be automatically installed when PyBaMM.jl is installed, via CondaPkg

If you want to bring your own python, or want to use the system Python on linux, you'll need to install your own PyBaMM. Please follow the instructions provided by PythonCall.jl

For example, in Linux/Julia do

pip install pybamm

To install the package from source, clone the GitHub repo, then activate:

] activate .

To install as a Julia package:

] add "https://github.com/tinosulzer/PyBaMM.jl"

Using PyBaMM.jl

See examples in docs folder.

The link from PyBaMM to PyBaMM.jl is one-way and one-time. PyBaMM is used to load a model (any PyBaMM model can be used) and parameter values, discretize the model in space, and generate Julia functions to represent the discretized model. From then on, we are entirely in Julia and can use all the tools from the SciML ecosystem without having slow calls back to Python.

About

Julia bindings for PyBaMM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages