Meshing error in defining my own cell model #2809
Unanswered
kumaryash7
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Geometry x positive min should be Ln + Ls |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
I have defined the negative electrode, separator, a positive electrode, and the positive electrode, negative and positive particles geometry , equations and parameters.
Geometry includes:-
geometry = {
"separator": {x_s: {"min": L_n, "max": L_p}},
"positive electrode": {x_p: {"min": L_s, "max": L_p}},
"negative electrode": {x_n: {"min": 0, "max": L_n}},
"positive particle": {r_pos: {"min": 0, "max": R_p}},
"negative particle": {r_neg: {"min": 0, "max": R_n}},
}
My code for the meshing part includes the following:-
submesh_types = {
"separator": pybamm.Uniform1DSubMesh,
"positive electrode": pybamm.Uniform1DSubMesh,
"positive particle": pybamm.Uniform1DSubMesh,
"negative electrode": pybamm.Uniform1DSubMesh,
"negative particle": pybamm.Uniform1DSubMesh,
}
var_pts = {x_s: 10, x_p: 20,x_n:20, r_pos: 30,r_neg:30}
mesh = pybamm.Mesh(geometry, submesh_types, var_pts)
spatial_methods = {
"separator": pybamm.FiniteVolume(),
"positive electrode": pybamm.FiniteVolume(),
"positive particle": pybamm.FiniteVolume(),
"negative electrode": pybamm.FiniteVolume(),
"negative particle": pybamm.FiniteVolume(),
}
disc = pybamm.Discretisation(mesh, spatial_methods)
disc.process_model(model);
After running the code till this point , I get the following error:-
submesh edges are not aligned
Beta Was this translation helpful? Give feedback.
All reactions