source: ETALON/THZ_filters/2017_THz_FILTER/cross_filter.m @ 733

Last change on this file since 733 was 733, checked in by hodnevuc, 7 years ago
File size: 931 bytes
Line 
1   clear all; close all; clc
2%% Double Cross filter
3n1=1;
4n2=1;
5n=1;%ref. indx of media between filters
6Thetp=90;
7
8a1=1e-4;
9A1=0.53;
10
11c=299792458;
12Thet=pi/180*0;
13SPlam=c/2.99855e+9;
14figure
15hold on
16for cc=1:length(SPlam)
17
18a=1e-4;
19b=1e-4;
20g=(SPlam(cc)+4*a+2*b)/2.27;
21disp(['g=' num2str(round(g*1e+4)/10) ' a=' num2str(a*1e+3) ' b=' num2str(b*1e+3) ' Freq=' num2str(round(c/SPlam(cc)*1e-9)) 'GHz' ])
22
23d=g/2;
24loss=0;
25c=3e+8;
26FreqArr=1e+9:1e+8:1e+10;
27for cnt=1:length(FreqArr)
28
29freq=FreqArr(cnt);
30
31  % Stot= S(freq, Thet, g, a, b, n1, n2)*T(freq,loss,d,n)* S(freq, Thet, g, a, b, n1, n2);
32    Stot=  S(freq, Thet, g, a, b, n1, n2);
33
34TTE(cnt)=abs(1./Stot(2,2))^2;
35TTM(cnt)=abs(1./Stot(4,4))^2;
36end
37plot(FreqArr*1e-9,TTE,'-k','linew',2)
38
39end
40%  Ttot=sin(Thetp).^2.*TTE+cos(Thetp).^2.*TTM;
41grid on
42set(gca,'fontsize',16)
43% set(gca,'xscale','log')
44xlabel('Frequency, [GHz]')
45ylabel('Transmissivity, [1]')
46title('Single cross filter 3GHz')
Note: See TracBrowser for help on using the repository browser.