This blog is an "informal" part of NL5 Circuit Simulator website. I'm going to explain what NL5 is, how is it different from popular (Spice-based) simulation tools, and why it worth trying.

It turned out that in Spice-dominating world many people undervalue, or simply are not aware of apparent benefits of simulation with "ideal" components. Some people strongly oppose the whole idea of "ideal" simulation, some people love it. I believe, both "real" and "ideal" simulation approaches make sense, as long as you understand what you are doing: "use right tool for right task".

Thanks.

Subscribe to:
Post Comments (Atom)

Can new devices added to Nl5 ?

ReplyDeleteSure, especially if it is something useful for everybody. Just e-mail it, submit on "Contact us" page of NL5 website, or start topic in the NL5 forum.

ReplyDeleteIf the component/model is something very special, or you don't wont it to be offered for public, we can discuss that as well.

As I remember my work 20 years ago simulating ideal switches as extreme representatives of being either voltage controlled or current controlled 2-terminals is not possible with the modified nodal approach. It lead to in accurate and unsolveable matrix scaling issues. I investigate long time ago time variant tableau approaches which lead to time variant modified state matrix representation in partly explicte and implicite time integration solution. The origin of that work was time variable state space representation of switching networks like DC-DC. But also similar structures like MOS with switch like numerical terminal behaviour profit from this general work. I have extension formulas also for switched networks with time varing degree defficiency where currents and voltages could have distributive nature. A further sideeffect was the study of special sparse matrix solution methods which combine direct and interative solution to balance computation and memory reference based on coefficent classification derived on binary classes built up from the dulmage-mendelsohn decomp.

ReplyDeleteToday some of this principles could be found here and there in comercial simulators.

Is there a similar method used in NL5?

It's hard to say, mostly because I don't understand 50% of what you've said (sorry ! :). Some terms sound familiar though, but I can't recognize for sure what problems are described. Is it something about ideal switches?

ReplyDeleteI can just say that I've developed all the algorithms myself, solving all problems in (as I believe) natural and obvious way, except some moments and tricks which probably distinguish NL from other piecewise-linear simulators.

Yes,

ReplyDeleteready my post again is very compressed and cryptic. After discovering what basically NL5 should solve I remember my finding in circuit simulator development which I leave more than 20 years ago.

I will explain the most similarity between what I have done and what I think is implemented in NL5.

One of the first procedures in circuit simulation is to built a spanning tree or forest form the connectivity information of the flat netlist. So in effect you assign components to the tree or to the cotree. That means that they are either be voltage of current controlled. That general principle could also be applied to controlled sources of either type but the algrithms are then not based on graph theory but on matroid theory. There typical conflicts like cutsets of sources or loops of voltage sources. For all these are methods to either reducing the number of degrees either in the state variable or there derivation over time.

That is all known and there are well developed algos. I remember that IBM have used these in there inhouse simulator. But to be honest I am not on current track of development now.

The new point is that like switches and also MOS device chare a property which make the static assignment to being either voltage of current controlled by numerical difficult. In modified nodal analysis that is not solved at the orign but by adding glue elements like minimum res or minium conductance. I realized that more time effectice solution of the further matrix operation after assigning elements is done if there assignment is done dynamic. So it is not only more accurate but more efficient. And the specific reason is not that the fill in is better or the condition number is lower but it allows a combination of special tearing and combining direct and iterative sparse matrix solution.

Hope that explain a little my thinking about a possible similarity.

Does not help much...

ReplyDelete1. While creating netlist I'm not using neither graph nor matroid theory (what is it?)

2. I don't care if the component is voltage or current controlled and if there are current or voltage loops.

3. There are no minimum res or minimum conductance (ideal switches are zero/infinity), there are no iterations solving linear system: it's simple Gauss elimination (with some modification though)

4. I'm not using sparse matrix technique, at least in its common meaning. NL is optimized for speed, not for memory. It is not supposed to simulate thousands of transistors, it is tool primarily for fast evaluation of reasonably small circuits.

To anonymous specialist in circuit analysis: first of all hello! I'm interested to discuss the theoretical background and different approaches to compose the equations (state-space, MNA, etc.) IMHO, the best place for such discussion is the NL5 forum. So, I suggest for both of us to register there.

ReplyDeleteThis comment has been removed by the author.

ReplyDeleteI am not saying it is simple, and I agree that ideal switches (ideal components in general) are problematic.

ReplyDeleteHowever, this is my job to handle it, not users.

You might have noticed, if there no solution, I honestly display a message "No solution".

If there are many solutions, I select any of them, since the user most likely does not care, and it does not affect the rest of the circuit anyway.

Other that that, solution is correct, and I don't see any reason why ideal components should not be allowed, even with some headache for me.

This comment has been removed by the author.

DeleteI don't know if my approach is similar or different, since I was never interested in other's solutions. Maybe just reinvented the wheel, or could be something very different.

ReplyDeleteAs for "showing a way", please note that there is a very LONG way from an idea in scientific article to a working product. The main problem is that most of suggested ideas apply to specific cases and conditions only, while a good product should work for any real, stupid, and even unreal circuit topology and component values without exceptions.

This comment has been removed by a blog administrator.

ReplyDelete