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.

Undefined value found in the equation residual vector.

Please login with a confirmed email address before reporting spam

I am trying to model a pem fuel cell. Although I have entered all parameters and values, i have some errors as follows;

Undefined value found.
- Detail: Undefined value found in the equation residual vector.
There are 4 degrees of freedom giving NaN/Inf in the vector for the variable mod1.wH2Oc
at coordinates: (0.0022813,0), (0.0022432,0), (0.0022813,7e-005), (0.0022432,7e-005), ...
There are 4 degrees of freedom giving NaN/Inf in the vector for the variable mod1.wO2
at coordinates: (0.0022813,0), (0.0022432,0), (0.0022813,7e-005), (0.0022432,7e-005), ...

Can you help me please?

23 Replies Last Post 30 gen 2017, 04:25 GMT-5
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: 1 decade ago 13 mag 2011, 16:31 GMT-4
Hi

for me this typically indicateds that you do not have enough boundary conditions defined to get to a unique solution, go over you model again, and ask yourself if all dependent variables have enough BC's

--
Good luck
Ivar
Hi for me this typically indicateds that you do not have enough boundary conditions defined to get to a unique solution, go over you model again, and ask yourself if all dependent variables have enough BC's -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 13 mag 2011, 17:35 GMT-4


When I used to average velocity instead of volumetric flow rate as boundary condition, it did not give error message and it solved.

Thanks your help
When I used to average velocity instead of volumetric flow rate as boundary condition, it did not give error message and it solved. Thanks your help

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 10 dic 2013, 23:36 GMT-5
YES! it means not proper boundary conditions! Comsol always speaks in riddles!
YES! it means not proper boundary conditions! Comsol always speaks in riddles!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 3 feb 2014, 13:45 GMT-5
I don't completely agree. I faced the same error while modeling semiconductor device. Boundary conditions are either insulating or metal that is enough to define dependent variables which are V - potential, n - electron density and p - hole density.
I don't completely agree. I faced the same error while modeling semiconductor device. Boundary conditions are either insulating or metal that is enough to define dependent variables which are V - potential, n - electron density and p - hole density.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 feb 2014, 19:03 GMT-5
How could you solve this problem? I mean you mentioned that you have the following message
"undefined values found in the equation residual vector" while defining proper BC for your semiconductor.
I really need your help!
How could you solve this problem? I mean you mentioned that you have the following message "undefined values found in the equation residual vector" while defining proper BC for your semiconductor. I really need your help!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14 lug 2014, 15:45 GMT-4
Hi all,

I just wanted to share a solution for this problem. It works in some cases.

I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions.

Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that.

Best regards,
Marwan
Hi all, I just wanted to share a solution for this problem. It works in some cases. I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions. Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that. Best regards, Marwan

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 13 gen 2015, 06:16 GMT-5
I have experienced the same problem. By changing the Poisson's ratio to a lower value the model run.


Hi all,

I just wanted to share a solution for this problem. It works in some cases.

I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions.

Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that.

Best regards,
Marwan


I have experienced the same problem. By changing the Poisson's ratio to a lower value the model run. [QUOTE] Hi all, I just wanted to share a solution for this problem. It works in some cases. I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions. Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that. Best regards, Marwan [/QUOTE]

Charalampos Ferekidis

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 23 gen 2015, 06:29 GMT-5
I noted exactly the same behaviour when trying to solve an acoustic problem. One material had by accident a poisson ratio of 0.5 and I got the error "Undefined value found in the equation residual vector". However when changing the ratio to 0.49 everything was fine.


I have experienced the same problem. By changing the Poisson's ratio to a lower value the model run.


Hi all,

I just wanted to share a solution for this problem. It works in some cases.

I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions.

Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that.

Best regards,
Marwan



I noted exactly the same behaviour when trying to solve an acoustic problem. One material had by accident a poisson ratio of 0.5 and I got the error "Undefined value found in the equation residual vector". However when changing the ratio to 0.49 everything was fine. [QUOTE] I have experienced the same problem. By changing the Poisson's ratio to a lower value the model run. [QUOTE] Hi all, I just wanted to share a solution for this problem. It works in some cases. I am not sure how your models look like, but I can tell you that one of the main reason behind this error is not have enough boundary conditions. Another reason might cause this, and it happened to me, is the properties of the materials, such as the poisson's ratio. I kept getting the same error as the one you mentioned, although I set enough boundary conditions. Then, the problem was solved just by changing the poisson's ratio of PDMS from 0.5 to 0.49, and everything worked fine after that. Best regards, Marwan [/QUOTE] [/QUOTE]

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 6 feb 2015, 02:06 GMT-5
Hi Ivar,
I saw you helped so many people. Thanks for your generous help. And could you help me with this premixed laminar combustion of hydrogen in a 2-D symmetric cylinder ?
I am using COMSOL to simulate steady state premixed laminar combustion of hydrogen (all mixture can be considered as ideal gas)in a cylinder with specific diameter to get the space dependent temperature and concentration distribution. So I coupled the laminar flow, heat transfer in flows and transport in diluted species(I am not sure whether it is proper to use this module for mass transport , to make it more reasonable, I assume the reactants ,i.e. the hydrogen and the oxygen are dissolved in nitrogen). But then I encountered the problem “Undefined value found in the equation residual vector”. I tried the methods you mentioned here but it seems they do not work. Could you help me with this?
I really appreciate your kind help.
Best,
Kate
Hi Ivar, I saw you helped so many people. Thanks for your generous help. And could you help me with this premixed laminar combustion of hydrogen in a 2-D symmetric cylinder ? I am using COMSOL to simulate steady state premixed laminar combustion of hydrogen (all mixture can be considered as ideal gas)in a cylinder with specific diameter to get the space dependent temperature and concentration distribution. So I coupled the laminar flow, heat transfer in flows and transport in diluted species(I am not sure whether it is proper to use this module for mass transport , to make it more reasonable, I assume the reactants ,i.e. the hydrogen and the oxygen are dissolved in nitrogen). But then I encountered the problem “Undefined value found in the equation residual vector”. I tried the methods you mentioned here but it seems they do not work. Could you help me with this? I really appreciate your kind help. Best, Kate


