12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- clc;
- format long;
- wl = 1;
- wv = 2*pi/wl;
- pol = 'TM';
-
- gp = 1.5;
- gh = 0.5;
-
- kg = wl/gp;
- kh = wv*gh;
-
- eps_sub = 1.5^2;
- eps_gr = 3.17^2;
- eps_sup = 1;
-
- no = 15;
- ind0 = ceil(no/2);
-
- theta = 10;
- kx0 = sin(theta*pi/180);
- V_inc = zeros(no,2);
-
- V_inc(ind0,2) = 1;
-
-
- FM = calc_emn_lam(no,0.4,eps_gr,eps_sup);
-
- SM = fmm(no,kx0,kg,kh,eps_sub,eps_sup,FM,pol);
- V_dif = zeros(no,2);
-
- V_dif(:,1) = SM(:,:,1,1)*V_inc(:,1) + SM(:,:,1,2)*V_inc(:,2);
- V_dif(:,2) = SM(:,:,2,1)*V_inc(:,1) + SM(:,:,2,2)*V_inc(:,2);
-
- b = fmm_balance(no,V_inc,V_dif,kx0,kg,eps_sub,eps_sup,pol);
- disp(b);
-
- V_eff = fmm_efficiency(no,V_inc,V_dif,kx0,kg,eps_sub,eps_sup,pol);
- disp(V_eff(ind0,1));
- disp(V_eff(ind0,2));
|