My Zc.Mat file contains different data to that displayed in the program window
Program window:
Frequency = 1e+007
Forming sparse matrix preconditioner..
conductor 0 from node ng1c_pseudo_11
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 28 29 30 31 32 33
conductor 1 from node ng1c_pseudo_10
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 28 29 30 31 32 33
Computed matrices (R+jL)
Row 0: n1c_c1 to n1e_c1
Row 1: n1c_c2 to n1e_c2
Freq = 0.1
Row 0: 0.000896206+8.2479e-009j 0.000516544+4.89758e-009j
Row 1: 0.000516544+4.89936e-009j 0.00136594+1.18344e-008j
Freq = 1000
Row 0: 0.000898476+8.19934e-009j 0.000517682+4.87085e-009j
Row 1: 0.000517685+4.87259e-009j 0.00136915+1.17781e-008j
Freq = 1e+007
Row 0: 0.00177828+3.72265e-009j 0.00115711+2.32861e-009j
Row 1: 0.00115721+2.32849e-009j 0.00268639+4.63719e-009j
All impedance matrices dumped to file Zc.mat
Times: Read geometry 0.25
Multipole setup 8.485
Scanning graph 0.046
Form A M and Z 0.0469999
form M'ZM 0
Form precond 4.954
GMRES time 15.03
Total: 28.812
and the file, as read into the Matlab editor
Row 2: n1c_c2 to n1e_c2
Row 1: n1c_c1 to n1e_c1
Impedance matrix for frequency = 0.1 2 x 2
0.000896206 +5.18231e-009j 0.000516544 +3.07724e-009j
0.000516544 +3.07836e-009j 0.00136594 +7.43577e-009j
Impedance matrix for frequency = 1000 2 x 2
0.000898476 +5.1518e-005j 0.000517682 +3.06044e-005j
0.000517685 +3.06154e-005j 0.00136915 +7.4004e-005j
Impedance matrix for frequency = 1e+007 2 x 2
0.00177828 +0.233901j 0.00115711 +0.146311j
0.00115721 +0.146303j 0.00268639 +0.291363j
So the floating point exponent appears completely wrong!
Writing files appears a little troublesome at present:
- Some .mat are ascii text, others are Matlab binary form
- Some .mat binary files are not readable by Matlab
- Use of the "-k text" option still appeared to produce binary files
Hopefully, they are all linked to the common bug causing the first fault listed above.
David Lee
Power Electronics, UK