switches in gnucap

View: New views
3 Messages — Rating Filter:   Alert me  

switches in gnucap

by cliffnotes :: Rate this Message:

| View Threaded | Show Only this Message

Should we use a "G" element (Voltage controlled resistor) or an "S" element
(Voltage controlled switch)?

If an S element, can I have an example of what the model file should look like?

If a G element, can I have an example of what the expression should look like?

Thanks

Cliff

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: switches in gnucap

by Rubén Gómez Antolí :: Rate this Message:

| View Threaded | Show Only this Message

Hello:

El 12/11/10 00:33, Cliff Wiener escribió:
> Should we use a "G" element (Voltage controlled resistor) or an "S" element
> (Voltage controlled switch)?
>
> If an S element, can I have an example of what the model file should look like?

The answer is on the wiki:

http://www.gnucap.org/dokuwiki/doku.php?id=gnucap:manual:devices:switches

>
> If a G element, can I have an example of what the expression should look like?

I'm not sure about G element.

> Thanks
>
> Cliff

Best regards.

Salud y Revolución.

Lobo.
--
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: switches in gnucap

by al davis-13 :: Rate this Message:

| View Threaded | Show Only this Message

On Thursday 11 November 2010, Cliff Wiener wrote:
> Should we use a "G" element (Voltage controlled resistor) or
> an "S" element  (Voltage controlled switch)?

It depends ..  Do you want a voltage controlled switch (two
discrete values) or a voltage controlled resistor (resistance is
a function of control voltage)?  

The voltage controlled resistor is a nonlinear device, therefore
prone to convergence issues, as are all nonlinear devices.  This
is the same as Spice, for versions of Spice that support the
voltage controlled resistor.

The switch is a time dependent linear device, therefore not
prone to convergence issues.  The time at which a switch crosses
its threshold is considered to be a "cross event", which means
time stepping is adjusted dynamically to insure timing accuracy
and waveform accuracy during and near the transition.  Spice
does not do this, therefore switch modeling is more accurate and
more reliable in gnucap than in spice.

A switch with connections only to the input (ground both
terminals of the output) can be used to assist time step control
by adding cross events at critical points.


> If an S element, can I have an example of what the model file
> should look like?
>
> If a G element, can I have an example of what the expression
> should look like?


http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual:devices:basic

http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual:devices:switches

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap