- #1

- 1

- 0

## Main Question or Discussion Point

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 ?

- Thread starter deven
- Start date

- #1

- 1

- 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 ?

- #2

- 245

- 13

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" [Broken] 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:

- #3

- 702

- 34

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.

- Last Post

- Replies
- 2

- Views
- 764

- Last Post

- Replies
- 22

- Views
- 4K

- Last Post

- Replies
- 10

- Views
- 7K

- Last Post

- Replies
- 6

- Views
- 1K

- Last Post

- Replies
- 5

- Views
- 6K

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 7

- Views
- 4K

- Last Post

- Replies
- 5

- Views
- 3K