Skip to content

aabills/PyBaMM.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyBaMM.jl

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published