From 515cafecebd552a896b735c352b2a76af5bb05a9 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Sat, 18 Feb 2017 15:09:03 +0100 Subject: [PATCH] matlab: use separate ground in stripline tutorial Signed-off-by: Thorsten Liebig --- matlab/Tutorials/StripLine2MSL.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matlab/Tutorials/StripLine2MSL.m b/matlab/Tutorials/StripLine2MSL.m index c2fbbac..64eeaa1 100644 --- a/matlab/Tutorials/StripLine2MSL.m +++ b/matlab/Tutorials/StripLine2MSL.m @@ -64,7 +64,8 @@ start = [mesh.x(1), mesh.y(1), -strip_substrate_thickness]; stop = [mesh.x(end), mesh.y(end), +strip_substrate_thickness+msl_substrate_thickness]; CSX = AddBox( CSX, 'RO4350B', 0, start, stop ); -% Create a PEC called 'metal' +% Create a PEC called 'metal' and 'gnd' +CSX = AddMetal( CSX, 'gnd' ); CSX = AddMetal( CSX, 'metal' ); % Create strip line port (incl. metal stip line) @@ -99,7 +100,7 @@ p(1,end+1) = mesh.x(end); p(2,end ) = mesh.y(end); p(1,end+1) = mesh.x(1); p(2,end ) = mesh.y(end); -CSX = AddPolygon( CSX, 'metal', 1, 'z', strip_substrate_thickness, p); +CSX = AddPolygon( CSX, 'gnd', 1, 'z', strip_substrate_thickness, p); %% Write/Show/Run the openEMS compatible xml-file Sim_Path = 'tmp';