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.
Comsol/ matlab interface
Posted Feb 28, 2010, 9:35 a.m. EST 4 Replies
Please login with a confirmed email address before reporting spam
Hello,
I posted this a few days back and so far there have no responses. My apologies for trying it again, but would greatly appreciate any feedback.
I have set a initial value of effective index in comsol as 1.42 but when I look in the Matlab script generated by Comsol I found that this value is :0-5.877819e6*i (see below)
( fem.sol=femeig(fem, 'solcomp',{'tExEy21','tExEy10','tExEy20','ez'}, ... 'outcomp',{'tExEy21','tExEy10','tExEy20','ez'}, neigs',50,'shift',0-5.877819e6*i);
And the other problem is to return the effective index of all calculated modes. For this, I use the following function : fem.sol.lambda but the returned results is not equal to result I found directly with comsol.
Recently, I have used the following function :
for i = 1:50
I = posteval(fem,'neff_rfwv','dl',1,'solnum',1);
End
I(1,1).d return the effective index of the first solution
The data contains the real part of the effective index. Can you please help me to return an exactly value of effective index
Best regards,
Ilyes
I posted this a few days back and so far there have no responses. My apologies for trying it again, but would greatly appreciate any feedback.
I have set a initial value of effective index in comsol as 1.42 but when I look in the Matlab script generated by Comsol I found that this value is :0-5.877819e6*i (see below)
( fem.sol=femeig(fem, 'solcomp',{'tExEy21','tExEy10','tExEy20','ez'}, ... 'outcomp',{'tExEy21','tExEy10','tExEy20','ez'}, neigs',50,'shift',0-5.877819e6*i);
And the other problem is to return the effective index of all calculated modes. For this, I use the following function : fem.sol.lambda but the returned results is not equal to result I found directly with comsol.
Recently, I have used the following function :
for i = 1:50
I = posteval(fem,'neff_rfwv','dl',1,'solnum',1);
End
I(1,1).d return the effective index of the first solution
The data contains the real part of the effective index. Can you please help me to return an exactly value of effective index
Best regards,
Ilyes
4 Replies Last Post May 10, 2010, 2:14 a.m. EDT