-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
1 parent
b5c60a2
commit 17edb36
Showing
7 changed files
with
199 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .base_sei import BaseModel | ||
from .reaction_limited import ReactionLimited | ||
from .no_sei import NoSEI |
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,29 @@ | ||
# | ||
# Class for no SEI | ||
# | ||
import pybamm | ||
from .base_sei import BaseModel | ||
|
||
|
||
class NoSEI(BaseModel): | ||
"""Base class for no SEI. | ||
Parameters | ||
---------- | ||
param : parameter class | ||
The parameters to use for this submodel | ||
domain : str | ||
The domain of the model either 'Negative' or 'Positive' | ||
**Extends:** :class:`pybamm.particle.BaseParticle` | ||
""" | ||
|
||
def __init__(self, param, domain): | ||
super().__init__(param, domain) | ||
|
||
def get_fundamental_variables(self): | ||
zero = pybamm.PrimaryBroadcast(pybamm.Scalar(0), self.domain.lower()) | ||
variables = self._get_standard_thickness_variables(zero, zero) | ||
variables.update(self._get_standard_reaction_variables(zero, zero)) | ||
return variables |
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