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.

Can't use parameter as frequency in boundary mode analysis

Please login with a confirmed email address before reporting spam

I'm trying to do a boundary mode analysis. If I type in a numeric frequency under "Mode analysis frequency" it works. But if I put "c_const/lambda" in for frequency, it says failed to evaluate variable even though lambda is defined in Global->Definitions. Even if I define a variable "foo" as c_const/lambda in Global -> Definitions, and can see the correct numeric value calculated there, if I use this parameter "foo" for analysis frequency, it fails.

Is this a bug, or am I misunderstanding something?

1 Reply Last Post 31 lug 2015, 11:41 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 31 lug 2015, 11:41 GMT-4
Hi Chris, I have the same problem! Did you find a solution?

Edit: I figured it out! You can control the value in "Mode analysis frequency" through MATLAB, by feeding a calculated value to the parameter.

Cheers!
Hi Chris, I have the same problem! Did you find a solution? Edit: I figured it out! You can control the value in "Mode analysis frequency" through MATLAB, by feeding a calculated value to the parameter. Cheers!

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.