On Thursday 20 January 2005 04:59 pm, David Grant wrote:
> Is there any way to simulate a behavioural current source
> (ie. a current defined by some complex equation involving
> node voltages in the circuit) using open source tools (ie.
> ngspice, tclspice, berkeley spice, etc...) in Linux?

Berkeley Spice, and therefore NGspice, has the "B" device, which 
lets you define it easily in terms of a simple equation 
involving node voltages.  In Gnucap, the basic current source 
can so some, but not the same as the "B" source in Spice.

Gnucap has a model compiler, that lets you define just about 
anything.  It is a little harder to use, but really does let 
you define anything,  All of the complex devices (diode, bjt, 
fet) provided are done this way.  Xspice, and therefore 
NGspice, has "code models" that are much harder to use and less 
flexible.  I have never seen Xspice code models used for 
complex devices like mosfets.

So, the answer is YES, with some caveats.

Reply via email to