FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FastHenry2
 Crashing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

todotson

USA
4 Posts

Posted - Aug 29 2021 :  23:18:56  Show Profile  Reply with Quote
Hello,

I am working with this .inp file. This was made by an FH2 generation script that I made, which will be put used with an optimization routine for PCB layout.

When I try to execute this script, the software seems to crash. The FH2 dialogue window opens, displays the preamble, and then it crashes. I am not sure why. Can I get some help troubleshooting this one?

Thanks for your time, and patience with a noob! :)


*This is an example Preamble. Please replace me with a seeded ID.
.units mm
.default sigma = 3.5e7
*
*
*
gNet2 x1 =0 y1 = 4 z1 = 0
+ x2 = 4 y2 = 4 z2 = 0
+ x3 = 4 y3 = 5 z3 = 0
+ thick = 0.03470
+ seg1 = 25 seg2=8
+ ng_Component1Terminal2_GP (2,4.25,0)
+ ng_Component2Terminal1_GP (2,4.75,0)

gNet3 x1 =0 y1 = 3 z1 = -6.94e-2
+ x2 = 12 y2 = 3 z2 = -6.94e-2
+ x3 = 12 y3 = 8 z3 = -6.94e-2
+ thick = 0.03470
+ seg1 = 25 seg2=8
+ ng_Component2Terminal2_GP (2,8,-6.94e-2)
+ ng_Component3Terminal1_GP (10,3,-6.94e-2)
+ ng_Via1 (2,8,-6.94e-2)
+ ng_Via2 (10,3,-6.94e-2)
+ hole circle (10,6,-6.94e-2,1.00000)

gNet1 x1 =0 y1 = 0 z1 = -13.88e-2
+ x2 = 12 y2 = 0 z2 = -13.88e-2
+ x3 = 12 y3 = 6 z3 = -13.88e-2
+ thick = 0.03470
+ seg1 = 25 seg2=8
+ ng_Component1Terminal1_GP (2,1,-13.88e-2)
+ ng_Component3Terminal2_GP (10,6,-13.88e-2)
+ ng_Via3 (2,1,-13.88e-2)
+ ng_Via4 (10,6,-13.88e-2)





***************************************************************
nVia1node1 x=2 y=8 z=0

nVia1node2 x=2 y=8 z=-6.94e-2

.equiv nVia1node2 ng_Via1
EVia1 nVia1node1 nVia1node2 w=0.25 h=0.25

***************************************************************
nVia2node1 x=10 y=3 z=0

nVia2node2 x=10 y=3 z=-6.94e-2

.equiv nVia2node2 ng_Via2
EVia2 nVia2node1 nVia2node2 w=0.25 h=0.25

***************************************************************
nVia3node1 x=2 y=0 z=0

nVia3node2 x=2 y=0 z=-13.88e-2

.equiv nVia3node2 ng_Via3
EVia3 nVia3node1 nVia3node2 w=0.25 h=0.25

***************************************************************
nVia4node1 x=10 y=6 z=0

nVia4node2 x=10 y=6 z=-13.88e-2

.equiv nVia4node2 ng_Via4
EVia4 nVia4node1 nVia4node2 w=0.25 h=0.25

***************************************************************
nExc_Via1Node1 x=2 y=4.25 z=0

nExc_Via1Component1Terminal2_GP x=2 y=4.25 z=0

.equiv nExc_Via1Component1Terminal2_GP ng_Component1Terminal2_GP

EExc_Via1 nExc_Via1Node1 nExc_Via1Component1Terminal2_GP w=4 h=0.5
***************************************************************

nExc_Via2Node1 x=2 y=4.75 z=0.017360

nExc_Via2Component2Terminal1_GP x=2 y=4.75 z=0

.equiv nExc_Via2Component2Terminal1_GP ng_Component2Terminal1_GP

EExc_Via2 nExc_Via2Node1 nExc_Via2Component2Terminal1_GP w=4 h=0.5
***************************************************************

nExc_Via3Node1 x=2 y=8 z=0.017360

nExc_Via3Component2Terminal2_GP x=2 y=8 z=-6.94e-2

.equiv nExc_Via3Component2Terminal2_GP ng_Component2Terminal2_GP

EExc_Via3 nExc_Via3Node1 nExc_Via3Component2Terminal2_GP w=4 h=0.5
***************************************************************

nExc_Via4Node1 x=10 y=3 z=0.017360

nExc_Via4Component3Terminal1_GP x=10 y=3.00000 z=-6.94e-2

