tomcl / ADDIE

GNU General Public License v3.0
1 stars 3 forks source link

Support more non-linear components #5

Open apantelopoulos opened 1 year ago

apantelopoulos commented 1 year ago

Currently, ADDIE supports only diodes when it comes to non-linear components. This is done using the iterative Newton-Raphson method along with Modified Nodal Analysis. More information on the algorithm can be found in the Addie Wiki. The function performing the simulation of non-linear components is called newtonRaphson and is in Simulation.fs.

This issue aims in ADDIE supporting other non-linear components such as MOSFETs and transistors in a similar way as it is done for diodes (using the linear companion models). A good starting point for the linear companion models of MOSFETS and transistors is this paper.

Before implementation, the newton-raphson with MNA method would have to be further evaluated to guarantee that a solution can always be obtained, or explore what should happen when a solution cannot be obtained. Also, a more advanced problem that will be encountered when dealing with more complex circuits, is finding all the operating points (DC Solutions) of a non-linear circuit. This is a fundamental problem in the computer-aided design of analog circuits, and this paper presents a SPICE-Oriented Method for Finding Multiple DC Solutions in Nonlinear Circuits using a deflation-based technique .