Please login with a confirmed email address before reporting spam

Posted: 10 years ago 2 apr 2015, 03:11 GMT-4
LOL
I exactly met same prob and solved it.

You guys must use PDMS, right? lollll.
LOL I exactly met same prob and solved it. You guys must use PDMS, right? lollll.

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 2 apr 2015, 09:55 GMT-4
Hi, so you also work on combustion problem? I used the PARDISO solver for the steady-state simulation. so you mean this information? How should I change it?
Thanks for your help, Kaiwen.
Hi, so you also work on combustion problem? I used the PARDISO solver for the steady-state simulation. so you mean this information? How should I change it? Thanks for your help, Kaiwen.

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 14 apr 2015, 17:10 GMT-4
I found the same issue in the Thermoelectric module and the issue was related to how the electrical conductivity was calculated.
All my properties are functions of T[K] and refer to tables... I initially tried to define the conductivity via the inverse equation of Rho(T) [Ohm*m], since I had tabulated data for Resistivity only. I called the inverse equation sig(T) [S/m] and experienced the error described above.
I went back to the material properties and instead defined Sigma as 1/Rho(T) and the issue disappeared.
Cheers
I found the same issue in the Thermoelectric module and the issue was related to how the electrical conductivity was calculated. All my properties are functions of T[K] and refer to tables... I initially tried to define the conductivity via the inverse equation of Rho(T) [Ohm*m], since I had tabulated data for Resistivity only. I called the inverse equation sig(T) [S/m] and experienced the error described above. I went back to the material properties and instead defined Sigma as 1/Rho(T) and the issue disappeared. Cheers

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 21 apr 2015, 18:26 GMT-4
Hi All,
I am getting this error in my non-reciprocal device. Material I used are (sio2, Al, PVDF) air, and ground.
I am getting this error:
Undefined value found.
- Detail: Undefined value found in the equation residual vector.
There are 1264294 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E10.
at coordinates: (0.000359841,0.000300061,4.29763e-006), (0.000359837,0.000300122,4.24882e-006), (0.000359819,0.0003,4.29763e-006), (0.000359811,0.000300122,4.2e-006), (0.000359793,0.0003,4.24882e-006), ...
There are 934276 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E20.
at coordinates: (0.000359815,0.000300061,4.24882e-006), (0.000359893,0.000300061,4.24882e-006), (0.000359871,0.0003,4.24882e-006), (0.000359867,0.000300061,4.2e-006), (0.00035975,0.0003,4.322e-006), ...
There are 934276 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E21.
at coordinates: (0.000359815,0.000300061,4.24882e-006), (0.000359893,0.000300061,4.24882e-006), (0.000359871,0.0003,4.24882e-006), (0.000359867,0.000300061,4.2e-006), (0.00035975,0.0003,4.322e-006), ...

Can someone suggest me possible error in my structure.
It is attached here.

Hi All, I am getting this error in my non-reciprocal device. Material I used are (sio2, Al, PVDF) air, and ground. I am getting this error: Undefined value found. - Detail: Undefined value found in the equation residual vector. There are 1264294 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E10. at coordinates: (0.000359841,0.000300061,4.29763e-006), (0.000359837,0.000300122,4.24882e-006), (0.000359819,0.0003,4.29763e-006), (0.000359811,0.000300122,4.2e-006), (0.000359793,0.0003,4.24882e-006), ... There are 934276 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E20. at coordinates: (0.000359815,0.000300061,4.24882e-006), (0.000359893,0.000300061,4.24882e-006), (0.000359871,0.0003,4.24882e-006), (0.000359867,0.000300061,4.2e-006), (0.00035975,0.0003,4.322e-006), ... There are 934276 degrees of freedom giving NaN/Inf in the vector for the variable comp1.E21. at coordinates: (0.000359815,0.000300061,4.24882e-006), (0.000359893,0.000300061,4.24882e-006), (0.000359871,0.0003,4.24882e-006), (0.000359867,0.000300061,4.2e-006), (0.00035975,0.0003,4.322e-006), ... Can someone suggest me possible error in my structure. It is attached here.

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 6 mag 2015, 03:12 GMT-4
yes, I agree with you. However, sometimes I also meet the same problem when modeling semiconductor even I
have carefully made the boundary conditions. Have you met the same problem? and can you give me any suggestions for handling it?
Thanks!
yes, I agree with you. However, sometimes I also meet the same problem when modeling semiconductor even I have carefully made the boundary conditions. Have you met the same problem? and can you give me any suggestions for handling it? Thanks!

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 21 ago 2015, 12:02 GMT-4
Hi