.equiv nExc_Via4Component3Terminal1_GP ng_Component3Terminal1_GP

EExc_Via4 nExc_Via4Node1 nExc_Via4Component3Terminal1_GP w=4 h=0.5
***************************************************************

nExc_Via5Node1 x=10 y=6 z=0.017360

nExc_Via5Component3Terminal2_GP x=10 y=6 z=-13.88e-2

.equiv nExc_Via5Component3Terminal2_GP ng_Component3Terminal2_GP

EExc_Via5 nExc_Via5Node1 nExc_Via5Component3Terminal2_GP w=4 h=0.5
***************************************************************

nExc_Via6Node1 x=2 y=0 z=0.017360

nExc_Via6Component1Terminal1_GP x=2 y=0 z=-13.88e-2

.equiv nExc_Via6Component1Terminal1_GP ng_Component1Terminal1_GP

EExc_Via6 nExc_Via6Node1 nExc_Via6Component1Terminal1_GP w=4 h=0.5
***************************************************************

.extern nExc_Via1Node1 nExc_Via2Node1
*.extern nExc_Via3Node1 nExc_Via4Node1
*.extern nExc_Via5Node1 nExc_Via6Node1

***************************************************************
.freq fmin=6e6 fmax=6e8 ndec=1
.end


PhD student at North Carolina State University

Professor: Dr. Srdjan Lukic

Topic: Design Space Exploration in Power Electronics

todotson

USA
4 Posts

Posted - Aug 30 2021 :  00:34:25  Show Profile  Reply with Quote
Hello, I was able to resolve my issue. I believe it was because of two of my excitations(.extern nExc_Via1Node1 nExc_Via2Node1)seemed to be touching each other. I removed the connecting net in the following Code:

*This is an example Preamble. Please replace me with a seeded ID.
.units mm
.default sigma = 3.5e7
*
*
*

gNet3 x1 =0 y1 = 3 z1 = -6.94e-2
+ x2 = 12 y2 = 3 z2 = -6.94e-2
+ x3 = 12 y3 = 8 z3 = -6.94e-2
+ thick = 0.03470
+ seg1 = 25 seg2=8
+ ng_Component2Terminal2_GP (2,8,-6.94e-2)
+ ng_Component3Terminal1_GP (10,3,-6.94e-2)
+ ng_Via1 (2,8,-6.94e-2)
+ ng_Via2 (10,3,-6.94e-2)
+ hole circle (10,6,-6.94e-2,1.00000)

gNet1 x1 =0 y1 = 0 z1 = -13.88e-2
+ x2 = 12 y2 = 0 z2 = -13.88e-2
+ x3 = 12 y3 = 6 z3 = -13.88e-2
+ thick = 0.03470
+ seg1 = 25 seg2=8
+ ng_Component1Terminal1_GP (2,1,-13.88e-2)
+ ng_Component3Terminal2_GP (10,6,-13.88e-2)
+ ng_Via3 (2,1,-13.88e-2)
+ ng_Via4 (10,6,-13.88e-2)





***************************************************************
nVia1node1 x=2 y=8 z=0

nVia1node2 x=2 y=8 z=-6.94e-2

.equiv nVia1node2 ng_Via1
EVia1 nVia1node1 nVia1node2 w=0.25 h=0.25

***************************************************************
nVia2node1 x=10 y=3 z=0

nVia2node2 x=10 y=3 z=-6.94e-2

.equiv nVia2node2 ng_Via2
EVia2 nVia2node1 nVia2node2 w=0.25 h=0.25

***************************************************************
nVia3node1 x=2 y=0 z=0

nVia3node2 x=2 y=0 z=-13.88e-2

.equiv nVia3node2 ng_Via3
EVia3 nVia3node1 nVia3node2 w=0.25 h=0.25

***************************************************************
nVia4node1 x=10 y=6 z=0

nVia4node2 x=10 y=6 z=-13.88e-2

.equiv nVia4node2 ng_Via4
EVia4 nVia4node1 nVia4node2 w=0.25 h=0.25

***************************************************************

nExc_Via3Node1 x=2 y=8 z=0.017360

nExc_Via3Component2Terminal2_GP x=2 y=8 z=0

.equiv nExc_Via3Component2Terminal2_GP ng_Component2Terminal2_GP

EExc_Via3 nExc_Via3Node1 nExc_Via3Component2Terminal2_GP w=4 h=0.5
***************************************************************

nExc_Via4Node1 x=10 y=3 z=0.017360

nExc_Via4Component3Terminal1_GP x=10 y=3.00000 z=0

