Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytical Matrix Inversion in subnetwork growth (Filipsson/Compton) vs General Numerical Inversion following Hallbjörner #1011

Open
zolabar opened this issue Jan 25, 2024 · 7 comments
Labels
Circuit Help Wanted Nobody is working on this, you are welcome to! Improvements Improvements of existing feature

Comments

@zolabar
Copy link

zolabar commented Jan 25, 2024

The Circuit object is very flexible und thanks to networkx one can see what one builts!

I have a question and since I need some space and formulas I choose this medium.

I saw that scikit.rf Network objects can be connnected effciently using the connect method, wich uses the analytical connection formulae from Filipsson/Compton.

Wouldn't it be possible to use this connection idea when assembling general circuits?

Instead of using the general matrix inversion proposed by Hallbjörner

$$\boldsymbol{S}=\boldsymbol{X}\left(\boldsymbol{I}-\boldsymbol{C}\boldsymbol{X}\right)^{-1}$$

It seems to me, that the formulae in Filipsson/Compton describe explicitly how to connect s parameters without having to solve any systems of equations, they did that implicitely already.

Is the problem and motiviation for Hallbjörners formuale in the circuit assembly that the networks (of the lumped elements) that would need to be connected in a circuit would have to found first?

If so, I think it would be possible to analytically build 1-Port S-Parameter networks at least for resistors, capacitances, inductivities, SeriesImpedance... and then connect them with Filipsson/Compton's results.
Also 2-Port network S-Parameters could be obtained using ABCD and then a2s, I think. And then, the 1-Port and 2-Port networks could be connected via Filipsson/Compton with each other and any existing multiport network.

I think, that avoiding the numerical inversion of large matrices can save time, in particular, when optimizations or sensitivity analysis are carried out.

It seems to me that issue

#969

points into the direction of speeding up the Circuit assembly, too.

Maybe I missed the crucial point, that motivates the usage of Hallbjörner's numerical matrix innversions.

Compton, R.C.; , “Perspectives in microwave circuit analysis,” Circuits and Systems, 1989., Proceedings of the 32nd Midwest Symposium on , vol., no., pp.716-718 vol.2, 14-16 Aug 1989. URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=101955&isnumber=3167

Filipsson, Gunnar; , “A New General Computer Algorithm for S-Matrix Calculation of Interconnected Multiports,” Microwave Conference, 1981. 11th European , vol., no., pp.700-704, 7-11 Sept. 1981. URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4131699&isnumber=4131585

Hallbjörner, Paul. "Method for calculating the scattering matrix of arbitrary microwave networks giving both internal and external scattering." Microwave and Optical Technology Letters 38.2 (2003): 99-102.
https://onlinelibrary.wiley.com/doi/abs/10.1002/mop.10983

@jhillairet
Copy link
Member

scikit.rf Network objects can be connnected effciently using the connect method, wich uses the analytical connection formulae from Filipsson/Compton.\n\nWouldn't it be possible to use this connection idea when assembling general circuits?

Maybe. To be honest I did not try. Using only connect function is not that simple when connecting N-ports with N>2, which leads me to the Hallbjörner method. Its implementation was relatively straightforward from the paper.

One other great advantage is that this method allows a direct access to the internal S parameters, and so, to internal voltages and currents at all nodes.

@arsenovic
Copy link
Member

arsenovic commented Jan 28, 2024 via email

@arsenovic
Copy link
Member

arsenovic commented Jan 28, 2024 via email

@zolabar
Copy link
Author

zolabar commented Jan 29, 2024

Also 2-Port network S-Parameters could be obtained using ABCD and then a2s, I think. And then, the 1-Port and 2-Port networks could be connected via Filipsson/Compton with each other and any existing multiport network.

