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.

Error with Air as a medium material in calculating electrostatic force

Please login with a confirmed email address before reporting spam

Hello all,

I want to calculate the electrostatic force due to parallel plate capacitor, and the medium is air, so i make to plates and make a large Box and set its material >> Air

Now i use three physics: Electrostatic - Solid Mechanics - Moving Mesh.

But i usually have this error, and i want help in solving it.

- - - - - - - - - - - - - - - - - - - - - - - - -
Segregated group X1
Failed to evaluate variable.
- Variable: mat.epsilonr22
- Geometry: 1
- Domain: 6
Failed to evaluate variable.
- Variable: mod1.es.epsilonryy
- Defined as: mat.epsilonr22
Failed to evaluate variable.
- Variable: mod1.es.Dy
- Defined as: (mod1.es.Ey*(epsilon0_const*mod1.es.epsilonryy))
Failed to evaluate expression.
- Expression: d((-mod1.es.Dx*test(mod1.Vx)-mod1.es.Dy*test(mod1.Vy)-mod1.es.Dz*test(mod1.Vz))*(dvol_spatial),{test@1})
- - - - - - - - - - - - - - - - - - - - - - - - -

the model is attached, Thanks.

8 Replies Last Post 23.11.2011, 13:41 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 03:31 GMT-4
there is no model....
there is no model....

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 04:55 GMT-4

there is no model....


Sorry
[QUOTE] there is no model.... [/QUOTE] Sorry


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 09:53 GMT-4


there is no model....


Sorry


The first error you are getting is

"Segregated group X1
Failed to evaluate variable.
- Variable: mat.epsilonr22
- Geometry: 1
- Domain: 6"

I looked at your materials and domain 6 has no selection. I am not sure what you are doing with your simulation but what you need to do is add a material to domain 6. What I did was to add it to the poly-si material and that error went away. In re-running the simulation again, I got this error as a new one:

"Segregated group 2
Failed to evaluate variable.
- Variable: mod1.es.nTz_Fes
- Geometry: 1
- Boundary: 20
Failed to evaluate expression.
- Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@2})"

This would seem to imply a boundary condition is not set right in your model. Not sure how to correct it since I am not all that familiar with your model.

Sometimes errors are real easy to spot just because I have done them on my own. When I see a "mat.epsilon" based error, I know that some domain/BC does not have a material assigned or has an empty value associated with it. BC errors can be a bit more difficult to solve as getting the physics right can be tricky.



[QUOTE] [QUOTE] there is no model.... [/QUOTE] Sorry [/QUOTE] The first error you are getting is "Segregated group X1 Failed to evaluate variable. - Variable: mat.epsilonr22 - Geometry: 1 - Domain: 6" I looked at your materials and domain 6 has no selection. I am not sure what you are doing with your simulation but what you need to do is add a material to domain 6. What I did was to add it to the poly-si material and that error went away. In re-running the simulation again, I got this error as a new one: "Segregated group 2 Failed to evaluate variable. - Variable: mod1.es.nTz_Fes - Geometry: 1 - Boundary: 20 Failed to evaluate expression. - Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@2})" This would seem to imply a boundary condition is not set right in your model. Not sure how to correct it since I am not all that familiar with your model. Sometimes errors are real easy to spot just because I have done them on my own. When I see a "mat.epsilon" based error, I know that some domain/BC does not have a material assigned or has an empty value associated with it. BC errors can be a bit more difficult to solve as getting the physics right can be tricky.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 12:21 GMT-4



there is no model....


Sorry


The first error you are getting is

"Segregated group X1
Failed to evaluate variable.
- Variable: mat.epsilonr22
- Geometry: 1
- Domain: 6"

I looked at your materials and domain 6 has no selection. I am not sure what you are doing with your simulation but what you need to do is add a material to domain 6. What I did was to add it to the poly-si material and that error went away. In re-running the simulation again, I got this error as a new one:

"Segregated group 2
Failed to evaluate variable.
- Variable: mod1.es.nTz_Fes
- Geometry: 1
- Boundary: 20
Failed to evaluate expression.
- Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@2})"

This would seem to imply a boundary condition is not set right in your model. Not sure how to correct it since I am not all that familiar with your model.

Sometimes errors are real easy to spot just because I have done them on my own. When I see a "mat.epsilon" based error, I know that some domain/BC does not have a material assigned or has an empty value associated with it. BC errors can be a bit more difficult to solve as getting the physics right can be tricky.


