《天线与电波传播(第二版)》学习指导第2章简单天线的典型计算程序举例.ppt

《天线与电波传播(第二版)》学习指导第2章简单天线的典型计算程序举例.ppt

       2.1 电 基 本 振 子   例2-1-1 电基本振子的立体方向图及其E面和H面方向图的计算。   题解说明: 电基本振子在例2-1-1图所示的坐标系原点, 沿z轴放置。 该振子产生的远区辐射场为 例2-1-1 电基本振子及其坐标系 根据方向函数的定义, 可得电基本振子的归一化方向函数为 F(θ, j)=|sinθ| 计算程序示例:   %%计算电基本振子的立体方向图及其E面和H面方向图   clear all;clc;   %计算电基本振子的立体方向图   l=0.1; %电基本振子的电长度   theta=meshgrid(eps:pi/180:pi);   phi=meshgrid(eps:2*pi/180:2*pi)′;   f=abs(cos(2.*pi.*l.*cos(theta))-cos(2*pi*l))./(sin(theta)+eps);   fmax=max(max(f));   [x,y,z]=sph2cart(phi,pi/2-theta,f/fmax);   figure(1); mesh(x,y,z); title(′电基本振子的立体方向图′); axis([-1 1 -1 1 -1 1]); xlabel(′\theta′);ylabel(′\phi′);zlabel(′F(\theta,\phi)′); %计算电基本振子的E面和H面方向图 theta=linspace(eps,2*pi,100); phi=linspace(eps,2*pi,100); f_E=abs((cos(2*pi*l*cos(theta))-cos(2*pi*l))./sin(theta)); f_Emax=max(f_E); theta0=pi/2; f_H=abs((cos(2*pi*l*cos(theta0))-cos(2*pi*l))./sin(theta0))*ones(1,100); f_Hmax=max(f_H); figure(2); subplot(1,2,1); polar(theta-pi/2,f_E/f_Emax);title(′E面′); subplot(1,2,2); polar(phi,f_H/f_Hmax);title(′H面′); 计算结果: 计算结果如例2-1-1解图所示。 例2-1-1解图   例2-1-2 电基本振子的辐射过程演示。   计算程序示例:    %%通过动画演示电基本振子的辐射过程    clear all;    clc;    [r,th]=meshgrid(linspace(1/8,3,61),linspace(0,pi,61));    u=2*pi*r;    [z,x]=pol2cart(th,r);    for i=0:63,     d=2*pi*i/64;     F=(cos(u-d)./u +sin(u-d)).*sin(th).^2;     contour([-x;x], [z;z], [F;F],10);     colormap([0,0,0]); axis(′square′); title(′电基本振子的辐射过程′);     line([0,0],[-1/16,1/16],′linewidth′,2);     M(i+1)=getframe;    end    movie(M,8);   计算结果: 计算结果如例2-1-2解图所示。 例2-1-2解图         2.2 对称振子   例2-2-1 动画演示对称振子立体方向图随振子电长度的变化。   题解说明: 对称振子沿z轴放置, 其馈电点位于O点, 可求得其辐射场为   计算程序示例:     %%动画演示对称振子立体方向图随振子电长度的变化     clear all;clc;     for i=1:20     theta=meshgrid(eps:pi/180:pi);     phi=meshgrid(eps:2*pi/180:2*pi)′;     l=i*0.1; %对称振子的电长度     f=abs(cos(2.*pi.*l.*cos(theta))-cos(2*pi*l))./(sin(theta)+eps);     fmax=max(max(f));     [x,y,z]=sph2cart(phi,pi/2-theta,f/fmax);     

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档