Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

julian-evers
Copy link
Collaborator

No description provided.

import pybamm
from pybamm_tea import tea
Copy link
Collaborator

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).

base = pybamm.ParameterValues("Chen2020")

# create a TEA class
tea_class = tea.TEA(base, input)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pybamm_tea.TEA

# electrode stack
print(tea_nco.stack_breakdown_dataframe)
# get the mass and volume loadings as a dataframe
tea_class.masses_and_volumes_dataframe
Copy link
Collaborator

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?

@@ -1,55 +1,121 @@
import unittest
import pybamm
from pybamm_tea import TEA
from pybamm_tea import tea
Copy link
Collaborator

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",
Copy link
Collaborator

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",
Copy link
Collaborator

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

@rtimms
Copy link
Collaborator

rtimms commented Feb 15, 2024

@julian-evers are these changes also in #25 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants