Index: bugs/round1/fileio_split/bug_geo.m =================================================================== --- bugs/round1/fileio_split/bug_geo.m (revision 22982) +++ bugs/round1/fileio_split/bug_geo.m (revision 22983) @@ -95,4 +95,26 @@ layer_types(7).thickness = 0.0254; layer_types(7).conductivity = 56*10^6; +%%% Initialize pcb2csx +PCBRND = InitPCBRND(layers, layer_types, void, base_priority, offset, kludge); +CSX = InitPcbrndLayers(CSX, PCBRND); +%%% Board outline +outline_xy(1, 1) = 0; outline_xy(2, 1) = 0; +outline_xy(1, 2) = 127.0000; outline_xy(2, 2) = 0; +outline_xy(1, 3) = 127.0000; outline_xy(2, 3) = -127.0000; +outline_xy(1, 4) = 0; outline_xy(2, 4) = -127.0000; +CSX = AddPcbrndPoly(CSX, PCBRND, 2, outline_xy, 1); +CSX = AddPcbrndPoly(CSX, PCBRND, 4, outline_xy, 1); +CSX = AddPcbrndPoly(CSX, PCBRND, 6, outline_xy, 1); + +%%% Copper objects +poly0_xy(1, 1) = 12.7000; poly0_xy(2, 1) = -12.7000; +poly0_xy(1, 2) = 25.4000; poly0_xy(2, 2) = -12.7000; +poly0_xy(1, 3) = 25.4000; poly0_xy(2, 3) = -25.4000; +poly0_xy(1, 4) = 12.7000; poly0_xy(2, 4) = -25.4000; +CSX = AddPcbrndPoly(CSX, PCBRND, 1, poly0_xy, 1); +%%% Port(s) on terminals + + + Index: bugs/round1/fileio_split/bug_sim.m =================================================================== --- bugs/round1/fileio_split/bug_sim.m (revision 22982) +++ bugs/round1/fileio_split/bug_sim.m (revision 22983) @@ -12,27 +12,6 @@ run bug_geo.m -%%% Initialize pcb2csx -PCBRND = InitPCBRND(layers, layer_types, void, base_priority, offset, kludge); -CSX = InitPcbrndLayers(CSX, PCBRND); - -%%% Board outline -outline_xy(1, 1) = 0; outline_xy(2, 1) = 0; -outline_xy(1, 2) = 127.0000; outline_xy(2, 2) = 0; -outline_xy(1, 3) = 127.0000; outline_xy(2, 3) = -127.0000; -outline_xy(1, 4) = 0; outline_xy(2, 4) = -127.0000; -CSX = AddPcbrndPoly(CSX, PCBRND, 2, outline_xy, 1); -CSX = AddPcbrndPoly(CSX, PCBRND, 4, outline_xy, 1); -CSX = AddPcbrndPoly(CSX, PCBRND, 6, outline_xy, 1); - -%%% Copper objects -poly0_xy(1, 1) = 12.7000; poly0_xy(2, 1) = -12.7000; -poly0_xy(1, 2) = 25.4000; poly0_xy(2, 2) = -12.7000; -poly0_xy(1, 3) = 25.4000; poly0_xy(2, 3) = -25.4000; -poly0_xy(1, 4) = 12.7000; poly0_xy(2, 4) = -25.4000; -CSX = AddPcbrndPoly(CSX, PCBRND, 1, poly0_xy, 1); -%%% Port(s) on terminals - Sim_Path = 'openems'; % a path is required. to use the current directory just leave this field null Sim_CSX = 'csxcad.xml'; % the file name is manditory, sadly the other files it will dump out are not under our control WriteOpenEMS( [Sim_Path '/' Sim_CSX], FDTD, CSX );