Equation used in simulation software

Click For Summary
Simulation software like Pspice, Psim, and MATLAB Simulink utilize state space modeling to analyze circuits with non-linear elements. Non-linear components are approximated using complex linear differential equations, which are then integrated into state space equations. The process involves creating matrices for circuit components, which are combined into a larger matrix representing the entire circuit. By inverting this matrix and multiplying it by the source vector, node voltages can be determined for linear systems. For non-linear systems, iterative solutions are typically employed, as closed-form solutions are often not feasible.
deven
Messages
1
Reaction score
0
Can i know how this simulation softwares(like Pspice, Psim, MATLAB simulink) work ? Which methods they use to solve any circuit with non-linear elements ? How can we solve any circuit numerically ?
 
Engineering news on Phys.org
I don't know the specifics of how those software packages work but I do know that you can use http://en.wikipedia.org/wiki/State_space_%28controls%29" to model just about any kind of circuit. Non-linear things can be approximated by some sufficiently complex linear differential equation and then plugged into the state space equation.
 
Last edited by a moderator:
Years ago, I took a course related to this. The textbook was written by E. J. Mastascusa, who seems to be alive and well with his own web site.
Anyway, as I recall, we went over solutions of linear problems - sources, R, L, C, transformers, and dependent sources. All of these could be built out of standardized "little" matrices.
From a description file, the parts are given values and associated nodes. The values are populated into the part's matrix, and the matrices are superimposed into one large matrix according to their nodes. Independent sources are attached in a vector - again, according to their nodes.

Invert the large matrix, multiply it by the source vector and viola', you have the node voltages. Of course, this is only good for linear systems. It's great for DC operating points and simple AC analysis (Just put in the complex numbers). There was some way to handle transients using Rung-Kutta, but I've forgotten how.

I'm pretty sure the guys at Berkly came up with an auto assembling matrix as well, but I don't know how they would handle the nonlinear equations. Some very simple systems, like a battery, resistor, and diode, cannot be solved in closed form, so I think they must use an iterative solution.
 
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
3
Views
3K
Replies
9
Views
7K