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.
real and imaginary computations in comsol
Posted 21 nov 2009, 01:00 GMT-5 2 Replies
Please login with a confirmed email address before reporting spam
Hello
I have been trying to run piezoelectric resonator and filter simulations in COMSOL for a while now. I am able to plot the Admittance curve. However when I use this for further calculations in the 'global expression section' COMSOL only takes the real value ignoring the complex part of the solution.
In case of confusion let me define my problem differently:
I have 4 solutions from the simulation which have both real and imaginary parts. The solution that I want is some arithmetic function of these 4. How can I do this by writing a Global expression? Is there any other way in COMSOL?
Currently, I am able to export both the real and imaginary part of the data by specifically plotting each (using either real or imag options) into a .txt
Using spreadsheet software I can do the complex number calcualtions that I need. But the process is painstakingly slow.
Anyone has an idea, about how to tackle this problem within comsol itself. In the worst case, can I write a matlab function which will automatically take the data every time I run the simulation and update the plot accordingly?
Thanks
Vikram Thakar
I have been trying to run piezoelectric resonator and filter simulations in COMSOL for a while now. I am able to plot the Admittance curve. However when I use this for further calculations in the 'global expression section' COMSOL only takes the real value ignoring the complex part of the solution.
In case of confusion let me define my problem differently:
I have 4 solutions from the simulation which have both real and imaginary parts. The solution that I want is some arithmetic function of these 4. How can I do this by writing a Global expression? Is there any other way in COMSOL?
Currently, I am able to export both the real and imaginary part of the data by specifically plotting each (using either real or imag options) into a .txt
Using spreadsheet software I can do the complex number calcualtions that I need. But the process is painstakingly slow.
Anyone has an idea, about how to tackle this problem within comsol itself. In the worst case, can I write a matlab function which will automatically take the data every time I run the simulation and update the plot accordingly?
Thanks
Vikram Thakar
2 Replies Last Post 22 nov 2009, 14:12 GMT-5