-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
New Notebooks (masses_and_volumes, capacities_and_potentials and ragone), documentation, testing #23
base: main
Are you sure you want to change the base?
Conversation
examples/stack_breakdown.py
Outdated
import pybamm | ||
from pybamm_tea import tea |
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.
does this work? you shouldn't be able to import tea
(it's not a method anywhere).
examples/stack_breakdown.py
Outdated
base = pybamm.ParameterValues("Chen2020") | ||
|
||
# create a TEA class | ||
tea_class = tea.TEA(base, input) |
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.
pybamm_tea.TEA
examples/stack_breakdown.py
Outdated
# electrode stack | ||
print(tea_nco.stack_breakdown_dataframe) | ||
# get the mass and volume loadings as a dataframe | ||
tea_class.masses_and_volumes_dataframe |
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.
why not print this anymore?
tests/test_tea.py
Outdated
@@ -1,55 +1,121 @@ | |||
import unittest | |||
import pybamm | |||
from pybamm_tea import TEA | |||
from pybamm_tea import tea |
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.
does this work? I don't get why how you import things has changed in this PR?
"# create vectors of stoichiometries\n", | ||
"soc = pybamm.linspace(0, 1)\n", | ||
"x = x0 + (x100 - x0) * soc\n", | ||
"y = y100 + (y0 - y100) * soc\n", |
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.
check how you've defined this. right now at soc=1 you have that y = y0, not y100. I think it should be
x = x_0 + soc * (x_100 - x_0)
y = y_0 - soc * (y_0 - y_100)
but also check how you have defined x_0, x_100, y_0, y_100. these should be defined wrt to cell level SOC
"input_lithium_discharged = {\n", | ||
"\n", | ||
" # initialize the concentration in the negative electrode\n", | ||
" \"Initial concentration in negative electrode [mol.m-3]\": None,\n", |
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.
can you explain what happens/why you have set these to None
@julian-evers are these changes also in #25 ? |
No description provided.