[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnucap-devel] workarounds for the lack of nodeset
From: |
al davis |
Subject: |
Re: [Gnucap-devel] workarounds for the lack of nodeset |
Date: |
Fri, 26 Jul 2019 20:57:40 -0400 |
I never had a need for nodeset, but it looks fairly easy to do.
In Spice, it works by jamming non-ideal sources into the matrix, 1 ohm
in parallel with a current source is close enough to a voltage source.
On DC or starting tran ..
First converge with sources in.
Then take them out and converge again.
Coding recommendations for gnucap ......
A single plugin file should do it.
The command .. builds a subckt with a bunch of sources, and
instantiates it.
The sources would be the non-ideal voltage source (V) or a G device
with a special bm_ (plugin)
The bm_ .. would fiddle the value according to status, effectively
removing itself ... f1=1 to start, then 0. f0=voltage to start, then
0. and sense something to change state.