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.

init.m
% Initialise main variables

% Define global configuration variables

global array_config;    % Array of element data : position, excitation, and type
global interp_config;   % Either empty or a copy of array_config, used to pass geometry info to interp_geom.m
global freq_config;     % Analysis frequency (Hz)
global velocity_config; % Wave Propagation velocity (m/s)
global range_config;    % Radius at which to sum element field contributions (m)
global direct_config;   % Directivity value (dBi)

global phaseq_config;   % Quantisation of phase shifter (n bits) 
                        % number of levels=360/(2^n)
 
global normd_config;    % Normalisation factor for pattern i.e. the value
                        % of the Etot pattern at the point of max directivity.
                        % Value is used to normalise pattern before directivity
                        % is added (dB)

global dBrange_config;  % Dynamic range for plots (min dB value)
global patchr_config;   % Rectangular patch element parameters
global patchc_config;   % Circular patch element parameters
global dipole_config;   % Dipole parameters
global dipoleg_config;  % Dipole over ground parameters
global helix_config;    % Helix parameters
global aprect_config;   % Rectangular aperture parameters
global apcirc_config;   % Circular aperture paramters
global wgr_config;      % Rectangular waveguide parameters
global wgc_config;      % Circular waveguide parameters
global dish_config;     % Parabolic dish paramters
global pattern_config;  % Pattern data for interpolated element pattern
global user1_config;    % User element parameters


% array_config : Array of form (3x5xN)
%                Defining element orientation, location, 
%                excitation and type.
%
% For each of n=1:N elements there is a 3x5 element
% matrix which defines the element's location, orientation
% excitation and type.
%
%                     /---------- 3x3 rotation matrix
%                    /    /------ 3x1 offset matrix
%                   /    /   /--- Amplitude,Phase,ElementType (1,2,3..)
%                  /    /   /
%               ----- ---- ---
%               L M N Xoff Amp
%   3x5 matrix  O P Q Yoff Pha
%               R S T Zoff Elt
%
%   Valid strings for eltype are listed below. 
%              STRING    VALUE IN array_config
%              'iso'             0
%              'patchr'          1
%              'patchc'          2
%              'dipole'          3
%              'dipoleg'         4
%              'helix'           5
%              'aprect'          6
%              'apcirc'          7
%              'wgr'             8
%              'wgc'             9
%              'dish'            10
%              'interp'          11
%              'user1'           12
%
%    Amplitude is stored as (linear volts)  
%    Phase is stored as (radians)

interp_config=[];           % Initialise interp_config 
array_config=-ones(3,5,1);  % Initialise element array for a single element
freq_config=300e6;          % Set analysis frequency to 300MHz (lambda=1m)
velocity_config=3e8;        % Set wave propagation velocity to 3e8 (m/s)
range_config=999;           % Radius for summation of field contributions (m)
direct_config=0;            % Directivity set to 0dBi
phaseq_config=16;           % Quantisation of phase shifter set to 16 bits 
                            % (360/65535=0.0055deg)

normd_config=0;             % Normalisation factor set to 0dB
dBrange_config=40;          % Dynamic range for plots dB (min dB value)

% Dipole parameters
length=0.5;              % Length (m)
dipole_config=length;    % Define vector of parameters

% Dipole over ground parameters
len=0.5;                 % Length (m)
h=0.25;                  % Height above ground (m)
dipoleg_config=[len,h];  % Define vector of parameters

% Rectangular patch parameters
Er=1;                     % Dielectric constant for substrate
W=0.5;                    % Patch width (m) affects H-plane beamwidth
L=0.431;                  % Patch length (m) affects E-plane beamwidth
h=0.05;                   % Patch height (m) affects E & H plane beamwidth
patchr_config=[Er,W,L,h]; % Define vector of parameters

% Circular patch parameters
Er=1;                     % Dielectric constant for substrate
a=0.2;                    % Patch radius (m) affects H-plane beamwidth
h=0.05;                   % Patch height (m) affects E & H plane beamwidth
patchc_config=[Er,a,h];   % Define vector of parameters

% Helix parameters
N=6;                     % Number of turns
S=0.27;                  % Turn spacing (m)
helix_config=[N,S];      % Define vector of parameters

% Rectangular aperture parameters
a=0.1;                   % Aperture dimension in x-axis (m)
b=0.5;                   % Aperture dimension in y-axis (m)
aprect_config=[a,b];

% Circular aperture parameters
d=0.5;                   % Aperture diameter (m)
apcirc_config=[d];

% Rectangular waveguide parameters
a=0.1;                   % Guide dimension in x-axis (m)
b=0.5;                   % Guide dimension in y-axis (m)
wgr_config=[a,b];

% Circular waveguide parameters
d=0.5;                   % Guide diameter (m)
wgc_config=[d];

% Parabolic dish parameters
d=4.0;                   % Dish diameter (m)
n=2.0;                   % Aperture taper factor (unitless)
t=10;                    % Taper value at edge of dish, relative to maximum (dB)
dish_config=[d,n,t];


% User Element1 params
Parameter1=1;              
Parameter2=2;
user1_config=[Parameter1,Parameter2];

Contact us