0
\$\begingroup\$

I've been testing a method of circuit simulation where I assign an initial voltage to each node, set the current across each wire according to Ohm's law, and then adjust the voltage of each node proportional to the net current inflow (which I think is correct under certain assumptions). At each timestep, I set the voltages near the voltage source to zero at the negative terminal and the desired voltage at the positive terminal.

The circuit appears to converge to some equilibrium state, and in the small number of tests cases that I've examined by hand (small voltage and current dividers), the steady state appears to be correct. And the update rule is linear (aside from the behavior at the voltage source, which I think could be improved), which makes the process resemble the power method for dominant eigenvector approximation, so the convergence properties should be well-behaved and the idea should generalize to other linear circuit elements.

However, I haven't been able to find any name or record of widespread use for this technique. It seems like a straightforward derivation that sidesteps the quadratic complexity of nodal analysis at the expense of being an approximation, so I think there would be some precedent for its use. Is this the case? I don't want to spend time reinventing the wheel. As far as I can tell most circuit simulators find steady states by directly solving a system of equations, but I'm interested in the case of extremely large circuits.

\$\endgroup\$
2
  • \$\begingroup\$ I just call it a checkerboard technique. I do the same thing, holding one node/point at ground and one node/point at some voltage (like one volt), but update all the other nodes in alternating red/black square -- so I run only black, then run only red, etc. With partial differentials describing adjacent disturbances during each iteration, it settles out nicely and can work for pretty much anything -- including antenna design with random shapes, etc. It's as old as I am, I am sure. And the world's population has quadrupled in that time. So... long time. \$\endgroup\$ Commented Oct 19, 2023 at 4:18
  • \$\begingroup\$ It readily solves many complex problems. I find it described here, here, here, and here by the same author. It works for driven equilibrium charge and/or temperature distributions over complex shapes and pretty much anything you can put your mind to. Just pixelize your shape, describe the means by which nearby points impact other nearby points, set up your source and sink points, and go for it. \$\endgroup\$ Commented Oct 19, 2023 at 4:32

1 Answer 1

0
\$\begingroup\$

You essentially assume that each node has a capacitor connected to the ground. You let them have some initial charges and calculate with Euler's integration method how the transient gradually dies off when the circuit drifts towards the steady state. Such constant node voltage steady state exists if there's only DC sources and resistors and the assumed capacitors. Using trapezoidal or even some more clever numerical integration method probably speeds up the process.

This surely could be extended for complex impedances and single frequency sinusoidal sources although the physical interpretation as capacitances in every node loses its meaning.

But I'm sure that asking circuit analysis mathematical method design ideas is so far beyond all practical electric circuit design problems that you should ask also elsewhere for higher possibility to get a really comprehensive answer. Academic level research reports and computer circuit analysis theory books are also surely useful.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.