@jhillairet , thank you for the quick response. I think I see the practical part of the general formula. I just started thinking about this topic, because of speed of the circuit building (I think #969 also deals with that) ;)

@zolabar
Copy link
Author

zolabar commented Jan 29, 2024

i have used sympy (symbolic library) and the cascade methods to do as you describe in the past. it worked great.

On Fri, Jan 26, 2024 at 3:16 PM Julien Hillairet @.> wrote: scikit.rf Network objects can be connnected effciently using the connect method, wich uses the analytical connection formulae from Filipsson/Compton.\n\nWouldn't it be possible to use this connection idea when assembling general circuits? Maybe. To be honest I did not try. Using only connect function is not that simple when connecting N-ports with N>2, which leads me to the Hallbjörner method. Its implementation was relatively straightforward from the paper. One other great advantage is that this method allows a direct access to the internal S parameters, and so, to internal voltages and currents at all nodes. — Reply to this email directly, view it on GitHub <#1011 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJL3UGOXXGBXLC5HAY6373YQQFJPAVCNFSM6AAAAABCKZH6RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGYZTKOBVHA . You are receiving this because you are subscribed to this thread.Message ID: @.>

@arsenovic , thank you for the quick reply. That experiment with sympy sounds great. I forgot to write in the original potst (updated now) that besides 1-Ports networks, also 2-Port network S-Parameters could be obtained using ABCD and then a2s, I think. And then, the 1-Port and 2-Port networks could be connected via Filipsson/Compton with each other and any existing multiport network. I think, that circuit networks assembled in this way could have a faster assembly than the general Hallbjörner version. Of course, I don't know if there are exceptions to my hypothesis ;)

@zolabar
Copy link
Author

zolabar commented Jan 29, 2024

also i just saw your conformal maps library. looks cool! i have in the past tried to visualize how a two-port warps the smithchart over frequency, as an animation of conformal maps. but i did it numerically. the idea was to try and get a feel for what the 'error networks' in the calibrations were doing.

On Sun, Jan 28, 2024 at 4:25 PM alexander arsenovic @.> wrote: i have used sympy (symbolic library) and the cascade methods to do as you describe in the past. it worked great. On Fri, Jan 26, 2024 at 3:16 PM Julien Hillairet @.> wrote: > scikit.rf Network objects can be connnected effciently using the connect > method, wich uses the analytical connection formulae from > Filipsson/Compton.\n\nWouldn't it be possible to use this connection idea > when assembling general circuits? > > Maybe. To be honest I did not try. Using only connect function is not > that simple when connecting N-ports with N>2, which leads me to the > Hallbjörner method. Its implementation was relatively straightforward from > the paper. > > One other great advantage is that this method allows a direct access to > the internal S parameters, and so, to internal voltages and currents at all > nodes. > > — > Reply to this email directly, view it on GitHub > <#1011 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AAJL3UGOXXGBXLC5HAY6373YQQFJPAVCNFSM6AAAAABCKZH6RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGYZTKOBVHA > . > You are receiving this because you are subscribed to this thread.Message > ID: @.***> >

@arsenovic thank you for the feedback on the conformal mapping project. The application with respect to the smith chart sound interesting (the smith chart as a Möbius Transform ;)). Until now, I had mainly fluid dynamic and mechanical applications of confromal mappings in mind.
But rf theory and practice offer many more applications of these!

@zolabar
Copy link
Author

zolabar commented Jan 30, 2024

also i just saw your conformal maps library. looks cool! i have in the past tried to visualize how a two-port warps the smithchart over frequency, as an animation of conformal maps. but i did it numerically. the idea was to try and get a feel for what the 'error networks' in the calibrations were doing.

On Sun, Jan 28, 2024 at 4:25 PM alexander arsenovic @.> wrote: i have used sympy (symbolic library) and the cascade methods to do as you describe in the past. it worked great. On Fri, Jan 26, 2024 at 3:16 PM Julien Hillairet _@**._> wrote: > scikit.rf Network objects can be connnected effciently using the connect > method, wich uses the analytical connection formulae from > Filipsson/Compton.\n\nWouldn't it be possible to use this connection idea > when assembling general circuits? > > Maybe. To be honest I did not try. Using only connect function is not > that simple when connecting N-ports with N>2, which leads me to the > Hallbjörner method. Its implementation was relatively straightforward from > the paper. > > One other great advantage is that this method allows a direct access to > the internal S parameters, and so, to internal voltages and currents at all > nodes. > > — > Reply to this email directly, view it on GitHub > <#1011 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AAJL3UGOXXGBXLC5HAY6373YQQFJPAVCNFSM6AAAAABCKZH6RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGYZTKOBVHA > . > You are receiving this because you are subscribed to this thread.Message > ID: _@_.*> >

@arsenovic thank you for the feedback on the conformal mapping project. The application with respect to the smith chart sound interesting (the smith chart as a Möbius Transform ;)). Until now, I had mainly fluid dynamic and mechanical applications of confromal mappings in mind. But rf theory and practice offer many more applications of these!

A star on

https://github.com/im-AMS/Conformal-Maps

would be great ;)

@jhillairet jhillairet added Circuit Improvements Improvements of existing feature Help Wanted Nobody is working on this, you are welcome to! labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Circuit Help Wanted Nobody is working on this, you are welcome to! Improvements Improvements of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants