-
-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 1112 ec sei params #1136
Issue 1112 ec sei params #1136
Conversation
|
||
c_e_typ = self.param.c_e_typ | ||
L_x = self.param.L_x | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be epsilon * c_e here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I think there should be a better way to do #1112 .
Also, there are some .pkl
files in examples/notebooks
to remove. They should probably be removed when running the notebooks (using os.remove
)
|
||
c_e_typ = self.param.c_e_typ | ||
L_x = self.param.L_x | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
@@ -131,3 +111,48 @@ def set_initial_conditions(self, variables): | |||
j_sei_0 = pybamm.Scalar(0) | |||
|
|||
self.initial_conditions = {L_sei: L_sei_0, j_sei: j_sei_0} | |||
|
|||
def _get_standard_concentraion_variables(self, variables): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this function is only ever called from get_coupled_variables
, there is no need to make it a separate function. Ideally, we should find a way to make it use the method from base_sei
(e.g. with inner set to 0 and outer representing the total)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, makes sense. will change now, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rtimms , merging
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1112 and #1117
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: