-
-
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.
- Loading branch information
Showing
141 changed files
with
2,617 additions
and
1,919 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Electrical Parameters | ||
===================== | ||
|
||
.. automodule:: pybamm.parameters.electrical_parameters | ||
.. autoclass:: pybamm.ElectricalParameters |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Geometric Parameters | ||
==================== | ||
|
||
.. automodule:: pybamm.parameters.geometric_parameters | ||
|
||
.. autoclass:: pybamm.GeometricParameters |
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,4 @@ | ||
Lead-Acid Parameters | ||
==================== | ||
|
||
.. autoclass:: pybamm.LeadAcidParameters |
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,4 @@ | ||
Lithium-ion Parameters | ||
====================== | ||
|
||
.. autoclass:: pybamm.LithiumIonParameters |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Base Parameter Values | ||
===================== | ||
Parameter Values | ||
================ | ||
|
||
.. autoclass:: pybamm.ParameterValues | ||
:members: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Thermal Parameters | ||
===================== | ||
================== | ||
|
||
.. automodule:: pybamm.parameters.thermal_parameters | ||
.. autoclass:: pybamm.ThermalParameters |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,53 @@ | ||
# | ||
# Example showing how to prescribe the surface area per unit volume independent of | ||
# the assumed particle shape. Setting the "particle shape" option to "user" returns | ||
# a model which solves a spherical diffusion problem in the particles, but passes | ||
# a user supplied surface area per unit volume | ||
# | ||
|
||
import pybamm | ||
import numpy as np | ||
|
||
pybamm.set_logging_level("INFO") | ||
|
||
models = [ | ||
pybamm.lithium_ion.DFN({"particle shape": "spherical"}, name="spherical"), | ||
pybamm.lithium_ion.DFN({"particle shape": "user"}, name="user"), | ||
] | ||
params = [models[0].default_parameter_values, models[0].default_parameter_values] | ||
|
||
# set up and solve simulations | ||
solutions = [] | ||
t_eval = np.linspace(0, 3600, 100) | ||
|
||
for model, param in zip(models, params): | ||
if model.name == "user": | ||
# add the user supplied parameters | ||
param.update( | ||
{ | ||
"Negative electrode surface area to volume ratio [m-1]": 170000, | ||
"Positive electrode surface area to volume ratio [m-1]": 200000, | ||
"Negative surface area per unit volume distribution in x": 1, | ||
"Positive surface area per unit volume distribution in x": 1, | ||
}, | ||
check_already_exists=False, | ||
) | ||
|
||
sim = pybamm.Simulation(model, parameter_values=param) | ||
solution = sim.solve(t_eval) | ||
solutions.append(solution) | ||
|
||
# plot solutions | ||
pybamm.dynamic_plot( | ||
solutions, | ||
[ | ||
"Negative particle surface concentration [mol.m-3]", | ||
"Positive particle surface concentration [mol.m-3]", | ||
"Negative electrode interfacial current density [A.m-2]", | ||
"Positive electrode interfacial current density [A.m-2]", | ||
"Negative electrode potential [V]", | ||
"Electrolyte potential [V]", | ||
"Positive electrode potential [V]", | ||
"Terminal voltage [V]", | ||
], | ||
) |
Oops, something went wrong.