koendv / hyp2mat

Import Hyperlynx Boardsim files to openEMS, an open source 3D full-wave electromagnetic field solver.
GNU General Public License v3.0
13 stars 11 forks source link

Blind vias not handled #10

Closed Xargas closed 9 years ago

Xargas commented 9 years ago

I tried to import a bigger PCB with hyp2mat into MATLAB. This PCB contained blind vias on a six layer layout. But after import, all vias are shown as vias from top to bottom.

For import I used these commands:

physical_constants;
f_max = 20e9;
pcbfile = 'Pcb.hyp';
CSX = InitCSX();
CSX = ImportHyperLynx(CSX, pcbfile);
FDTD = InitFDTD();
FDTD = SetGaussExcite(FDTD, f_max/2, f_max/2);
Sim_Path = 'tmp';
Sim_CSX = 'pcbcsx.xml';
WriteOpenEMS([Sim_Path '/' Sim_CSX], FDTD, CSX);
CSXGeomPlot([Sim_Path '/' Sim_CSX]);

I haven't found a documentation for the .hyp filetype, so I'm not sure how such blind vias are encoded in .hyp (I assume that they are supported. I assume that the "P" parameter from via line encodes this information. (VIA X=2.421259 Y=4.192912 P=58) (VIA X=2.577045 Y=5.495947 P=62) (VIA X=2.588856 Y=5.464688 P=49) Do you known more about this?

koendv commented 9 years ago

OK.

So the error is: blind vias were imported as through-hole vias. OK, I'll have a look. Could you send me the complete .hyp file? Or, if the information is confidential, could you make a minimal board with the blind vias and the same number of layers? Maybe add a buried via?

On Feb 16, 2015, at 10:35 AM, Xargas notifications@github.com wrote:

I assume that the "P" parameter from via line encodes this information.

(VIA X=2.421259 Y=4.192912 P=58)

Yes, this is the via definition. The P= references a PADSTACK definition somewhere in the file.

regards,

koen

Xargas commented 9 years ago

I created a repo with an example: https://github.com/Xargas/hyp2matViaExample I also added screenshots to make the via position clearer and a main.m for the import.

koendv commented 9 years ago

OK. That is sufficient data. Will try to fix this weekend.

regards,

koen

On Feb 17, 2015, at 11:44 AM, Xargas notifications@github.com wrote:

I created a repo with an example: https://github.com/Xargas/hyp2matViaExample I also added screenshots to make the via position clearer and a main.m for the import.

— Reply to this email directly or view it on GitHub.

koendv commented 9 years ago

I've pushed some changes to the hyp2mat/stable github repository. If you're on linux using http://www.openems.de/index.php/Compile_from_Source, please update. If you're using windows, there's a new binary at http://www.kdvelectronics.eu/hyp2mat/hyp2mat-win32-current.zip .

Does this solve the problems?

regards,

koen

On Feb 17, 2015, at 11:44 AM, Xargas notifications@github.com wrote:

I created a repo with an example: https://github.com/Xargas/hyp2matViaExample I also added screenshots to make the via position clearer and a main.m for the import.

— Reply to this email directly or view it on GitHub.

Xargas commented 9 years ago

Yes, it looks very good with this version (windows). I quick-tested the new build with the via example from above and with another PCB.

Regards, Markus