Near-Field to Far-Field Transform
CreateNF2FFBox
- CreateNF2FFBox(CSX, name, start, stop, varargin)
Full definition:
function [CSX nf2ff] = CreateNF2FFBox(CSX, name, start, stop, varargin)
create the dump boxes needed for the near field to far field transformation
input:
name: name of this nf2ff box
start/stop: start/stop coordinates for the nf2ff box (this box has to enclose all radiating structures!) optional inputs:
‘Directions’: enable/disable specific directions, e.g. ‘Directions’,[1 1 0 0 1 1] -> disable nf2ff in +/-y direction
‘Frequency’: dump nf2ff in frequency domain, this will save disk-space but is less flexible, since only this frequencies can be used for the nf2ff calculations by CalcNF2FF See also AddDump for more information
‘OptResolution’: specify a dump resolution, this will save disk-space See also AddDump for more information e.g.: ‘OptResolution’, c0/max_freq/unit/15
example:
see Tutorials/Simple_Patch_Antenna.m
see Tutorials/Helical_Antenna.m
See also CalcNF2FF
(C) 2010 Sebastian Held sebastian.held@gmx.de (C) 2010-2012 Thorsten Liebig thorsten.liebig@gmx.de
CalcNF2FF
- CalcNF2FF(nf2ff, Sim_Path, freq, theta, phi, varargin)
Full definition:
function nf2ff = CalcNF2FF(nf2ff, Sim_Path, freq, theta, phi, varargin)
Calculate the near-field to far-field transformation created by CreateNF2FFBox
IMPORTANT: Make sure to define the correct nf2ff phase center, aka. central antenna position! See optional parameter below!! Default is [0 0 0]
parameter:
nf2ff: data structure created by CreateNF2FFBox
Sim_Path: path to simulation data
freq: array of frequencies to analyse
theta,phi: spherical coordinates to evaluate the far-field on (in radians)
optional parameter:
‘Center’: nf2ff phase center, default is [0 0 0] !! Make sure the center is never outside of your nf2ff box!! Definition is the correct coordinate system necessary –> either Cartesian or cylindrical coordinates
‘Mode’: ‘Mode’, 0 -> read only, if data already exist (default) ‘Mode’, 1 -> calculate anyway, overwrite existing ‘Mode’, 2 -> read only, fail if not existing
‘Outfile’: alternative nf2ff result hdf5 file name default is: <nf2ff.name>.h5
‘Verbose’: set verbose level for the nf2ff calculation 0-2 supported
‘Radius’: specify the radius for the nf2ff
‘Eps_r’: specify the relative electric permittivity for the nf2ff
‘Mue_r’: specify the relative magnetic permeability for the nf2ff
‘Mirror’: Add mirroring in a given direction (dir), with a given mirror type (PEC or PMC) and a mirror position in the given direction. Example: ‘Mirror’, {0, ‘PMC’, +100}
See also: CreateNF2FFBox, ReadNF2FF
author: Thorsten Liebig, 2012
AnalyzeNF2FF
- AnalyzeNF2FF(Sim_Path, filenames_E, filenames_H, f, theta, phi, r)
Full definition:
[E_theta,E_phi,Prad,Dmax] = AnalyzeNF2FF( Sim_Path, filenames_E, filenames_H, f, theta, phi, r )
calculates the farfield via a near field to far field transformation
input:
Sim_Path: simulation directory
nf2ff: structure on filenames etc. as created by CreateNF2FFBox
f: frequency (Hz) for far field calculation
theta: (degrees) vector of discrete theta values to calculate the far field for
phi: (degrees) vector of discrete phi values to calculate the far field for
r: (optional) Radius (m) at which the E-fields are calculated (default: 1 m)
output:
E_theta: E_theta(theta,phi); theta component of the electric field strength at radius r
E_phi: E_phi(theta,phi); phi component of the electric field strength at radius r
Prad: time averaged radiated power
Dmax: maximum directivity
example: see examples/NF2FF/infDipol.m
See also CreateNF2FFBox
(C) 2010 Sebastian Held sebastian.held@gmx.de (C) 2011 Thorsten Liebig thorsten.liebig@gmx.de