[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: dependent sources in gschem



Hi,

I am trying to use a dependent source (CCCS) in an example for basic circuit analysis. How do I specify a current source to be dependent on a current through a resistor in a circuit in gschem?

Here is the circuit I am trying:
$> cat johnson-p-4_16.net
* gnetlist -v -g spice-sdb -o johnson-p-4_16.net johnson-p-4_16.sch
*********************************************************
* Spice file generated by gnetlist                      *
* spice-sdb version 10.9.2004 by SDB --                 *
* provides advanced spice netlisting capability.        *
* Documentation at http://www.brorson.com/gEDA/SPICE/   *
*********************************************************
F1 1 2 unknown
R3 0 2 4
R2 1 2 3
R1 0 1 2
I1 0 1 15A
.END


I want F1 to be dependent on current "i" flowing from node1 to node0 through R1.

All help is appreciated,
thanks,
->HS