Open jsimonclark opened 2 years ago
Thank you @matthieuruthven for sharing your work-around. We are not quite sure what is causing this issue, but it may be to do with a version difference between your version of Comsol or Matlab and the one we used when we did this work. Did you have any further progress making it work? We are trying to see if we can dig out the mph file
You're welcome, @davidhowey. Yes, the issue is likely to be caused by different versions of MATLAB and COMSOL Multiphysics. I have not managed to fix the issue. Can you remember if, when setting up the model in COMSOL Multiphysics, additional steps were required to enable temperature concavity calculation? Or was calculation included by default?
Bug: After implementing a quick fix for Issue #2 and running the Main_Opt.m script, it runs for a few seconds and then returns the Error Unknown parameter k a. Full error message below.
Error using Battery_model Java exception occurred: Exception:
Messages:
Stack trace:
Error in ObjFunc (line 20) [hy,hz]=Battery_model(T0,Cp,k,h,ku,kappa,alfa_ka,i0ref,Ei0,Ds,DS,Vinit);
Error in Main_Opt (line 27) [Res,ResT,a_mod] = ObjFunc(x0);