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.
EMW Eigenfrequency Complex Permittivity Error
Posted May 27, 2016, 1:45 p.m. EDT Low-Frequency Electromagnetics Version 5.2 0 Replies
Please login with a confirmed email address before reporting spam
myepsrR(x) = 3.9-(wp^2/(x^2+Gamma^2))
myepsrI(x) = Gamma*wp^2/(x^3+x*Gamma^2)
Then, under the basic material parameters definition, I added to the model input "Frequency (freq)". Having done that, I defined the relative permittivity as follows:
myepsrR(freq*2*pi)+j*myepsrI(freq*2*pi)
Under Wave Equation, Electric --> Model Inputs, I select: Frequency "From Solver"
When I try to compute the solution, I immediately get the following error message:
Division by zero.
- Function: /
Failed to evaluate expression.
- Expression: d(((-(wp^2)*Gamma)*(3*myepsrI__x__internalArgument^2+Gamma^2))/(myepsrI__x__internalArgument^2*(myepsrI__x__internalArgument^2+Gamma^2)^2),myepsrI__x__internalArgument)
Error in user-defined function.
- Function: ddmyepsrI_dmyepsrI__x__internalArgument_dmyepsrI__x__internalArgument
When I change the imaginary part of the relative permittivity to a constant, I do not get this error. This error appears for both the "relative permittivity" and "dielectric loss" settings under "Wave Equation, Electric" --> "Electric Displacement Field"
Hello Karen Grutter
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.