Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhowey committed May 6, 2019
1 parent a55967a commit 59be865
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
About _Slide_
===========================

To cite this code, check the lastest release DOI [here] [1].

_Slide_ (simulator of lithium-ion degradation) is a code project mainly written in C++ to do fast simulations of degradation of lithium-ion batteries.
Simulating 5000 1C CC cycles should take less than 1 minute; adding a CV phase doubles the calculation time to below 2 minutes.
The project uses object oriented programming in C++, have a look at the pdf document '7 appendices; debugging, basics of C++, object oriented programming.pdf' if you

The underlying battery model is the Single Particle Model (SPM) with a coupled bulk thermal model.
A spectral implementation of the SPM in Matlab was developed by Bizeray and Howey and is [available separately on GitHub] [2].
_Slide_ adds various degradation models on top of the SPM. The equations were taken from literature and implemented in one large coupled model.
Users can easily select which models they want to include in their simulations. They can set the values of the fitting parameters of those degradation models to fit their own data.

_Slide_ is written to behave similarly to a battery tester.
It offers functions to load cells with a constant current, a current profile or a constant voltage such that users can program their own degradation procedures.
Some standard procedures have already been implemented (for calendar ageing and cycle ageing with regular CCCV cycles or with drive cycles).
Also some reference performance tests have already been coded (to simulate a the capacity measurement, OCV curves, pulse discharge, etc.).
Users can choose to store data points (current, voltage, temperature) at fixed time intervals during the degradation experiments, similar to how a battery tester stores such data.

The results from the simulations are written to csv files.
Users can write their own code to read and plot these results, but MATLAB-scripts are provided for this too.

Detailed documentation is provided in the pdf documents.
The code itself is also extensively documented.

If you use _Slide_ in your work, please cite our paper:

J.M. Reniers, G. Mulder, D.A. Howey,
"Review and performance comparison of mechanical-chemical degradation models for lithium-ion batteries",
journal of the Electrochemical Society (under review)

This code has been developed at the Department of Engineering Science of
the University of Oxford.
For information about our lithium-ion battery research,
visit the [Howey Research Group][3] website.

For more information and comments, please contact
[[email protected]][4].


Requirements
============
You will need a C++ programming environment to edit, compile and run the code.
Eclipse is the environment used to develop the code, but other environments should work as well.
Your computer must also have a C++ compiler installed.
The code has been tested using g++.
Extensive guidelines on how to install those programs is provided in the pdf document '1 Getting started.pdf'.

To display the results, various Matlab scripts are provided.
To run those, you will need to have installed Matlab.
The code has been tested using Matlab R2018a, but should work with other releases with no or minor modifications.

To calculate the spatial discretisation, two open-source Matlab functions developped by others are being used.
If you don't change the discretisation, you will not need them.
If you do change the discretisation, please read the license files attached to those two functions ('license chebdif.txt' and 'lisence cumsummat.txt').


Installation
============
###Option 1 - Downloading a .zip file###
Download a .zip file of the code at: [https://github.com/davidhowey/SLIDE/archive/master.zip][5]

Then, unzip the folder in a chosen directory on your computer.

###Option 2 - Cloning the repository with Git###
To clone the repository, you will first need to have [Git][6] installed on
your computer. Then, navigate to the directory where you want to clone the
repository in a terminal, and type:
```
git clone https://github.com/davidhowey/SLIDE.git
```
The folder containing all the files should appear in your chosen directory.


Getting started
===============
Detailed instructions on how to get started are in the pdf document '1 Getting started.pdf'.
You first have to import the code to your programming environment and make sure the settings are correct (e.g. to allow enough memory for the calculation).
Then you can open Main.cpp, which implements the main-function. In this function you choose what to simulate by uncommenting the thing you want to do (and commenting all other lines).
It is recommended to start with the CCCV-function, which simulates a few CCCV cycles.
You will then have to build (or compile) the code, which might take a while the first time you do this.
Now you can run the code (either locally in the programming environment or by running the executable which was created by the compiler).
While the simulation is running, csv files with the results are written in one or multiple subfolders.
When the simulation has finished, you can run the corresponding MATLAB-script (e.g. readCCCV.m) to plot the outcomes.

Much more detailed documentation can be found in the various pdf documents (from '1 Getting started' to '7 appendixes; debugging, basics of C++, object oriented programming').
These pdf guides are mostly independent of each other, so you don't have to read all of them.
Also the code itself is extensively commented, so you might not have to read the pdf guides at all.


License
=======
This open-source C++ and Matlab code is published under the BSD 3-clause License,
please read `LICENSE.txt` file for more information.

Two Matlab functions used by the code to produce the spatial discretisation have been developped by others.
They come with their own lisence, see 'license chebdif.txt' and 'lisence cumsummat.txt'.


[1]: LINK_TO_ZENODO
[2]: https://github.com/davidhowey/Spectral_li-ion_SPM
[3]: http://epg.eng.ox.ac.uk/howey/
[4]: mailto:[email protected]
[5]: https://github.com/davidhowey/SLIDE/archive/master.zip
[6]: https://git-scm.com/


0 comments on commit 59be865

Please sign in to comment.