Code covered by the BSD License  

Highlights from
Phased Array Design Toolbox v2.4.2

image thumbnail

Phased Array Design Toolbox v2.4.2

by

 

10 Feb 2009 (Updated )

A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas.

[Etot,CPflag]=apcirc(theta,phi)
function [Etot,CPflag]=apcirc(theta,phi)
% Calculates total E-field pattern for a circular aperture with
% uniform field distribution, as a function of theta and phi (in radians). 
%
% Usage: [Etot,CPflag]=apcirc(theta,phi)
%
% Aperture parameter d is defined in global vector apcirc_config
% initialised in init.m and of format :
%
% apcirc_config=[d]
%
% d.....Aperture diameter (m) 
%
% E-field is parallel to x-axis
%
% Ref C.A. Balanis 2nd edition Page 608

global array_config;
global freq_config;
global apcirc_config;


diameter=apcirc_config(1,1);
a=diameter/2;

vo=3e8;
lambda=vo/freq_config;
ko=2*pi/lambda;

Z=(ko*a).*sin(theta);

Etheta=cos(phi).*besselj(1,Z)./Z;
Ephi=cos(theta).*sin(phi).*besselj(1,Z)./Z;

if theta < pi/2
  Etot=sqrt(Etheta.^2+Ephi.^2)+1e-9;
else Etot=1e-9;
end;

CPflag=0;

Contact us