How to model Lithium ion battery in MATLAB m-script file? Model input is kW of load connected for discharge and output of the model should be State of Charge.

조회 수: 4 (최근 30일)
Hi,
I want to create a simple model for Lithium ion battery bank including charger in m-script file. The inputs for the model would be battery discharging power command or load connected to the battery. Output would be state of charge of the battery.
Thanks in advance for your help!
Anand
  댓글 수: 3
Yashwanth Dasappagari
Yashwanth Dasappagari 2019년 2월 27일
Hi Anand,
were you able to write the m-script? If yes, I would need your help with it as I am trying to write one too.
Thanks,
Yash

댓글을 달려면 로그인하십시오.

답변 (1개)

Sabin
Sabin 2025년 11월 22일 9:21
Start from your equations. If you have an equivalent circuit model and the corresponding ordinary differential equations it can be done using plain MATLAB code (see this page as a starting point https://www.mathworks.com/help/matlab/math/differential-equations.html).
If you decide to discretize the model, then you can use a for loop to simulate the evolution for several steps.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by