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.

integrating a lookup table for frequency dependent variables

Please login with a confirmed email address before reporting spam

Hi everyone,

I have created a lookup table for frequency dependent values of epsilon_r.
This table includes two interpolation functions: one for the real part (eps_real) and the other for the imaginary part (eps_imag).

In the material browser, I tried to add these two functions as a sum (eps_real + eps_imag) for the expression of the relative permittivity. Unfortunately, this causes an error during computation.

I therefore assume that the way I tried to tackle my problem is not possible.
Does anyone know who to integrate values of an interpolation function of a lookup table into variables for frequency dependent materials?


Thank you.

7 Replies Last Post 27 mar 2013, 16:09 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 nov 2012, 10:15 GMT-5
I meant:
eps_real +j*eps_imag
I meant: eps_real +j*eps_imag

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 nov 2012, 10:26 GMT-5
What kind of error do you get?

Check documentation for gold nanosphere www.comsol.com/showroom/gallery/12415/
What kind of error do you get? Check documentation for gold nanosphere http://www.comsol.com/showroom/gallery/12415/

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 nov 2012, 10:31 GMT-5
The error that I get is that COMSOL doesn't recognize the expressions for the interpolation functions.
I've checked the spelling twice.

Could my approach actually work or did I already commit a mistake in developing the approach?
The error that I get is that COMSOL doesn't recognize the expressions for the interpolation functions. I've checked the spelling twice. Could my approach actually work or did I already commit a mistake in developing the approach?

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 27 nov 2012, 16:13 GMT-5
Hi

if you have an interpolation function you should write for a frequency variable "freq"

eps_real(freq)+j*eps_imag(freq)

as the function needs an argument. Only exception if the argument is x,y,z and you have selected the function settings accordingly (file read in interpolation option if I remember right)

--
Good luck
Ivar
Hi if you have an interpolation function you should write for a frequency variable "freq" eps_real(freq)+j*eps_imag(freq) as the function needs an argument. Only exception if the argument is x,y,z and you have selected the function settings accordingly (file read in interpolation option if I remember right) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26 mar 2013, 22:29 GMT-4
Thank you for the reference.

Just for the sake of confirmation: It is necessary to type in the value 1 in Units -> function because the electric permittivity has no unit, right?
Thank you for the reference. Just for the sake of confirmation: It is necessary to type in the value 1 in Units -> function because the electric permittivity has no unit, right?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26 mar 2013, 22:40 GMT-4
Dear Ivar,

when creating the lookup table in COMSOL the two columns are
t for the argument of the function
and f(t) for the function itself.

I am used that t represents time in seconds but I want to create a lookup table for electric permittivity which is frequency dependent.

I have integrated the lookup table with epsilon_real(freq)-j*epsilon_imag(freq).
In the parameters setting I have entered Hz as the unit of the argument and 1 as the unit of the function.

Is this sufficient for the frequency dependecne?
Dear Ivar, when creating the lookup table in COMSOL the two columns are t for the argument of the function and f(t) for the function itself. I am used that t represents time in seconds but I want to create a lookup table for electric permittivity which is frequency dependent. I have integrated the lookup table with epsilon_real(freq)-j*epsilon_imag(freq). In the parameters setting I have entered Hz as the unit of the argument and 1 as the unit of the function. Is this sufficient for the frequency dependecne?

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 27 mar 2013, 16:09 GMT-4
Hi

the variable names in COMSOL functions are dummy names, and not linked to the main physics, as interpolation functions was one time set up for time signals, "t" was used, but you can call it with any variable. Look at it as a programming function, any name within the Function is "local" and might have the name of an external "Global" variable so long this is not defined within the scope of the function definition.

I agree this feels sometimes confusing ;)

When loading functions from fields, you have also somewhere the option to use spatial variables (as default arguments) then your function becomes a field and can be called within a local boundary or domain definition, but without the explicit (x,y,z) reference, assuming that the mapping is done correctly

--
Good luck
Ivar
Hi the variable names in COMSOL functions are dummy names, and not linked to the main physics, as interpolation functions was one time set up for time signals, "t" was used, but you can call it with any variable. Look at it as a programming function, any name within the Function is "local" and might have the name of an external "Global" variable so long this is not defined within the scope of the function definition. I agree this feels sometimes confusing ;) When loading functions from fields, you have also somewhere the option to use spatial variables (as default arguments) then your function becomes a field and can be called within a local boundary or domain definition, but without the explicit (x,y,z) reference, assuming that the mapping is done correctly -- 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.