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.

Failed to evaluate variable.

Please login with a confirmed email address before reporting spam

Hi,
I was trying to run an impedance calculation on a square copper coil in air. I am using a trial version of comsol. It gives me the following error:

Failed to evaluate variable

variable: mod1.emw.ahPortx
Geometry: 1
Boundary: 33
failure to evaluate expression
expression ((((mod1.emw.ahPortx*mod1.tEx)+ (mode1.tEy*mod1.emw.ahPorty))+(mod1.emw.ahPortz*mod1.tEz))/mod1.emw.wPort)
Failure to evaluate expression
expression ((((mod1.emw.ahPortx*mod1.tEx)+ (mode1.tEy*mod1.emw.ahPorty))+(mod1.emw.ahPortz*mod1.tEz))/mod1.emw.wPort)
Failure to evaluate expression
Expression: mod1.emw.intlport1(((((mod1.emw.ahPortx*mod1.tEx)+(mod1.tEy*mod1.emw.ahPorty))+(mod1.emw.ahPortz*mod1.tEz))/mod1.emw.wPort))

variable mod1.emw.Vport_1
defined as :mod1.emw.intlport1(((((mod1.emw.ahPortx*mod1.tEx)+(mod1.tEy*mod1.emw.ahPorty))+(mod1.emw.ahPortz*mod1.tEz))/mod1.emw.wPort))
variable: mod1.emw.Zport_1
defined as: (mod1.emw.Vpodt_1/mod1.emw.Iport_1)
failed to evaluate expression.
Expression: abs(mod1.emw.Zport_1)
Failed to evaluate expression
Expressiong: abs(mod1.emw.Zport_1)
Plot:glob1(Global)

2 Replies Last Post 21 giu 2011, 09:51 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21 giu 2011, 04:28 GMT-4
Hi,

I had similar problems with uniform lumped ports. It worked after I changed it to user defined ports specifiying height and width of the port. I don't know why the uniform port didn't work and also COMSOL support couldn't help.

I am using 4.1.

Cheers
Edgar
Hi, I had similar problems with uniform lumped ports. It worked after I changed it to user defined ports specifiying height and width of the port. I don't know why the uniform port didn't work and also COMSOL support couldn't help. I am using 4.1. Cheers Edgar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21 giu 2011, 09:51 GMT-4
Thanks for the suggestion. Will surely look into that.
From what i see from the other threads, it also depends on luck?
For some it works while for the others it does not.
Any idea on that?
Thanks for the suggestion. Will surely look into that. From what i see from the other threads, it also depends on luck? For some it works while for the others it does not. Any idea on that?

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.