This repo contains a battery model of a 15Ah LG Chem Automotive Li-Ion (LMO) battery cell. The model is based on the model derivation from this work.
The model parameters were identified using a subspace technique found here. The parameters are simplified in the base model, but can be extended to include, as the paramters can be found in /data/battery_mappings.mat
which are dependent on current direction and SOC.
To begin, start your virtual environment:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
If you don't have
virtualenv
, you may need topip install virtualenv
.
Then just run the model which runs a simple step profile generated in the file battery_model.py
:
python battery_model.py
The output is saved in data/output.mat
and can be imported into MATLAB for plotting and viewing.