Replies: 2 comments
-
OCP should only be a function of the stoichiometry, so if you add any other arguments it will throw an error. If you need |
Beta Was this translation helpful? Give feedback.
-
Hi. Thanks for the reply.
params["Positive electrode OCP [V]"]=nmc_LGM50_ocp_Chen2020 The error being shown is: The above code is for dt_max=1e-200,max_step_decrease_count=1e-10, and the error being shown is Maximum number of decreased steps occurred at t=0.0 (final SolverError: 'Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:1401: Could anyone please tell me how to get over this roadblock |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to introduce a concentration term in my Positive OCP function.
The code is pasted below. Sorry for the raw format
The error being shown here is
Could anyone please help as to how I can get over this. Also I don't understand how without mentioning what sto is how pybamm runs the code, like, if I just write
"params["Positive electrode OCP [V]"]=nmc_LGM50_ocp_Chen2020" and not include c_s_max the simulation runs just fine but the moment I include something like "T" in the nmc function as argument it say
"TypeError: nmc_LGM50_ocp_Chen2020() missing 1 required positional argument: 'T'".
How does it run fine without sto but not with addition arguments.
Could anyone please solve this dilemma. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions