Query regarding user-defined submodel classes #3787
-
Hi PyBaMM community, I have experience of few years in the field of cell modeling but am new to python and pybamm. I wish to modify some constant parameters in the existing models (thermal and sei) to function parameters. For example, in the code attached below, I am trying to make the convective heat transfer coefficient a function of cell and ambient temperatures (basically, Grashof and Prandtl numbers). For achieving this, I updated a copy of the lumped class in thermal model and used it instead of the inbuilt thermal models. However, I am getting errors stating " 'ParameterValues' object has no attribute ..." when building the model. Can you explain what is the issue and how to resolve this? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The problem is you are passing paramater_values dict not the lithium_ion.parameters definitions which are symbolic.
I ran your code and changed the above line then ran into some more errors related to the equations you have defined |
Beta Was this translation helpful? Give feedback.
The problem is you are passing paramater_values dict not the lithium_ion.parameters definitions which are symbolic.
I ran your code and changed the above line then ran into some more errors related to the equations you have defined