forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pybamm-team#1073 from pybamm-team/issue-836-add-li…
…thium-plating Issue 836 add lithium plating
- Loading branch information
Showing
72 changed files
with
1,131 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import pybamm as pb | ||
|
||
pb.set_logging_level("INFO") | ||
options = {"sei": "ec reaction limited", "sei porosity change": True} | ||
param = pb.ParameterValues(chemistry=pb.parameter_sets.Ramadass2004) | ||
model = pb.lithium_ion.DFN(options) | ||
experiment = pb.Experiment( | ||
[ | ||
"Charge at 1 C until 4.2 V", | ||
"Hold at 4.2 V until C/10", | ||
"Rest for 5 minutes", | ||
"Discharge at 2 C until 2.8 V", | ||
"Rest for 5 minutes", | ||
] | ||
* 2 | ||
+ [ | ||
"Charge at 1 C until 4.2 V", | ||
"Hold at 4.2 V until C/20", | ||
"Rest for 30 minutes", | ||
"Discharge at C/3 until 2.8 V", | ||
"Charge at 1 C until 4.2 V", | ||
"Hold at 4.2 V until C/20", | ||
"Rest for 30 minutes", | ||
"Discharge at 1 C until 2.8 V", | ||
"Charge at 1 C until 4.2 V", | ||
"Hold at 4.2 V until C/20", | ||
"Rest for 30 minutes", | ||
"Discharge at 2 C until 2.8 V", | ||
"Charge at 1 C until 4.2 V", | ||
"Hold at 4.2 V until C/20", | ||
"Rest for 30 minutes", | ||
"Discharge at 3 C until 2.8 V", | ||
] | ||
) | ||
sim = pb.Simulation(model, experiment=experiment, parameter_values=param) | ||
sim.solve(solver=pb.CasadiSolver(mode="safe", dt_max=120)) | ||
sim.plot( | ||
[ | ||
"Current [A]", | ||
"Total current density [A.m-2]", | ||
"Terminal voltage [V]", | ||
"Discharge capacity [A.h]", | ||
"Electrolyte potential [V]", | ||
"Electrolyte concentration [mol.m-3]", | ||
"Total negative electrode sei thickness", | ||
"Negative electrode porosity", | ||
"X-averaged negative electrode porosity", | ||
"Negative electrode sei interfacial current density [A.m-2]", | ||
"X-averaged total negative electrode sei thickness [m]", | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
pybamm/input/parameters/lithium-ion/anodes/graphite_Ramadass2004/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Graphite anode parameters | ||
|
||
Parameters for a graphite anode, from the paper | ||
|
||
> Marquis, S. G., Sulzer, V., Timms, R., Please, C. P., & Chapman, S. J. (2019). “An asymptotic derivation of a single particle model with electrolyte”. [Journal of The Electrochemical Society](https://doi.org/10.1149/2.0341915jes), 166(15), A3693-A3706. | ||
> P. Ramadass, Bala Haran, Parthasarathy M. Gomadam, Ralph White, and Branko N. Popov.["Development of First Principles Capacity Fade Model for Li-Ion Cells."](https://scholarcommons.sc.edu/cgi/viewcontent.cgi?article=1161&context=eche_facpub) (2004) | ||
and references therein. |
37 changes: 37 additions & 0 deletions
37
...nodes/graphite_Ramadass2004/graphite_electrolyte_exchange_current_density_Ramadass2004.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from pybamm import exp, constants, standard_parameters_lithium_ion | ||
|
||
|
||
def graphite_electrolyte_exchange_current_density_Ramadass2004(c_e, c_s_surf, T): | ||
""" | ||
Exchange-current density for Butler-Volmer reactions between graphite and LiPF6 in | ||
EC:DMC. | ||
References | ||
---------- | ||
.. [1] P. Ramadass, Bala Haran, Parthasarathy M. Gomadam, Ralph White, and Branko | ||
N. Popov. "Development of First Principles Capacity Fade Model for Li-Ion Cells." | ||
(2004) | ||
Parameters | ||
---------- | ||
c_e : :class:`pybamm.Symbol` | ||
Electrolyte concentration [mol.m-3] | ||
c_s_surf : :class:`pybamm.Symbol` | ||
Particle concentration [mol.m-3] | ||
T : :class:`pybamm.Symbol` | ||
Temperature [K] | ||
Returns | ||
------- | ||
:class:`pybamm.Symbol` | ||
Exchange-current density [A.m-2] | ||
""" | ||
m_ref = 4.854 * 10 ** (-6) # (A/m2)(mol/m3)**1.5 | ||
E_r = 37480 | ||
arrhenius = exp(E_r / constants.R * (1 / 298.15 - 1 / T)) | ||
|
||
c_n_max = standard_parameters_lithium_ion.c_n_max | ||
|
||
return ( | ||
m_ref * arrhenius * c_e ** 0.5 * c_s_surf ** 0.5 * (c_n_max - c_s_surf) ** 0.5 | ||
) |
Oops, something went wrong.