HYP2MAT(1)
π
hyp2mat(1) β the hyp2mat man page, but make it make sense π
okay so. bestie. you've got a HyperLynx file and you want electromagnetic simulation out of it. that's literally what this whole thing is for. it's a User Command, it's called hyp2mat, and we're gonna read the manual together like it's a group chat. no cap, it's all here. π¦
β¨ NAME β¨
hyp2mat β the little icon that converts hyperlynx files to octave/matlab scripts for electromagnetic simulation. that's the whole vibe. π
πΈ SYNOPSIS πΈ
hyp2mat [-h] [ -o outfile ] [ -f pdf|csxcad|qucs ] [-n net]...
[OPTIONS]... [-v]
(and yeah, the description block literally opens with [infile] β it's the input file, she's just listed a little weirdly. we love her anyway. π)
π«Ά DESCRIPTION π«Ά
Converts Hyperlynx Signal-Integrity Transfer Format files to Octave/matlab scripts.
that's it. that's the whole job. it takes your .hyp board situation and turns it into something Octave or matlab can chew on. slay. β¨
π OPTIONS π
-h,--helpβ Print help and exit. the classic "what is going on" button.-V,--versionβ Print version and exit. identity check.-o,--output=filenameβ Output file. (default=-)-f,--output-format=ENUMβ Output file format. (possible values="csxcad", "pdf", "qucs" default=pdf)
π§ Processing options
-n,--net=STRINGβ Import net. Repeat to import several nets. Default is importing all nets.-l,--layer=STRINGβ Import layer. Repeat to import several layers. Default is importing all layers.-x,--xmin=DOUBLEβ Crop pcb. Set lower bound of x coordinate.-X,--xmax=DOUBLEβ Crop pcb. Set upper bound of x coordinate.-y,--ymin=DOUBLEβ Crop pcb. Set lower bound of y coordinate.-Y,--ymax=DOUBLEβ Crop pcb. Set upper bound of y coordinate.-z,--zmin=DOUBLEβ Crop pcb. Set lower bound of z coordinate.-Z,--zmax=DOUBLEβ Crop pcb. Set upper bound of z coordinate.--grid=DOUBLEβ Set output grid size. (default=10e-6)--arc-precision=DOUBLEβ Set maximum difference between perfect arc and polygonal approximation. (default=0)--clearance=DOUBLEβ Set default trace-to-plane clearance. (default=0.0002)--flood=STRINGβ Flood layer with copper. Repeat to flood several layers. The value "plane_layers" floods all plane layers.
π₯ Physical properties
--epsilonr=DOUBLEβ Set epsilon r of dielectric.--loss-tangent=DOUBLEβ Set loss tangent of dielectric.--bulk-resistivity=DOUBLEβ Set bulk resistivity of copper (in Ohm meter).
π CSXCAD output options
--pcb-outlineβ Detailed board outline. (default=off)--lossy-copperβ Model copper as lossy. Default is modeling copper as perfect conductor. (default=off)--metal-3dβ Model copper layers as 3D. Default is modeling metal as 2D sheet. (default=off)
β PDF output options
--hue=DOUBLEβ Set PDF color hue. Range 0.0 to 1.0 (default=0.0)--saturation=DOUBLEβ Set PDF color saturation. Range 0.0 to 1.0 (default=0.6)--brightness=DOUBLEβ Set PDF color brightness. Range 0.0 to 1.0 (default=0.9)
π Debugging options
-r,--rawβ Raw output. Do not join adjacent or overlapping copper. (default=off)-d,--debugβ Increase debugging level. Repeat for more detailed debugging.-v,--verboseβ Print board summary.
Hyperlynx input files conventionally end in .hyp .
hyp2mat reads input from file infile. If no input file is specified input is read from standard in.
If no output file is specified output is to standard out.
If a syntax error occurs during conversion, error recovery is attempted. hyp2mat exits with zero status if conversion was succesful and non-zero if not.
The --verbose option can be used to list board dimensions. π
If only a small region of the board needs to be simulated the --xmin --xmax --ymin --ymax --zmin and --zmax options can be used to crop the board to a smaller region. lowkey the most useful thing in here ngl.
If not all layers of the board need to be simulated, the --layers option may be used to specify layers of interest.
If not all nets of the board need to be simulated, the --nets option may be used to specify nets of interest. The option --net=? lists all available nets. very "who's there" of her. π«Ά
Circles and arcs are approximated by polygons. By default a circle is approximated by an octagon. If higher accuracy is needed, set --arc-precision to the desired precision. This will increase the number of line segments used to draw circular, oval and oblong pads, amongst others.
To simulate a lossy dielectric, copy AddHyperLynxDielectric.m to your project directory and customize.
The --flood option floods layers with copper. The flooded copper respects trace-to-plane clearances. Copper net name is identical to layer name.
Typical use of hyp2mat is with simulation packages such as OpenEMS.
All lengths are in meters. β οΈ every single one. don't come at her with mils unless you're doing the math yourself.
π NOTES π
Board outlines and copper polygons should not be self-intersecting. like, just don't. π
Common causes of syntax errors are unquoted strings, and unassigned component values.
π Unquoted strings
Error: syntax error, unexpected STRING at 'Logo'
Source:
(? REF=My Logo BOT1 L=Bottom_Layer)
Cause: An unquoted string contains a space (' ').
Solution: Edit the .hyp file and put the string between double quotes:
(? REF="My Logo BOT1" L=Bottom_Layer)
π Unassigned component values
Error: syntax error, unexpected L, expecting FLOAT or STRING at 'L'
Source:
(R REF="R1" VAL= L="Top")
Cause: Component has not been assigned a value (VAL=).
Solution: Edit the .hyp file and assign a value to resistor R1:
(R REF="R1" VAL=0 L="Top")
or assign the resistor a value in the schematics editor and re-export to HyperLynx.
π FILES π
/usr/share/hyp2mat/matlab/β Supporting matlab routines for OpenEMS./usr/share/hyp2mat/eagle/β Examples and tutorial.
π EXAMPLES π
Convert pcb.hyp to pdf:
hyp2mat -o pcb.pdf pcb.hyp
Examine original Hyperlynx file:
hyp2mat -o pcb.pdf --raw pcb.hyp
Draw arcs with an accuracy of 10 mil or better:
hyp2mat -o pcb.pdf --arc-precision 0.000254 pcb.hyp
ate. no crumbs. β¨
πΈ AUTHOR πΈ
Koen De Vleeschauwer, http://www.kdvelectronics.eu β icon behavior, honestly. π
π¦ SEE ALSO π¦
octave(1)- OpenEMS, a free and open-source electromagnetic field solver using the FDTD method.
and that's the whole page bestie, ily, go simulate something π«Ά this was hyp2mat version 0.0.18, dated January 1980 (yes, really, she's been iconic since forever π
) β bye!! πβ¨
π¦ where this page comes from
- nixos 26.05: hyp2mat 0.0.18
- nixpkgs unstable: hyp2mat 0.0.18
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms