登 录
註 冊
论坛
微波仿真网
注册
登录论坛可查看更多信息
微波仿真论坛
>
通信系统仿真专区 Communication System Simulation
>
单极子和一个寄生天线之间的关系 matlab, 求 ..
发帖
回复
4056
阅读
1
回复
单极子和一个寄生天线之间的关系 matlab, 求教
离线
lapril
UID :98438
注册:
2012-08-23
登录:
2012-09-01
发帖:
8
等级:
旁观者
0楼
发表于: 2012-08-31 21:08:02
我做了这样的一个仿真, 一个单极子是有RF 链的,总是在工作状态, 1/4 波长,另外一个寄生天线与单极子并排放置,并且他们的间距可调。寄生天线连接一个50欧姆的负载和一个开关,当开关关闭时,相当于负载接短路,当开关打开时,相当于负载接开路。 模拟的是远场2D的方位性图。
DW,Z})9
我预计的效果是近距离时方位性图的两个状态(开,短路)差别很大,距离很远时,两个图应该越来越接近,最后重叠在一起,在polar图上显示的是两个重叠的圆 (此时天线间耦合基本消失,远场图相当于单极子自己的方位性图)。
0 Swu]OE
这是我编的matlab code
>xRUw5jN
auB+ g'l
function pattern(f,L,I,D)
p*jH5h cy
']!wc8m1"
% field radiation pattern(f,L,I,D)
_or_Vw!
% Simulates the far field radiation pattern.
!FK)iQy$0
% INPUTS:
r"|do2s
% f: the frequency of the source signal in GHZ
2*W|s7cc
% L: the length of the monopole in wavelength
)REegFN@
% I: the impedance of the load attached to the parasitic antenna
R<3 -!p1v
% D: the inter-element distance in wavelength
\1u^?cBd
$U&p&pgH=W
f = f*1e12; % convert f from GHz to Hz
s4Jy96<
=g%<xCp
%angular freqency
a/CY@V-
om = 2*pi*f;
x[&)\[t
4<EC50@.
% reflection coefficient:
-f'&JwE0=
gamma = (D - L)/(D + L);
8VpmcGvc3
vqF=kB"P
% impedance during transmission
ZRGe$HaU
Z = I*(1+gamma)/(1-gamma);
]:#W$9,WL
RP^L.X(7^
% number of seconds to run the simulation in a period
[IyC}lSW^-
run_time = 1/f
$;";i:H`
nBd(pOe
% the number of samples
%U[H`E
num_samples = 1000;
TPj,4&|
,=pn}\R
% seconds between time samples
FrRUAoFO
dt = run_time/num_samples;
5HB*
TCgW^iu
% vector of sample times
\R 3O39[
sample_times = 0:dt:run_time;
Dl?:Mh
DLq'V.M:
% phasor representation of the open circuit
xyV7MW\?w
p(1).amp = abs(exp(-2j*pi*L));
?>R(;B|ER
p(1).omega = om;
WK#c* rsij
p(1).phase = angle(exp(-2j*pi*L));
tI0D{Xrc
| @B|o-
% phasor representation of the short circuit
~1Ffu x
p(2).amp = abs((exp(-2j*pi*L)*real(2*Z/(I+Z))));
VYK%0S9yH[
p(2).omega = p(1).omega;
OSJL,F,
p(2).phase = p(1).phase;
#|V)>")
$|@-u0sv
% begin the main loop
on7?V<
for t=sample_times
>qMzQw2
Y 6jgAq
% initiate the open circuit
?wIw$p>wT
polar(p(1).omega*t,20*log10(abs(imag(p(1).amp*exp(1j*(p(1).omega*t + p(1).phase))))),'b-');
e=!sMWx6
hold on
x9]vhR/av
% initiate the short circuit
do.XMdit
polar(p(2).omega*t,20*log10(abs(imag(p(2).amp*exp(1j*(p(2).omega*t + p(2).phase))))), 'g-');
nWd;XR6|
hold on
%xXb5aY
eS%8WmCV9<
% wait for a key press
!6 kn>447Y
%disp('press a key to continue')
1#zD7b~
%pause
ND3|wQ`M0
end
{XXnMO4uR;
h5n@SE>G
出图效果非常不理想,一是p ..
%4wHiCOg
V_4=0(
未注册仅能浏览
部分内容
,查看
全部内容及附件
请先
登录
或
注册
共
条评分
离线
7463373
天道酬勤
UID :4144
注册:
2007-07-28
登录:
2025-04-20
发帖:
1086
等级:
八级仿真大师
1楼
发表于: 2012-10-26 21:35:34
难度有点大,方向不同
共
条评分
发帖
回复