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.

errror: mass matrix is zero

Please login with a confirmed email address before reporting spam

When I try to run the attached script which solves an eigenvalue equation with different parameters, I get the error: mass matrix is zero.
Does anyone know why this happens?


3 Replies Last Post 2016年7月22日 GMT-4 12:11
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2016年5月22日 GMT-4 10:36
Hi

But the egenfrequency solves for lambda that is a multiplier of "da" and "ea" (see the equations of the Coefficient PDE node, these are first and second time derivative of your PDE), but you have set both to "0" so the "mass" matrix is null.

What are you trying to analyze exactly ?

--
Good luck
Ivar
Hi But the egenfrequency solves for lambda that is a multiplier of "da" and "ea" (see the equations of the Coefficient PDE node, these are first and second time derivative of your PDE), but you have set both to "0" so the "mass" matrix is null. What are you trying to analyze exactly ? -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2016年5月24日 GMT-4 07:19
Okay thanks I had not realized that. I have now set d_a=0, but the solution I get makes no sense. Do you know what goes wrong numerically since I get a solution that looks like that?
What I am trying to solve is the eigenvalue equation for a more difficult geometry but I get solutions that do not make sense so I have made this test geometry to try and analyze what goes wrong with the solution.
Okay thanks I had not realized that. I have now set d_a=0, but the solution I get makes no sense. Do you know what goes wrong numerically since I get a solution that looks like that? What I am trying to solve is the eigenvalue equation for a more difficult geometry but I get solutions that do not make sense so I have made this test geometry to try and analyze what goes wrong with the solution.


Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2016年7月22日 GMT-4 12:11
Hello,

I have built a model using Pressure acoustic, frequency domain module. I am trying to extract the state space matrices using LiveLink for MATLAB. The problem is the mass matrix is evaluated as a Null Matrix.
My system is a simple cylindrical tube which I have especified pressure boundary condition at its inlet and sound soft boundary at the outlet. The walls are also considered sound hard boundry conditions.

I will be really thankful if you give me so hints for solving my problem.

Kind regards,

Shahin Mohammadnejad
Hello, I have built a model using Pressure acoustic, frequency domain module. I am trying to extract the state space matrices using LiveLink for MATLAB. The problem is the mass matrix is evaluated as a Null Matrix. My system is a simple cylindrical tube which I have especified pressure boundary condition at its inlet and sound soft boundary at the outlet. The walls are also considered sound hard boundry conditions. I will be really thankful if you give me so hints for solving my problem. Kind regards, Shahin Mohammadnejad

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.