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.
Extracting effective index for computed mode
Posted 2013年10月2日 GMT-4 11:08 RF & Microwave Engineering, Interfacing Version 4.1 0 Replies
Please login with a confirmed email address before reporting spam
I am trying to get my head round the new (v4.0 and above) version of Matlab script language. I am mainly using RF module to compute modes of a given structure. When I use GUI, I specify number of modes to be computed, and when they are computed - in the plot parameters I can switch between the modes by choosing their effective indeces (which is equal to propagation constant divided by the wavenumber in vacuum). Now I need to sweep a parameter (say, frequency or some geometrical parameter) and I want to plot the effective index as function of the parameter. And not only plot, but use it for my further computations. Previously, in version 3.5a I used a matlab script for this purpose. There I had two commands:
fem.sol=femeig(fem,...) - to solve the problem
beta=i*fem.sol.lambda(modenum) - to extract propagation constant
What do I do in version 4.1???
I was told by a colleague that in version 4.3b I can use the following:
info=mphsolutioninfo(model);
beta=i*info.sol1.map(:,1);
However, I just tried it in 4.1 and it says there is no such method "mphsolutioninfo"!
Hello Andriy Gorbach
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.