tutorials: add new plotRefl showcase to patch antenna tutorial
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/19/merge
parent
bcfbcd45ff
commit
ed33316dcf
|
@ -115,10 +115,12 @@ RunOpenEMS( Sim_Path, Sim_CSX);
|
||||||
freq = linspace( max([1e9,f0-fc]), f0+fc, 501 );
|
freq = linspace( max([1e9,f0-fc]), f0+fc, 501 );
|
||||||
port = calcPort(port, Sim_Path, freq);
|
port = calcPort(port, Sim_Path, freq);
|
||||||
|
|
||||||
Zin = port.uf.tot ./ port.if.tot;
|
%% Smith chart port reflection
|
||||||
s11 = port.uf.ref ./ port.uf.inc;
|
plotRefl(port, 'threshold', -10)
|
||||||
|
title( 'reflection coefficient' );
|
||||||
|
|
||||||
% plot feed point impedance
|
% plot feed point impedance
|
||||||
|
Zin = port.uf.tot ./ port.if.tot;
|
||||||
figure
|
figure
|
||||||
plot( freq/1e6, real(Zin), 'k-', 'Linewidth', 2 );
|
plot( freq/1e6, real(Zin), 'k-', 'Linewidth', 2 );
|
||||||
hold on
|
hold on
|
||||||
|
@ -130,6 +132,7 @@ ylabel( 'impedance Z_{in} / Ohm' );
|
||||||
legend( 'real', 'imag' );
|
legend( 'real', 'imag' );
|
||||||
|
|
||||||
% plot reflection coefficient S11
|
% plot reflection coefficient S11
|
||||||
|
s11 = port.uf.ref ./ port.uf.inc;
|
||||||
figure
|
figure
|
||||||
plot( freq/1e6, 20*log10(abs(s11)), 'k-', 'Linewidth', 2 );
|
plot( freq/1e6, 20*log10(abs(s11)), 'k-', 'Linewidth', 2 );
|
||||||
grid on
|
grid on
|
||||||
|
|
Loading…
Reference in New Issue