Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Singular matrix, returned solution not converged
Posted 2014年2月10日 GMT-5 19:47 Modeling Tools & Definitions, Parameters, Variables, & Functions, Studies & Solvers Version 4.3b, Version 4.4 0 Replies
Please login with a confirmed email address before reporting spam
I have a Matlab code that solves four coupled differential equations, which works and gives me the attached plot. (The actual code is here: www.ee.ucl.ac.uk/~rjames/modelling/constant-order/oned/, scroll down to "lc3k.m" along with a description of the problem if you want more details.)
Now I try to reproduce it in COMSOL. I have attached my attempt. This is my first time using PDE interfaces in COMSOL.
First I put the equations under Model 1 > General Form PDE. I have double checked these are typed correctly, and they come straight from the matlab code.
Next I put the boundary conditions (Dirichlet conditions at x=0 and at x=1, same as the Matlab code) under Model 1 > General form PDE > Initial values. These guesses are pretty close to the solution so I don't think that's the problem.
Next I click Solve and find:
"Failed to find a solution. Singular matrix. Returned solution is not converged."
I've tried using various different solvers and don't know what else to try. Can someone tell me how to pinpoint the problem, or, an example of solving coupled 1D differential equations?
Thanks!
Attachments:
Hello dnh37
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.