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

Last change on this file since 733 was 733, checked in by hodnevuc, 7 years ago
File size: 1.1 KB
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/50e+9;
14aar=[0.01 0.1 1 2 5]*1e-3;
15color=colormap(jet(length(aar)));
16
17figure
18hold on
19for cc=1:length(aar)
20
21b=aar(cc);
22a=1e-4;
23g=(SPlam+4*a+2*b)/2.27;
24disp(['g=' num2str(round(g*1e+4)/10) ' a=' num2str(a*1e+3) ' b=' num2str(b*1e+3) ' Freq=' num2str(round(c/SPlam*1e-9)) 'GHz' ])
25
26d=g/2;
27loss=0;
28c=3e+8;
29FreqArr=1e+9:1e+8:2e+11;
30for cnt=1:length(FreqArr)
31
32freq=FreqArr(cnt);
33
34  % Stot= S(freq, Thet, g, a, b, n1, n2)*T(freq,loss,d,n)* S(freq, Thet, g, a, b, n1, n2);
35    Stot=  S(freq, Thet, g, a, b, n1, n2);
36
37TTE(cnt)=abs(1./Stot(2,2))^2;
38TTM(cnt)=abs(1./Stot(4,4))^2;
39end
40 plot(FreqArr*1e-9,TTE,'color',color(cc,:),'linew',2)
41legendInfo{cc} = ['b= ' num2str(aar(cc)*1e+3) ' mm']; % or whatever is appropriate
42
43end
44%  Ttot=sin(Thetp).^2.*TTE+cos(Thetp).^2.*TTM;
45grid on
46set(gca,'fontsize',16)
47% set(gca,'xscale','log')
48xlabel('Frequency, [GHz]')
49ylabel('Transmissivity, [1]')
50title('Single cross filter 50GHz')
51legend(legendInfo,'location','northeast')
Note: See TracBrowser for help on using the repository browser.