Skip to content
Discussion options

You must be logged in to vote

Working solution found:

dfn = pybamm.lithium_ion.DFN()
print(dfn.default_var_pts)

-> {'x_n': 20, 'x_s': 20, 'x_p': 20, 'r_n': 20, 'r_p': 20, 'y': 10, 'z': 10, 'R_n': 30, 'R_p': 30}

The default mesh is not fine enough. Manually set the mesh to be finer with var_pts by increasing the number of points.

# most values increased to 40, up from 20. y, z, R_n, and R_p kept at original values
var_pts = {
    "x_n" : 40,  # x-direction, length, negative electrode
    "x_s" : 40,  # x-direction, length, separator
    "x_p" : 40,  # x-direction, length, positive electrode
    "r_n" : 40,  # number of volumes in the radial direction, negative particle
    "r_p" : 40   # number of volumes in the radial…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RobinBluehub
Comment options

Answer selected by Mykle99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants