[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: dependent sources in gschem
- To: geda-user@xxxxxxxx
- Subject: Re: gEDA-user: dependent sources in gschem
- From: "H. S." <hs.samix@xxxxxxxxx>
- Date: Mon, 12 Sep 2005 01:30:10 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: geda-user-outgoing@seul.org
- Delivered-to: geda-user@seul.org
- Delivery-date: Mon, 12 Sep 2005 01:30:22 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=SbwE2vyMAj9rDJq0xeSseGZar7OJ5/t/uWzUY0mEcqrTlKW3DPg0dgwr6tclLRyhFuKXreGrxyw31Gexz4sVT0gCjbRpe2YqdV/U9rfvw4C35P0O7smKTFnPyeR/7t+/2oEa7mDzQl8wmu6NJO5KbBUM0U21+0lxQdPvQ+7Q8ok=
- In-reply-to: <cc73a6dc0509112148369a8d7a@mail.gmail.com>
- References: <cc73a6dc0509112148369a8d7a@mail.gmail.com>
- Reply-to: geda-user@xxxxxxxx
- Sender: owner-geda-user@xxxxxxxx
On 9/12/05, H. S. <hs.samix@xxxxxxxxx> wrote:
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
One way that I have found is to put a dummy voltage source of 0V
between R1 and node 1 with the source purpose of just measuring the
current through this branch. Then using:
F1 1 2 Vm 2
as the dependent source works perfectly.
Okay, the problem seems to have been solved. But I guess, from my
limited experience of spice, that this is the "spice method". Is there
any other way with which I can specify a CCCS without having to use a
dummy voltage source?
thanks,
->HS
PS: The new spice file is:
* 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 Vm 2
R3 0 2 4
R2 1 2 3
R1 0 3 2
Vm 1 3 0V
I1 0 1 15A
.END