Skip to content

Commit 2c223ba

Browse files
Merge pull request #1404 from Saransh-cpp/issue-1388-missing-operating-mode-from-docstring
Added 'operating mode' to the doc string of BaseBatteryModel class
2 parents e1c7273 + 72c6119 commit 2c223ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pybamm/models/full_battery_models/base_battery_model.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class BaseBatteryModel(pybamm.BaseModel):
7979
- "none": :class:`pybamm.sei.NoSEI` (no SEI growth)
8080
- "constant": :class:`pybamm.sei.Constant` (constant SEI thickness)
8181
- "reaction limited": :class:`pybamm.sei.ReactionLimited`
82-
- "solvent-diffusion limited": \
82+
- "solvent-diffusion limited":\
8383
:class:`pybamm.sei.SolventDiffusionLimited`
8484
- "electron-migration limited": \
8585
:class:`pybamm.sei.ElectronMigrationLimited`
@@ -130,6 +130,13 @@ class BaseBatteryModel(pybamm.BaseModel):
130130
solve an algebraic equation for it. Default is "false", unless "sei film
131131
resistance" is distributed in which case it is automatically set to
132132
"true".
133+
* "operating mode" : str
134+
Sets the operating mode for the model. Can be "current" (default),
135+
"voltage" or "power". Alternatively, the operating mode can be
136+
controlled with an arbitrary function by passing the function directly
137+
as the option. In this case the function must define the residual of
138+
an algebraic equation. The applied current will be solved for such
139+
that the algebraic constraint is satisfied.
133140
134141
**Extends:** :class:`pybamm.BaseModel`
135142
"""

0 commit comments

Comments
 (0)