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 expression

Please login with a confirmed email address before reporting spam

Dear all.

I'm trying to solution microwave heating, but is error.
error is:
Failed to evaluate expression.
- Expression: d((j*mod1.mh.omega*mu0 const*(-1+mod1.mh.S1x)*test(1+mod1.mh.S1x)*(-(-mod1.mh.tHmodez 1*mod1.mh.nx+mod1.mh.tHmodex 1*mod1.mh.nz)*mod1.mh.tEmodey 1-(mod1.mh.tHmodey 1*mod1.mh.nx-mod1.mh.tHmodex 1*mod1.mh.ny)*mod1.mh.tEmodez 1))*(dvol),{test@1})
Failed to evaluate variable.
- Variable: mod1.mh.tEmodey 1
- Defined as: (sqrt(abs((mod1.mh.Pin/mod1.mh.pModeFlow 1)))*mod1.mh.tE0modey 1)
Failed to evaluate expression.
- Expression: abs((mod1.mh.Pin/mod1.mh.pModeFlow 1))
Failed to evaluate variable.
- Variable: mod1.mh.pModeFlow 1
- Defined as: mod1.mh.intport1(if((imag(mod1.mh.alphaport 1)==0),1,(((mod1.mh.nz*real(((conj(mod1.mh.tH0modey 1)*mod1.mh.tE0modex 1)-(mod1.mh.tE0modey 1*conj(mod1.mh.tH0modex 1)))))+((real(((mod1.mh.tE0modey 1*conj(mod1.mh.tH0modez 1))-(mod1.mh.tE0modez 1*conj(mod1.mh.tH0modey 1))))*mod1.mh.nx)+(mod1.mh.ny*real(((mod1.mh.tE0modez 1*conj(mod1.mh.tH0modex 1))+((-conj(mod1.mh.tH0modez 1))*mod1.mh.tE0modex 1))))))*0.5)))
Failed to evaluate expression.
- Expression: mod1.mh.intport1(if((imag(mod1.mh.alphaport 1)==0),1,(((mod1.mh.nz*real(((conj(mod1.mh.tH0modey 1)*mod1.mh.tE0modex 1)-(mod1.mh.tE0modey 1*conj(mod1.mh.tH0modex 1)))))+((real(((mod1.mh.tE0modey 1*conj(mod1.mh.tH0modez 1))-(mod1.mh.tE0modez 1*conj(mod1.mh.tH0modey 1))))*mod1.mh.nx)+(mod1.mh.ny*real(((mod1.mh.tE0modez 1*conj(mod1.mh.tH0modex 1))+((-conj(mod1.mh.tH0modez 1))*mod1.mh.tE0modex 1))))))*0.5)))
Failed to evaluate expression.
- Expression: if((imag(mod1.mh.alphaport 1)==0),1,(((mod1.mh.nz*real(((conj(mod1.mh.tH0modey 1)*mod1.mh.tE0modex 1)-(mod1.mh.tE0modey 1*conj(mod1.mh.tH0modex 1)))))+((real(((mod1.mh.tE0modey 1*conj(mod1.mh.tH0modez 1))-(mod1.mh.tE0modez 1*conj(mod1.mh.tH0modey 1))))*mod1.mh.nx)+(mod1.mh.ny*real(((mod1.mh.tE0modez 1*conj(mod1.mh.tH0modex 1))+((-conj(mod1.mh.tH0modez 1))*mod1.mh.tE0modex 1))))))*0.5))
Failed to evaluate expression.
- Expression: if((imag(mod1.mh.alphaport 1)==0),1,(((mod1.mh.nz*real(((conj(mod1.mh.tH0modey 1)*mod1.mh.tE0modex 1)-(mod1.mh.tE0modey 1*conj(mod1.mh.tH0modex 1)))))+((real(((mod1.mh.tE0modey 1*conj(mod1.mh.tH0modez 1))-(mod1.mh.tE0modez 1*conj(mod1.mh.tH0modey 1))))*mod1.mh.nx)+(mod1.mh.ny*real(((mod1.mh.tE0modez 1*conj(mod1.mh.tH0modex 1))+((-conj(mod1.mh.tH0modez 1))*mod1.mh.tE0modex 1))))))*0.5))
Failed to evaluate expression.
- Expression: if((imag(mod1.mh.alphaport 1)==0),1,(((mod1.mh.nz*real(((conj(mod1.mh.tH0modey 1)*mod1.mh.tE0modex 1)-(mod1.mh.tE0modey 1*conj(mod1.mh.tH0modex 1)))))+((real(((mod1.mh.tE0modey 1*conj(mod1.mh.tH0modez 1))-(mod1.mh.tE0modez 1*conj(mod1.mh.tH0modey 1))))*mod1.mh.nx)+(mod1.mh.ny*real(((mod1.mh.tE0modez 1*conj(mod1.mh.tH0modex 1))+((-conj(mod1.mh.tH0modez 1))*mod1.mh.tE0modex 1))))))*0.5))
Failed to evaluate operator.
- Operator: if
- Geometry: 1
- Boundary: 21
Failed to evaluate expression.
- Expression: imag(mod1.mh.alphaport 1)
Failed to evaluate variable.
- Variable: mod1.mh.alphaport 1
- Defined as: sqrt((((10.362694300518138*pi)^2)+(-(mod1.mh.k^2))))
Attempt to evaluate real square root of negative number.
- Function: sqrt

what can I do?
Thank you!


1 Reply Last Post 2011/12/07 1:32 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 2011/12/07 1:32 GMT-5
Hi

I believe you should read from button to top, and I suspect from the message that it's a missing material property, have you checked that all materials apply to all domains, and that all variables are there (no red flags or warning ?)

but it could ba a mistyped equation too

--
Good luck
Ivar
Hi I believe you should read from button to top, and I suspect from the message that it's a missing material property, have you checked that all materials apply to all domains, and that all variables are there (no red flags or warning ?) but it could ba a mistyped equation too -- Good luck Ivar

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.