|
1 | 1 | import pybamm as pb
|
2 |
| -options = {"sei": "ec reaction limited", |
3 |
| - "porosity": "variable porosity"} |
| 2 | + |
| 3 | +pb.set_logging_level("INFO") |
| 4 | +options = {"sei": "ec reaction limited", "sei porosity change": True} |
4 | 5 | param = pb.ParameterValues(chemistry=pb.parameter_sets.Ramadass2004)
|
5 | 6 | model = pb.lithium_ion.DFN(options)
|
6 |
| -experiment = pb.Experiment(( |
| 7 | +experiment = pb.Experiment( |
7 | 8 | [
|
8 | 9 | "Charge at 1 C until 4.2 V",
|
9 | 10 | "Hold at 4.2 V until C/10",
|
10 | 11 | "Rest for 5 minutes",
|
11 |
| - "Discharge at 2 C until 2.8 V (1 seconds period)", |
| 12 | + "Discharge at 2 C until 2.8 V", |
12 | 13 | "Rest for 5 minutes",
|
13 | 14 | ]
|
14 |
| - * 5 + |
15 |
| - [ |
| 15 | + * 2 |
| 16 | + + [ |
16 | 17 | "Charge at 1 C until 4.2 V",
|
17 | 18 | "Hold at 4.2 V until C/20",
|
18 | 19 | "Rest for 30 minutes",
|
19 |
| - "Discharge at C/3 until 2.8 V(1 seconds period)", |
| 20 | + "Discharge at C/3 until 2.8 V", |
20 | 21 | "Charge at 1 C until 4.2 V",
|
21 | 22 | "Hold at 4.2 V until C/20",
|
22 | 23 | "Rest for 30 minutes",
|
23 |
| - "Discharge at 1 C until 2.8 V(1 seconds period)", |
| 24 | + "Discharge at 1 C until 2.8 V", |
24 | 25 | "Charge at 1 C until 4.2 V",
|
25 | 26 | "Hold at 4.2 V until C/20",
|
26 | 27 | "Rest for 30 minutes",
|
27 |
| - "Discharge at 2 C until 2.8 V(1 seconds period)", |
| 28 | + "Discharge at 2 C until 2.8 V", |
28 | 29 | "Charge at 1 C until 4.2 V",
|
29 | 30 | "Hold at 4.2 V until C/20",
|
30 | 31 | "Rest for 30 minutes",
|
31 |
| - "Discharge at 3 C until 2.8 V(1 seconds period)", |
32 |
| - ]) * 2 |
| 32 | + "Discharge at 3 C until 2.8 V", |
| 33 | + ] |
33 | 34 | )
|
34 |
| -sim = pb.Simulation(model, experiment=experiment, |
35 |
| - parameter_values=param) |
36 |
| -sim.solve(solver=pb.CasadiSolver(mode="safe")) |
| 35 | +sim = pb.Simulation(model, experiment=experiment, parameter_values=param) |
| 36 | +sim.solve(solver=pb.CasadiSolver(mode="safe", dt_max=120)) |
37 | 37 | sim.plot(
|
38 | 38 | [
|
39 | 39 | "Current [A]",
|
40 |
| - 'Total current density [A.m-2]', |
| 40 | + "Total current density [A.m-2]", |
41 | 41 | "Terminal voltage [V]",
|
42 | 42 | "Discharge capacity [A.h]",
|
43 | 43 | "Electrolyte potential [V]",
|
|
48 | 48 | "X-averaged total negative electrode sei thickness [m]",
|
49 | 49 | ]
|
50 | 50 | )
|
51 |
| - |
0 commit comments