source: ETALON/THZ_filters/Experiment results/MF_EXP.m @ 733

Last change on this file since 733 was 733, checked in by hodnevuc, 7 years ago
File size: 1.5 KB
Line 
1   clear all; close all; clc
2%inductive grating
3%phys. const
4c=299792458;%speed of light, m/s
5sigma=1.45e+6*1e-7*c*c;%stainless steel conductivity, [s]
6j=0;
7nu_filter=[20 23 24 25 26 27 30 40 50].*1e+9;
8nu=(0.001:0.01:100)*1e+9;
9F24i=[];
10sigma24=0.01e+9;
11gauss24=1/sqrt(2*pi*sigma24^2)*exp(-(nu-24e+9).^2./(2*sigma24^2));
12F35i=[];
13sigma35=1e+9;
14gauss35=1/sqrt(2*pi*sigma35^2)*exp(-(nu-35e+9).^2./(2*sigma35^2));
15color=colormap(jet(length(nu_filter)))
16for f=nu_filter
17j=j+1;
18lamb0=c/f;
19ratio=0.02;%a/g ratio
20omega0=(1-0.27*(ratio));
21g=lamb0*omega0;
22a=ratio*g;%wire width
23
24
25
26disp(['g=' num2str(g*1e+3) 'mm a=' num2str(a*1e+3) 'mm nu=' num2str((1-0.27*ratio)*c/g*1e-9) ' GHz'])
27disp(['g=' num2str(round(g*1e+6)*1e-3) 'mm a=' num2str(round(a*1e+6)*1e-3) 'mm nu=' num2str((1-0.27*ratio)*c/g*1e-9) ' GHz'])
28disp(['Plate=' num2str(round(g*1e+6)*1e-3-2*round(a*1e+6)*1e-3) ' mm and ' num2str(round(1000/(round(g*1e+6)*1e-3))/10) ' squares on line'])
29disp(['  '])
30omega=nu*g/c;
31lamb=g./omega;
32eta=1/(1-2*ratio);
33R=eta./2.*sqrt(c./lamb./sigma);
34Om=lamb0./lamb-lamb./lamb0;
35Z0=(2*log(csc(a*pi/(2*g))));
36% Z0=8;
37t2=(R.^2+(Z0./Om).^2)./((1+R).^2+(Z0./Om).^2);
38
39plot(nu/1e+9,t2,'color',color(end-j+1,:),'linew',2)
40F24i=[F24i,t2*gauss24'*1e+7];
41F35i=[F35i,t2*gauss35'*1e+7];
42
43hold on
44end
45set(gca,'fontsize',16)
46xlabel('Frequency, [GHz]')
47ylabel('Transmissivity,[1]')
48legend('20 GHz','23 GHz','24 GHz','25 GHz','26 GHz','27 GHz','30 GHz','40 GHz','50 GHz','location','southeast')
49grid on
50xlim([10 100])
51ylim([0 1])
52
53
Note: See TracBrowser for help on using the repository browser.