Using pybamm's Integral class #4546
Unanswered
isaacbasil
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I think I must have misunderstood the use of pybamm's Integral operator, as I am not getting the results I'd expect. For example, to solve,
$\int_{0}^{R}{f(r)}dr$
$\int_{0}^{R}{1}dr$
$\int_{0}^{R}{1}dr\neq R$
I am writing,
pybamm.Integral(f(r), r)
Where r is a SpatialVariable, for example,
r = pybamm.SpatialVariable("r", domain=["positive particle"], coord_sys="cylindrical polar")
and I define the geometry as,
"positive particle": {r: {"min": pybamm.Scalar(0), "max": R}
However, even with the simplest possible integral,
I am not getting the value I would expect (the radius of the positive particle). In other words,
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions