From 61a595519be2b4d57191fee1191241eb04daf122 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Sat, 13 Jul 2013 12:53:15 +0200 Subject: [PATCH] tutorials: some minor updates Signed-off-by: Thorsten Liebig --- matlab/Tutorials/CRLH_LeakyWaveAnt.m | 2 +- matlab/Tutorials/Helical_Antenna.m | 6 +++--- matlab/Tutorials/Horn_Antenna.m | 6 +++--- matlab/Tutorials/RCS_Sphere.m | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/matlab/Tutorials/CRLH_LeakyWaveAnt.m b/matlab/Tutorials/CRLH_LeakyWaveAnt.m index 3ca5b8a..350dccb 100644 --- a/matlab/Tutorials/CRLH_LeakyWaveAnt.m +++ b/matlab/Tutorials/CRLH_LeakyWaveAnt.m @@ -48,7 +48,7 @@ f_rad = (1.9:0.05:4.2)*1e9; nf2ff_resolution = c0/max(f_rad)/unit/15; %% setup FDTD parameters & excitation function %%%%%%%%%%%%%%%%%%%%%%%%%%%% -FDTD = InitFDTD(100000, 1e-3); +FDTD = InitFDTD('EndCriteria', 1e-3); FDTD = SetGaussExcite( FDTD, (f_start+f_stop)/2, (f_stop-f_start)/2 ); BC = {'PML_8' 'PML_8' 'PML_8' 'PML_8' 'PML_8' 'PML_8'}; FDTD = SetBoundaryCond( FDTD, BC ); diff --git a/matlab/Tutorials/Helical_Antenna.m b/matlab/Tutorials/Helical_Antenna.m index 71ebe1d..48b24f2 100644 --- a/matlab/Tutorials/Helical_Antenna.m +++ b/matlab/Tutorials/Helical_Antenna.m @@ -5,8 +5,8 @@ % http://openems.de/index.php/Tutorial:_Helical_Antenna % % Tested with -% - Matlab 2011a / Octave 3.4.3 -% - openEMS v0.0.27 +% - Matlab 2011a / Octave 3.6.4 +% - openEMS v0.0.31 % % (C) 2012 Thorsten Liebig @@ -41,7 +41,7 @@ feed.R = 120; %feed impedance SimBox = [1 1 1.5]*2*lambda0; %% setup FDTD parameter & excitation function -FDTD = InitFDTD( 30000 ); +FDTD = InitFDTD( ); FDTD = SetGaussExcite( FDTD, f0, fc ); BC = {'MUR' 'MUR' 'MUR' 'MUR' 'MUR' 'PML_8'}; % boundary conditions FDTD = SetBoundaryCond( FDTD, BC ); diff --git a/matlab/Tutorials/Horn_Antenna.m b/matlab/Tutorials/Horn_Antenna.m index d91ffbc..a980d0a 100644 --- a/matlab/Tutorials/Horn_Antenna.m +++ b/matlab/Tutorials/Horn_Antenna.m @@ -5,10 +5,10 @@ % http://openems.de/index.php/Tutorial:_Horn_Antenna % % Tested with -% - Matlab 2011a / Octave 3.4.3 -% - openEMS v0.0.27 +% - Matlab 2011a / Octave 3.6.4 +% - openEMS v0.0.31 % -% (C) 2011,2012 Thorsten Liebig +% (C) 2011,2012,2013 Thorsten Liebig close all clear diff --git a/matlab/Tutorials/RCS_Sphere.m b/matlab/Tutorials/RCS_Sphere.m index 0aeb130..11f1011 100644 --- a/matlab/Tutorials/RCS_Sphere.m +++ b/matlab/Tutorials/RCS_Sphere.m @@ -31,7 +31,7 @@ f_start = 50e6; % start frequency f_stop = 1000e6; % stop frequency f0 = 500e6; -FDTD = InitFDTD( 30000 ); +FDTD = InitFDTD( ); FDTD = SetGaussExcite( FDTD, 0.5*(f_start+f_stop), 0.5*(f_stop-f_start) ); BC = [1 1 1 1 1 1]*3; % set boundary conditions FDTD = SetBoundaryCond( FDTD, BC );