A Simscape-Battery-Library

A Li-ion battery library written in Matlab Simscape language. Battery models include: TSPMe, TECMD and a few utility components

497 Downloads

Updated 16 Nov 2021

From GitHub

View License on GitHub

Simscape-Battery-Library

A Li-ion battery library written in Matlab Simscape language (Matlab 2022b). Battery models include:

  • a thermally coupled Single Particle Model with Electrolyte (TSPMe)
  • a thermally coupled Equivalent Circuit Model with Diffusion (TECMD)
  • a thermally coupled Equivalent Circuit Model (first order) with look-up-tables for the parameters (TECM)
  • a few utility components (a simple battery cycler with CCCV charging and a general electrical source - I/V/P)

Installation

  • Clone (or download) the repository.
  • Add the top level directory in to the Matlab path

Usage

  • See "simpleExamples" folder for running the models with utility components directly in Simulink
  • See "viaMatlabCode" for examples that call the model to perform various simulations, e.g. Power discharge, Remaining Useful-Energy calculations, etc
  • A parameter estimation example of the TECMD model is also provided (can be a lot further improved)

Cite As

W. D. Widanage (2021). A Simscape-Battery-Library (https://github.com/WDWidanage/Simscape-Battery-Library/releases/tag/v1.0.0), GitHub. Retrieved November 16, 2021.

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

+BatteryLibrary/+Models

+BatteryLibrary/+Utilities

Examples/parameterEstimation_TECMD

Examples/parameterEstimation_TECMD

Examples/viaMatlabCode

Version Published Release Notes
1.0.1

See release notes for this release on GitHub: https://github.com/WDWidanage/Simscape-Battery-Library/releases/tag/v1.0.1

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.