Skip to main content

Interfacing between About:Energy's BPX electrochemical parameter sets for batteries and the PyBaMM package for battery modelling.

Project description

AEPyBaMM

AEPyBaMM (aepybamm) is a Python library that supports the use of About:Energy's Electrochemical models (such as About:DFN) in the PyBaMM implementation.

AEPyBaMM is an interface between the PyBaMM package for battery modelling and the BPX package for expression of electrochemical parameter sets. AEPyBaMM v0.1.3 requires PyBaMM v25.4+ (last supported version PyBaMM v25.8) and BPX v0.5.

The core functionality of AEPyBaMM is expressed through the function get_params, which combines a BPX parameter set and any user-defined options to yield a tuple of self-consistent pybamm.ParameterValues and pybamm.lithium_ion.{model} objects.

Example use case:

import pybamm
from aepybamm import get_params

fp_bpx = "*.json" # filepath of BPX JSON file containing parameter set

parameter_values, model = get_params(
    fp_bpx,
    **kwargs, # additional options to get_params()
)

sim = pybamm.Simulation(
    model,
    parameter_values=parameter_values,
    **kwargs, # additional options to pybamm.Simulation
)

# The pybamm.Simulation 'sim' can now be solved and post-processed as desired.

AEPyBaMM additionally provides functions solve_from_expdata and compare, to aid simple solution and comparison operations on experimental data without using the PyBaMM API directly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aepybamm-0.1.3.tar.gz (352.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aepybamm-0.1.3-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file aepybamm-0.1.3.tar.gz.

File metadata

  • Download URL: aepybamm-0.1.3.tar.gz
  • Upload date:
  • Size: 352.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for aepybamm-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cf8aeb5dea4e96710f14726f3f02e0f0e0895956c9d6a84b154b5d698ff1991b
MD5 1af7f87e11bef1424af077bcf390672d
BLAKE2b-256 b3c4e635cf8295f0655da4a71f91c2c56519d925a919506d83079022943cc63e

See more details on using hashes here.

File details

Details for the file aepybamm-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: aepybamm-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for aepybamm-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 569a07475cb70bdf522c1f762d98d67731a183fbb038c3443cd510b0803807fc
MD5 49044e0e777bc93bd94e10a8965eeabf
BLAKE2b-256 d9681969497d1249a09f94bcb153bfd55615cabc32d85ac46d56c0d82e8cb337

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page