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.

error code 7161

Please login with a confirmed email address before reporting spam


Hej, everyone

I am making a simulation with Optimization Lab.
And I get an error which has the code 7161 with a message "The mass matrix is zero".

Can any one tell me what does this mean?

Thanks.
Regards.

2 Replies Last Post 12 lug 2010, 19:38 GMT-4
COMSOL Moderator

Hello Sicheng Zhou

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.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26 mag 2010, 11:36 GMT-4
I had a similar problem recently using the RF module with COMSOL 3.5a on a Linux machine where I got the "error 7161: Mass matrix is zero" message. I searched the comsol.com "Knowledge Base" for an explanation, and was referred to the Multiphysics Reference Manual. Unfortunately, there is absolutely no mention of error 7161 in the COMSOL 3.5a Multiphysics Reference Manual.

What I finally figured out was that under the subdomain settings, the numerical values for the electrical conductivity (for materials I had loaded from COMSOL's materials library) contained non-numerical characters indicating the units, e.g., "1E-6[S/m]". Basically, after removing those characters, i.e. just making them all "0" (since I really didn't care about the electrical conductivity for my application), the simulation ran fine. However, it was not actually that simple, since I had to de-select the materials loaded from the library and then enter the values by had for the various materials, and even after removing the "[S/m]" characters, I would get an "error 7111: SIngular matrix" for any non-zero values, so this still could be a problem if I ever need a nonzero electrical conductivity. I'm not sure if this is just a materials library issue with the Linux version of COMSOL 3.5a, or if the bug is more pervasive than that.

The way this was discovered was from the stack trace of the error message. When the error message pops up, there is a little button on the dialog box called "Details >>". If you hit that, it shows you some information about what is going wrong, including a section called "Stack trace". In my case, several of the lines in that section mentioned "Unknown Source", and when I went into subdomain settings for "Physics", that is where I saw the extraneous characters. The bottom line is: check your subdomain settings for any non-numerical characters in the values, particularly for properties loaded from the materials library.

Hope that this helps someone.
I had a similar problem recently using the RF module with COMSOL 3.5a on a Linux machine where I got the "error 7161: Mass matrix is zero" message. I searched the comsol.com "Knowledge Base" for an explanation, and was referred to the Multiphysics Reference Manual. Unfortunately, there is absolutely no mention of error 7161 in the COMSOL 3.5a Multiphysics Reference Manual. What I finally figured out was that under the subdomain settings, the numerical values for the electrical conductivity (for materials I had loaded from COMSOL's materials library) contained non-numerical characters indicating the units, e.g., "1E-6[S/m]". Basically, after removing those characters, i.e. just making them all "0" (since I really didn't care about the electrical conductivity for my application), the simulation ran fine. However, it was not actually that simple, since I had to de-select the materials loaded from the library and then enter the values by had for the various materials, and even after removing the "[S/m]" characters, I would get an "error 7111: SIngular matrix" for any non-zero values, so this still could be a problem if I ever need a nonzero electrical conductivity. I'm not sure if this is just a materials library issue with the Linux version of COMSOL 3.5a, or if the bug is more pervasive than that. The way this was discovered was from the stack trace of the error message. When the error message pops up, there is a little button on the dialog box called "Details >>". If you hit that, it shows you some information about what is going wrong, including a section called "Stack trace". In my case, several of the lines in that section mentioned "Unknown Source", and when I went into subdomain settings for "Physics", that is where I saw the extraneous characters. The bottom line is: check your subdomain settings for any non-numerical characters in the values, particularly for properties loaded from the materials library. Hope that this helps someone.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 12 lug 2010, 19:38 GMT-4
Helped me a lot, had the exact same problem just now. Thanks!
Helped me a lot, had the exact same problem just now. Thanks!

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.