📄 darray.m
字号:
% DARRAY Provides the radiation intensities UE (E-plane) and
% UH (H-plane), array gain GA (in dBi), element input
% impedancies ZIN and front-back ratio FBR (in dB) for a
% linear array of dipole placed parallel to each other.
%
% [UE, UH, GA, ZIN, FBR] = DARRAY(D,L,A,V)
%
% D is the elements spacing vector, L is the element length
% vector, A is the element radius and V is the feeding
% voltage vector. The size of D must be the number of
% elements minus one. All dimensions have to be normalized
% by the operating wavelength and voltage must be provided
% in volts.
%
% RFWave - The Radio Frequency Wave Toolbox
% Version: 1.2 16-Jul-2002
% Developed by A. C. de C. Lima
% E-mail: acdcl@ufba.br
% Electrical Engineering Department
% Federal University of Bahia (UFBA)
% Brazil
function [ue,uh,ga,zin,fbr] = darray(d,ld,a,vd)
% Corrents and impedances
[zin,iin]=dipimp(d,ld,a,vd,1);
ne=length(ld);
prad=0.5*sum(real(zin).*abs(iin).^2);
s=zeros(1,ne);
k=2*pi;
kld=k*ld;
io=iin./(sin(kld/2)+eps);
id=sqrt(2*prad/73.13);
dt=sum(d);
dn=0;
s(1)=-dt/2;
for n=2:ne,
dn=dn+d(n-1);
s(n)=dn-dt/2;
end
% Far fields
n=0;
for th=0:0.01:2*pi-0.01,
n=n+1;
psi=k*s*cos(th);
eth(n)=abs(sum(io.*exp(j*psi).*(cos(kld/2*cos(th+pi/2))-cos(kld/2))./(sin(th+pi/2)+eps)));
ephi(n)=abs(sum(io.*exp(j*psi)));
ed(n)=abs(cos(pi/2*cos(th+pi/2))./(sin(th+pi/2)));
end
% Reference dipole
edt=id*ed;
% Radiation intensities
uth=eth./edt;
etm=max(eth);
ue=(eth/etm).^2;
uphi=ephi/id;
epm=max(ephi);
uh=(ephi/epm).^2;
% Antenna gain
do=60*etm^2/prad;
ga=10*log10(do);
% Front-back ratio
fbr=10*log10(ue(1))-10*log10(ue(200));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -