-
-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue-923-reformat-electrolyte' into issue-546-convection
- Loading branch information
Showing
66 changed files
with
778 additions
and
171 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
File renamed without changes.
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
File renamed without changes.
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
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
38 changes: 38 additions & 0 deletions
38
.../parameters/lithium-ion/anodes/graphite_UMBL_Mohtat2020/graphite_diffusivity_PeymanMPM.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,38 @@ | ||
import pybamm | ||
|
||
|
||
def graphite_diffusivity_PeymanMPM(sto, T, T_inf, E_D_s, R_g): | ||
""" | ||
Graphite diffusivity as a function of stochiometry, in this case the | ||
diffusivity is taken to be a constant. The value is taken from Peyman MPM. | ||
References | ||
---------- | ||
.. [1] http://www.cchem.berkeley.edu/jsngrp/fortran.html | ||
Parameters | ||
---------- | ||
sto: :class: `numpy.Array` | ||
Electrode stochiometry | ||
T: :class: `numpy.Array` | ||
Dimensional temperature | ||
T_inf: double | ||
Reference temperature | ||
E_D_s: double | ||
Solid diffusion activation energy | ||
R_g: double | ||
The ideal gas constant | ||
Returns | ||
------- | ||
: double | ||
Solid diffusivity | ||
""" | ||
|
||
D_ref = 5.0 * 10 ** (-15) | ||
arrhenius = pybamm.exp(E_D_s / R_g * (1 / T_inf - 1 / T)) | ||
|
||
# Removing the fudge factor 0 * sto requires different handling of either | ||
# either simplifications or how sto is passed into this function. | ||
# See #547 | ||
return D_ref * arrhenius + 0 * sto |
32 changes: 32 additions & 0 deletions
32
...thium-ion/anodes/graphite_UMBL_Mohtat2020/graphite_electrolyte_reaction_rate_PeymanMPM.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,32 @@ | ||
import pybamm | ||
|
||
|
||
def graphite_electrolyte_reaction_rate_PeymanMPM(T, T_inf, E_r, R_g): | ||
""" | ||
Reaction rate for Butler-Volmer reactions between graphite and LiPF6 in EC:DMC. | ||
Check the unit of Reaction rate constant k0 is from Peyman MPM. | ||
References | ||
---------- | ||
.. [2] http://www.cchem.berkeley.edu/jsngrp/fortran.html | ||
Parameters | ||
---------- | ||
T: :class: `numpy.Array` | ||
Dimensional temperature | ||
T_inf: double | ||
Reference temperature | ||
E_r: double | ||
Reaction activation energy | ||
R_g: double | ||
The ideal gas constant | ||
Returns | ||
------- | ||
:`numpy.Array` | ||
Reaction rate | ||
""" | ||
m_ref = 1.061 * 10 ** (-6) # unit has been converted | ||
arrhenius = pybamm.exp(E_r / R_g * (1 / T_inf - 1 / T)) | ||
|
||
return m_ref * arrhenius |
28 changes: 28 additions & 0 deletions
28
...ameters/lithium-ion/anodes/graphite_UMBL_Mohtat2020/graphite_entropic_change_PeymanMPM.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,28 @@ | ||
def graphite_entropic_change_PeymanMPM(sto, c_n_max): | ||
""" | ||
Graphite entropic change in open circuit potential (OCP) at a temperature of | ||
298.15K as a function of the stochiometry taken from [1] | ||
References | ||
---------- | ||
.. [1] K.E. Thomas, J. Newman, "Heats of mixing and entropy in porous insertion | ||
electrode", J. of Power Sources 119 (2003) 844-849 | ||
Parameters | ||
---------- | ||
sto: double | ||
Stochiometry of material (li-fraction) | ||
""" | ||
|
||
du_dT = 10 ** (-3) * ( | ||
0.28 | ||
- 1.56 * sto | ||
- 8.92 * sto ** (2) | ||
+ 57.21 * sto ** (3) | ||
- 110.7 * sto ** (4) | ||
+ 90.71 * sto ** (5) | ||
- 27.14 * sto ** (6) | ||
) | ||
|
||
return du_dT |
36 changes: 36 additions & 0 deletions
36
...mm/input/parameters/lithium-ion/anodes/graphite_UMBL_Mohtat2020/graphite_ocp_PeymanMPM.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,36 @@ | ||
import pybamm | ||
|
||
|
||
def graphite_ocp_PeymanMPM(sto): | ||
""" | ||
Graphite Open Circuit Potential (OCP) as a function of the | ||
stochiometry. The fit is taken from Peyman MPM [1]. | ||
References | ||
---------- | ||
.. [1] Peyman Mohtat et al, MPM (to be submitted) | ||
""" | ||
|
||
u_eq = ( | ||
0.063 | ||
+ 0.8 * pybamm.exp(-75 * (sto + 0.007)) | ||
- 0.0120 * pybamm.tanh((sto - 0.127) / 0.016) | ||
- 0.0118 * pybamm.tanh((sto - 0.155) / 0.016) | ||
- 0.0035 * pybamm.tanh((sto - 0.220) / 0.020) | ||
- 0.0095 * pybamm.tanh((sto - 0.190) / 0.013) | ||
- 0.0145 * pybamm.tanh((sto - 0.490) / 0.020) | ||
- 0.0800 * pybamm.tanh((sto - 1.030) / 0.055) | ||
) | ||
|
||
# u_eq = 1.0 + (0 * sto) | ||
|
||
return u_eq | ||
|
||
|
||
# if __name__ == "__main__": # pragma: no cover | ||
# import matplotlib.pyplot as plt | ||
# import numpy as np | ||
|
||
# x = np.linspace(0, 1) | ||
# plt.plot(x, graphite_ocp_PeymanMPM(x)) | ||
# plt.show() |
41 changes: 41 additions & 0 deletions
41
pybamm/input/parameters/lithium-ion/anodes/graphite_UMBL_Mohtat2020/parameters.csv
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,41 @@ | ||
Name [units],Value,Reference,Notes | ||
# Empty rows and rows starting with ‘#’ will be ignored,,, | ||
,,, | ||
# Electrode properties,,, | ||
Negative electrode conductivity [S.m-1],100,Scott Moura FastDFN,no info from Peyman MPM | ||
Maximum concentration in negative electrode [mol.m-3],28746,Peyman MPM, | ||
Negative electrode diffusion coefficient [m2.s-1],5.0E-15,Peyman MPM, | ||
Negative electrode diffusivity [m2.s-1],[function]graphite_diffusivity_PeymanMPM,, | ||
Negative electrode OCP [V],[function]graphite_ocp_PeymanMPM,Peyman MPM, | ||
,,, | ||
# Microstructure,,, | ||
Negative electrode porosity,0.3,Peyman MPM, | ||
Negative electrode active material volume fraction,0.61,Peyman MPM,rest is binder | ||
Negative particle radius [m],2.5E-06,Peyman MPM, | ||
Negative particle distribution in x,1,, | ||
Negative electrode surface area density [m-1],732000,Peyman MPM,Eq. (48) | ||
Negative electrode Bruggeman coefficient (electrode),1.5,Peyman MPM, | ||
Negative electrode Bruggeman coefficient (electrolyte),1.5,Peyman MPM, | ||
Negative electrode tortuosity, 0.16, | ||
,,, | ||
# Interfacial reactions,,, | ||
Negative electrode cation signed stoichiometry,-1,,no info from Peyman MPM | ||
Negative electrode electrons in reaction,1,,no info from Peyman MPM | ||
Negative electrode reference exchange-current density [A.m-2(m3.mol)1.5],1.061E-6,Peyman MPM,convert unit | ||
Reference OCP vs SHE in the negative electrode [V],,, | ||
Negative electrode charge transfer coefficient,0.5,Peyman MPM, | ||
Negative electrode double-layer capacity [F.m-2],0.2,,no info from Peyman MPM | ||
,,, | ||
# Density,,, | ||
Negative electrode density [kg.m-3],3100,Peyman MPM, cell lumped value | ||
,,, | ||
# Thermal parameters,,, | ||
Negative electrode specific heat capacity [J.kg-1.K-1],1100,Peyman MPM,cell lumped value | ||
Negative electrode thermal conductivity [W.m-1.K-1],1.7,,no info from Peyman MPM | ||
Negative electrode OCP entropic change [V.K-1],[function]graphite_entropic_change_PeymanMPM,, | ||
,,, | ||
# Activation energies,,, | ||
Reference temperature [K],298.15,25C, | ||
Negative electrode reaction rate,[function]graphite_electrolyte_reaction_rate_PeymanMPM,, | ||
Negative reaction rate activation energy [J.mol-1],37480,,no info from Peyman MPM | ||
Negative solid diffusion activation energy [J.mol-1],42770,,no info from Peyman MPM |
Oops, something went wrong.