hyedusa
Subscriber

Hi, thank you for reply.

I missed explaining something. I already did the width and length sweep!
and i used for conversion efficiency formula but it doesn't work well. i can't import the sweep data.. what can i add some script???

 

switchtolayout;

setnamed("s_params","polarization angle",0);

setnamed("FDTD","mesh accuracy",2);

setglobalmonitor("frequency points",100);

run;

 

S_pol1=getresult("s_params","S_polarization");

refractive_index_1= real (getdata("s_params::R_index","index_x"));

refractive_index_2= real (getdata("s_params::T_index","index_x"));

s21_x=s_poll.s21_Gn;

s21_x = s21_x/sqrt(refractive_index_1/refractive_index_2);

 

switchtolayout;

setnamed("s_params","polarization angle",90);

run;

 

S_pol2=getresult("s_params","S_polarization");

s21_y=s_pol2.s21_Gn;

s21_y = s21_x/sqrt(refractive_index_1/refractive_index_2);

 

f = getdata("s_params::T","f");

 

s21_L = (s21_x +1i*s21_y)/sqrt(2);

s21_R = (s21_x -1i*s21_y)/sqrt(2);

s21_L = (s21_L(:,1) - 1i*s21_L(:,2))/sqrt(2);

 

effect = abs(s21_RL)^2;

plot(c/f*1e9,effect);