Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Modifying the 1D lithium ion battery example from the Application Library: undefined value error
Posted 2026/01/29 9:33 GMT-5 Battery Design, Materials, Studies & Solvers Version 6.3 0 Replies
Please login with a confirmed email address before reporting spam
Hi everyone,
I'm starting to model lithium-ion batteries using COMSOL Multiphysics and am struggling to get a hang of the dependencies in the program. I'm trying to expand the Lithium Battery Designer file from the Application Library to reflect the materials in my battery. The cathode is originally described by a material link and I have successfully run the time-dependent voltage profile calculations with NMC111, NMC811 and LCO as the cathode material, but when I attempt to switch it to LFP (which is already included in the material link), I get the following error when I try to compute a new solution:
Undefined value found. - Detail: Undefined value found in the equation residual vector. There are 35 degrees of freedom giving NaN/Inf in the vector for the variable comp1.phil. at coordinates: (0), (4.24239e-06), (8.48479e-06), (1.27272e-05), (1.69696e-05), ...
There are 35 degrees of freedom giving NaN/Inf in the vector for the variable comp1.phis. at coordinates: (0), (4.24239e-06), (8.48479e-06), (1.27272e-05), (1.69696e-05), ...
I cannot find these dependencies on phil and phis in the Materials node for the component, and I do not see them listed in the Global Definitions/Parameters 1 node. Where should I look to solve this issue?
Attachments:
Hello Beatrice Ricci
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