Hi, Thank you very much.
I'll try to solve the material error now, and for the Force error i'll try and tell you the result
Again, Thank you very much, Mohamed.
[QUOTE] [QUOTE] [QUOTE] there is no model.... [/QUOTE] Sorry [/QUOTE] The first error you are getting is "Segregated group X1 Failed to evaluate variable. - Variable: mat.epsilonr22 - Geometry: 1 - Domain: 6" I looked at your materials and domain 6 has no selection. I am not sure what you are doing with your simulation but what you need to do is add a material to domain 6. What I did was to add it to the poly-si material and that error went away. In re-running the simulation again, I got this error as a new one: "Segregated group 2 Failed to evaluate variable. - Variable: mod1.es.nTz_Fes - Geometry: 1 - Boundary: 20 Failed to evaluate expression. - Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@2})" This would seem to imply a boundary condition is not set right in your model. Not sure how to correct it since I am not all that familiar with your model. Sometimes errors are real easy to spot just because I have done them on my own. When I see a "mat.epsilon" based error, I know that some domain/BC does not have a material assigned or has an empty value associated with it. BC errors can be a bit more difficult to solve as getting the physics right can be tricky. [/QUOTE] Hi, Thank you very much. I'll try to solve the material error now, and for the Force error i'll try and tell you the result Again, Thank you very much, Mohamed.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 16:03 GMT-4
I tried to solve the second error but i can't
- - - - - - - - - - - - - - - - - - - - - - -
Segregated group X2
Failed to evaluate variable.
- Variable: mod1.es.nTx_Fes
- Geometry: 1
- Boundary: 23
Failed to evaluate expression.
- Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@1})
- - - - - - - - - - - - - - - - - - - - - - -

so if any one understant this error tell me, Great thanks,
Mohamed.

the model is attached after solving the first error.
I tried to solve the second error but i can't - - - - - - - - - - - - - - - - - - - - - - - Segregated group X2 Failed to evaluate variable. - Variable: mod1.es.nTx_Fes - Geometry: 1 - Boundary: 23 Failed to evaluate expression. - Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@1}) - - - - - - - - - - - - - - - - - - - - - - - so if any one understant this error tell me, Great thanks, Mohamed. the model is attached after solving the first error.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 16:33 GMT-4

I tried to solve the second error but i can't
- - - - - - - - - - - - - - - - - - - - - - -
Segregated group X2
Failed to evaluate variable.
- Variable: mod1.es.nTx_Fes
- Geometry: 1
- Boundary: 23
Failed to evaluate expression.
- Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@1})
- - - - - - - - - - - - - - - - - - - - - - -

so if any one understant this error tell me, Great thanks,
Mohamed.

the model is attached after solving the first error.


I took a more detailed look at this and I think it is yelling at you because it doesn't know what the "es.nTx_Fes" function is. There looks to be nothing in your parameters or variables to tell comsol what it is. Boundary 23 is called out in the "boundary load 1" under solid mechanics and you just have this as a user defined option. While that is fine to do, I just don't see where you told comsol more info about this function. Maybe your syntax is wrong?


[QUOTE] I tried to solve the second error but i can't - - - - - - - - - - - - - - - - - - - - - - - Segregated group X2 Failed to evaluate variable. - Variable: mod1.es.nTx_Fes - Geometry: 1 - Boundary: 23 Failed to evaluate expression. - Expression: d((mod1.es.nTx_Fes*test(mod1.u)+mod1.es.nTy_Fes*test(mod1.v)+mod1.es.nTz_Fes*test(mod1.w))*(dvol),{test@1}) - - - - - - - - - - - - - - - - - - - - - - - so if any one understant this error tell me, Great thanks, Mohamed. the model is attached after solving the first error. [/QUOTE] I took a more detailed look at this and I think it is yelling at you because it doesn't know what the "es.nTx_Fes" function is. There looks to be nothing in your parameters or variables to tell comsol what it is. Boundary 23 is called out in the "boundary load 1" under solid mechanics and you just have this as a user defined option. While that is fine to do, I just don't see where you told comsol more info about this function. Maybe your syntax is wrong?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.07.2011, 23:36 GMT-4
Dennis Brown

Thank you very much, the problem is solved.
Dennis Brown Thank you very much, the problem is solved.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.11.2011, 13:41 GMT-5
I am getting the same final error as you did before you fixed it. Can you give some insight as to how you got past it?
I am getting the same final error as you did before you fixed it. Can you give some insight as to how you got past it?

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.