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.

Parametric Study making functions

Please login with a confirmed email address before reporting spam

Hi there,

I am doing a parametric study with a variable T_initial for a frequency domain simulation for a fixed range of frequencies, this worked well

I need now to change the set of frequencies with a function freq_range(T_initial). In the study frequency-domain it always says failed to evaluated the function. The function was defined in the global definitions and it is plotted well in the results.


The field frequencies does not accept my function I dont know why.

6 Replies Last Post 08.05.2013, 14:35 GMT-4
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 07.05.2013, 13:53 GMT-4
Hi

normally the time and frequency, as well as parametrical sweep only accepts lists {...}, not continuous functions, this might be the issue you are having

--
Good luck
Ivar
Hi normally the time and frequency, as well as parametrical sweep only accepts lists {...}, not continuous functions, this might be the issue you are having -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.05.2013, 14:02 GMT-4
Hi Ivar that makes sense, yes that is the problem I am having since I am adding interpolations functions.

Do you known if there is any way to add a table with 4 variables?

parametric value, freq_min, freq_max, freq_step

to a parametric study?

Thanks,

Duarte
Hi Ivar that makes sense, yes that is the problem I am having since I am adding interpolations functions. Do you known if there is any way to add a table with 4 variables? parametric value, freq_min, freq_max, freq_step to a parametric study? Thanks, Duarte

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 08.05.2013, 01:20 GMT-4
Hi

I'm not sure I fully understand your demand, in the derived values I make generally at most 2 entries and then I use cut&paste to EXCEL more (which is seldom the case as I'm not an Excel fan anyhow ;)

--
Good luck
Ivar
Hi I'm not sure I fully understand your demand, in the derived values I make generally at most 2 entries and then I use cut&paste to EXCEL more (which is seldom the case as I'm not an Excel fan anyhow ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 08.05.2013, 11:10 GMT-4
Hi Ivar,

I am studying the resonance frequency for a different set of temperatures. The dielectric values change with temperature by adding a function in the material properties.

I need to change the frequency range in function the of temperature during the parametric study. I tried with a function freq_min(T_initial) and freq_max(T_initial) but it did not work. Since they are continuous functions.

Any clue?

P.S. - It works well if the frequency range is always the same.

Thanks

Hi Ivar, I am studying the resonance frequency for a different set of temperatures. The dielectric values change with temperature by adding a function in the material properties. I need to change the frequency range in function the of temperature during the parametric study. I tried with a function freq_min(T_initial) and freq_max(T_initial) but it did not work. Since they are continuous functions. Any clue? P.S. - It works well if the frequency range is always the same. Thanks

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 08.05.2013, 14:28 GMT-4
Hi

indeed that is tricky, probably simpler to either stick to the same frequency sweep, make it fine enough i.e. 10^range(-3,0.5,3) or whatever, as there is no need to stay linear: range(1,10,1000)

or then to use matlab to drive your simulation step by step

--
Good luck
Ivar
Hi indeed that is tricky, probably simpler to either stick to the same frequency sweep, make it fine enough i.e. 10^range(-3,0.5,3) or whatever, as there is no need to stay linear: range(1,10,1000) or then to use matlab to drive your simulation step by step -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 08.05.2013, 14:35 GMT-4
Hi Ivar,

It is possible to solve this problem with the matlab?

I am doing this with a constant frequency and afterwards cutout the results from the frequencies I am not interested.

Many thanks for the tips.
Hi Ivar, It is possible to solve this problem with the matlab? I am doing this with a constant frequency and afterwards cutout the results from the frequencies I am not interested. Many thanks for the tips.

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.