.equiv nExc_Via4Component3Terminal1_GP ng_Component3Terminal1_GP

EExc_Via4 nExc_Via4Node1 nExc_Via4Component3Terminal1_GP w=4 h=0.5
***************************************************************

nExc_Via5Node1 x=10 y=6 z=0.017360

nExc_Via5Component3Terminal2_GP x=10 y=6 z=0

.equiv nExc_Via5Component3Terminal2_GP ng_Component3Terminal2_GP

EExc_Via5 nExc_Via5Node1 nExc_Via5Component3Terminal2_GP w=4 h=0.5
***************************************************************

nExc_Via6Node1 x=2 y=0 z=0.017360

nExc_Via6Component1Terminal1_GP x=2 y=0 z=0

.equiv nExc_Via6Component1Terminal1_GP ng_Component1Terminal1_GP

EExc_Via6 nExc_Via6Node1 nExc_Via6Component1Terminal1_GP w=4 h=0.5
***************************************************************


.extern nExc_Via3Node1 nExc_Via4Node1
.extern nExc_Via5Node1 nExc_Via6Node1

***************************************************************
.freq fmin=6e6 fmax=6e8 ndec=0
.end








Here are the results I got:

FastHenry 3.0, (c) by M.I.T.
FastHenry2 Windows porting and modifications, version 3.6
(c) 1998, 2015 by Enrico Di Lorenzo, w*w.fastfieldsolvers.com

Running FastHenry 3.0 (29Sep96)
Date: Sun Aug 29 18:34:06 2021
Solution technique: ITERATIVE
Matrix vector product method: MULTIPOLE
Order of expansion: 2
Preconditioner: ON
Error tolerance: 0.001
Reading from file: C:\Users\Thomas Dotson\Documents\Github\Dissertation_Final\FH2_FirstFile_Net1_Net3.inp
Title:
*This is an example Preamble. Please replace me with a seeded ID.

all lengths multiplied by 0.001 to convert to meters
Warning: ground plane node ng_via1 coincident with another node
Warning: ground plane node ng_via2 coincident with another node
Warning: ground plane node ng_via3 coincident with another node
Warning: ground plane node ng_via4 coincident with another node
Warning: ndec == 0. Resetting to a very small number instead (0.01)
Total number of filaments before multipole refine: 847
Total number of filaments after multipole refine: 847

Multipole Summary
Expansion order: 2
Number of partitioning levels: 4
Total number of filaments: 847
Percentage of multiplies done by multipole: 100%
Scanning graph to find fundamental circuits...
Number of Groundplanes : 2
Number of filaments: 847
Number of segments: 847
Number of nodes: 484
Number of meshes: 403
----from tree: 3
----from planes: (before holes) 400
Number of conductors: 2 (rows of matrix in Zc.mat)
Number of columns: 2 (columns of matrix in Zc.mat)
Number of real nodes: 476
filling M...
Exact number of meshes after ground plane holes removed: 385
filling R and L...
Total Memory allocated: 3819 kilobytes
Frequency = 6e+06
Forming sparse matrix preconditioner..
conductor 0 from node nexc_via5node1
Calling gmres...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
conductor 1 from node nexc_via3node1
Calling gmres...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

Computed matrices (R+jL)
Row 0: nexc_via3node1 to nexc_via4node1
Row 1: nexc_via5node1 to nexc_via6node1
Freq = 6e+06
Row 0: 3.08062e-06+3.45838e-09j -1.03495e-07-1.39376e-09j
Row 1: -1.04468e-07-1.39484e-09j 2.5519e-06+3.42054e-09j

All impedance matrices dumped to file Zc.mat

Times: Read geometry 0.239
Multipole setup 0.116
Scanning graph 0.0149999
Form A M and Z 0.039
form M'ZM 0
Form precond 0.02
GMRES time 0.832
Total: 1.261



PhD student at North Carolina State University

Professor: Dr. Srdjan Lukic

Topic: Design Space Exploration in Power Electronics
Go to Top of Page

Enrico

447 Posts

Posted - Aug 30 2021 :  15:44:49  Show Profile  Reply with Quote
Happy you made it. FastHenry should catch the exception in case there is some issue but I'm afraid there are some failure cases where this does not happen.

Most of the time, however, this is cause by some invalid input file. The most effective troubleshooting method is to reduce progressively your input file until you have the minimum offending input.
Then either you are able to understand the issue or you can start FastHenry in debug mode (requires you to compile the SW with debug symbols and attach the debugger; you can do that simply enough from VisualStudio).

Best Regards,
Enrico
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06