I'm doing a kind of coupler with Si and SiO2 and comsol gives the same error when I try to simulate, could you tell me if you managed this error ?


Hi I'm doing a kind of coupler with Si and SiO2 and comsol gives the same error when I try to simulate, could you tell me if you managed this error ?

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 21 ago 2015, 12:15 GMT-4
Hi,
Sorry for delay, I have tried coarse mesh but it doesn't work then I tried to mesh with normal and it works good. I got the solution but I still have some questions because I didn't get the similar result as theoretical. I suggest try doing meshing very carefully.
Good luck!
Kumar
Hi, Sorry for delay, I have tried coarse mesh but it doesn't work then I tried to mesh with normal and it works good. I got the solution but I still have some questions because I didn't get the similar result as theoretical. I suggest try doing meshing very carefully. Good luck! Kumar

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 1 apr 2016, 15:24 GMT-4
Hi Charalampos

Thank you for your answer. I have a material with the same problem. I have defined a material with a poisson's ratio of 0.5 and I obtained the same error msg in Comsol.

I have changed the value of 0.5 to 0.49 and my model is running.

Salvador
Hi Charalampos Thank you for your answer. I have a material with the same problem. I have defined a material with a poisson's ratio of 0.5 and I obtained the same error msg in Comsol. I have changed the value of 0.5 to 0.49 and my model is running. Salvador

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 1 apr 2016, 15:27 GMT-4
yes the problem is the poisson's ratio in materials.
yes the problem is the poisson's ratio in materials.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 16 ago 2016, 21:59 GMT-4
I also met this error. But after my testing my model of electromagnetic waves, I got this fact that when my incident wavelength is lager than 600nm, my model can get proper results successfully, however, if the incident wavelength is smaller 600nm, like 55nm. the software would give this error. I am really confused why. Appreciate for your help if you could give me any advices, thank you!
I also met this error. But after my testing my model of electromagnetic waves, I got this fact that when my incident wavelength is lager than 600nm, my model can get proper results successfully, however, if the incident wavelength is smaller 600nm, like 55nm. the software would give this error. I am really confused why. Appreciate for your help if you could give me any advices, thank you!

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 21 ago 2016, 07:21 GMT-4
hi, I happened to get the same question to yours. Have you solved it?
hi, I happened to get the same question to yours. Have you solved it?

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 30 nov 2016, 20:47 GMT-5
Hi

I just solved the error. It is because I didn't set a parameter properly(I forgot to set the speed of sound ).
Carefully check all your parameters, sometimes you might have accidently clicked user-defined parameters and the default value might be 0 and it will cause the error.

Hi I just solved the error. It is because I didn't set a parameter properly(I forgot to set the speed of sound ). Carefully check all your parameters, sometimes you might have accidently clicked user-defined parameters and the default value might be 0 and it will cause the error.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 30 gen 2017, 04:09 GMT-5
Hi Fnu Kumar
I meet the same msg error when i tried to similate using the semi-conductor model
'''Undefined value found.
- Detail: Undefined value found in the equation residual vector.
There are 32 degrees of freedom giving NaN/Inf in the vector for the variable comp1.Ne.'''
I know that maybe you forget all this things? but please can you remember or give me any suggestions for handling it?
Thanks
Hi Fnu Kumar I meet the same msg error when i tried to similate using the semi-conductor model '''Undefined value found. - Detail: Undefined value found in the equation residual vector. There are 32 degrees of freedom giving NaN/Inf in the vector for the variable comp1.Ne.''' I know that maybe you forget all this things? but please can you remember or give me any suggestions for handling it? Thanks

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 30 gen 2017, 04:25 GMT-5
I meet the same msg error when i tried to similate using the semi-conductor model
'''Undefined value found.
- Detail: Undefined value found in the equation residual vector.
There are 32 degrees of freedom giving NaN/Inf in the vector for the variable comp1.Ne.'''
please can any one remember or give me any suggestions for handling it?
Thanks
I meet the same msg error when i tried to similate using the semi-conductor model '''Undefined value found. - Detail: Undefined value found in the equation residual vector. There are 32 degrees of freedom giving NaN/Inf in the vector for the variable comp1.Ne.''' please can any one remember or give me any suggestions for handling it? 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.