From 7454df0429978ab6dd1812584f8eee6155a3dc9a Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 11 Oct 2012 08:33:29 +0200 Subject: [PATCH] Tutorials: patch antenna using a square port --- matlab/Tutorials/Simple_Patch_Antenna.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/Tutorials/Simple_Patch_Antenna.m b/matlab/Tutorials/Simple_Patch_Antenna.m index 561b635..9a61493 100644 --- a/matlab/Tutorials/Simple_Patch_Antenna.m +++ b/matlab/Tutorials/Simple_Patch_Antenna.m @@ -53,7 +53,7 @@ max_res = c0 / (f0+fc) / unit / 20; % cell size: lambda/20 CSX = InitCSX(); %create fixed lines for the simulation box, substrate and port -mesh.x = [-SimBox(1)/2 SimBox(1)/2 -substrate.width/2 substrate.width/2 -patch.width/2 patch.width/2 feed.pos]; +mesh.x = [-SimBox(1)/2 SimBox(1)/2 -substrate.width/2 substrate.width/2 -patch.width/2 patch.width/2 feed.pos+[-feed.width/2 feed.width/2]]; mesh.x = SmoothMeshLines( mesh.x, max_res, 1.4); % create a smooth mesh between specified fixed mesh lines mesh.y = [-SimBox(2)/2 SimBox(2)/2 -substrate.length/2 substrate.length/2 -feed.width/2 feed.width/2 -patch.length/2 patch.length/2]; @@ -85,8 +85,8 @@ stop(3) =0; CSX = AddBox(CSX,'gnd',10,start,stop); %% apply the excitation & resist as a current source -start = [feed.pos-.1 -feed.width/2 0]; -stop = [feed.pos+.1 +feed.width/2 substrate.thickness]; +start = [feed.pos-feed.width/2 -feed.width/2 0]; +stop = [feed.pos+feed.width/2 +feed.width/2 substrate.thickness]; [CSX] = AddLumpedPort(CSX, 5 ,1 ,feed.R, start, stop, [0 0 1], 'excite'); %%nf2ff calc