efield1single.m

来自「MATLAB及在电子信息课程中的应用天线模型」· M 代码 · 共 59 行

M
59
字号
%EFIELD1SINGLE Radiated/scattered field at a point 
%   at a particular frequency 
%   The point is outside the metal surface
%   Uses the mesh file from RWG2, mesh2.mat, and
%   the file containing surface current coefficients,
%   current.mat, from RWG3 or RWG31 as inputs.
%
%   The following parameters need to be specified:
%   
%   Observation point [m]       ObservationPoint[X; Y; Z]
%   Frequency value [Hz]        FreqToPlot
%
%   Copyright 2002 AEMM. Revision 2002/03/25
%   Chapter 7,8

clear all
%Load the data
load('mesh2');
load('current');

FreqToPlot=1e9  %in Hz
[dummy,FF]=min(abs(FreqToPlot-f));
f(FF)
I=CURRENT(:,FF);

omega=2*pi*f(FF);
k=omega/c_;
K=j*k;

for m=1:EdgesTotal
    Point1=Center(:,TrianglePlus(m));
    Point2=Center(:,TriangleMinus(m));
    DipoleCenter(:,m)=0.5*(Point1+Point2);
    DipoleMoment(:,m)=EdgeLength(m)*I(m)*(-Point1+Point2); 
end

ObservationPoint=[0; 0; 1];
[E,H]=point(ObservationPoint,eta_,K,DipoleMoment,DipoleCenter);
EField=sum(E,2); HField=sum(H,2);

%Common
EField                  %Radiated/scattered electric field 
                        %(complex vector at a point, V/m)

HField                  %Radiated/scattered magnetic field 
                        %(complex vector at a point, A/m)            

Poynting=0.5*real(cross(EField,conj(HField)))           
                        %Poynting vector (W/m^2) for radiated/scattered field

W=norm(Poynting)        %Radiation density (W/m^2) for radiated/scattered field
   
U=norm(ObservationPoint)^2*W                            
                        %Radiation intensity (W/unit solid angle)                     

%Only scattering
RCS=4*pi*(norm(ObservationPoint))^2*sum(EField.*conj(EField));     
                        %Backscattering radar cross-section (scattering)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?