<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1857</id>
	<title>Nabble - Gnucap</title>
	<updated>2009-12-02T13:48:20Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gnucap-f1857.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gnucap-f1857.html" />
	<subtitle type="html">Gnucap is the Gnu Circuit Analysis Package. The primary component is a general purpose circuit simulator. It performs nonlinear dc and transient analyses, fourier analysis, and ac analysis. It is fully interactive and command driven. It can also be run in batch mode or as a server. Spice compatible models for the MOSFET (level 1-7), BJT, and diode are included in this release. Gnucap home is &lt;a href=&quot;http://www.gnu.org/software/gnucap/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26618419</id>
	<title>Problems using measure command</title>
	<published>2009-12-02T13:48:20Z</published>
	<updated>2009-12-02T13:48:20Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello All,
&lt;br&gt;&lt;br&gt;I think that I miss something using measure command.
&lt;br&gt;&lt;br&gt;My objective is get a full rms wave of the output, is correct with 
&lt;br&gt;measure command?
&lt;br&gt;&lt;br&gt;I follow Gnucap's wiki manual:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual:commands:measure&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual:commands:measure&lt;/a&gt;&lt;br&gt;&lt;br&gt;I want to get the RMS value of a signal in a circuit, for it I do:
&lt;br&gt;&lt;br&gt;gnucap&amp;gt; probe tran i(RMEASA)
&lt;br&gt;gnucap&amp;gt; tran 0 10ms 50us uic
&lt;br&gt;#Time &amp;nbsp; &amp;nbsp; &amp;nbsp; i(RMEASA)
&lt;br&gt;&amp;nbsp; 0. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.
&lt;br&gt;&amp;nbsp; 50.u &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0020859
&lt;br&gt;&amp;nbsp; 100.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0033786
&lt;br&gt;&amp;nbsp; 150.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0041567
&lt;br&gt;&amp;nbsp; 200.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0046241
&lt;br&gt;&amp;nbsp; 250.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0049039
&lt;br&gt;&amp;nbsp; 300.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0050698
&lt;br&gt;&amp;nbsp; 350.u &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0051667
&lt;br&gt;&lt;br&gt;(...)
&lt;br&gt;&lt;br&gt;&amp;nbsp; 0.0099 &amp;nbsp; &amp;nbsp;-0.0053322
&lt;br&gt;&amp;nbsp; 0.00995 &amp;nbsp; -0.0053357
&lt;br&gt;&amp;nbsp; 0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.0053384
&lt;br&gt;gnucap&amp;gt; measure eficaz = rms(probe=&amp;quot;i(RMEASA)&amp;quot;)
&lt;br&gt;no match: i(RMEASA)
&lt;br&gt;&lt;br&gt;If I see what value gets &amp;quot;eficaz&amp;quot;:
&lt;br&gt;&lt;br&gt;gnucap&amp;gt; eval eficaz
&lt;br&gt;eficaz=eficaz
&lt;br&gt;&lt;br&gt;Another test with mean command
&lt;br&gt;&lt;br&gt;gnucap&amp;gt; measure eficaz = mean(probe=&amp;quot;i(RMEASA)&amp;quot;)
&lt;br&gt;no match: i(RMEASA)
&lt;br&gt;&lt;br&gt;I'd try with examples in wiki, step by step, without sucess.
&lt;br&gt;&lt;br&gt;I get a error with &amp;quot;mean&amp;quot; or &amp;quot;rms&amp;quot; command:
&lt;br&gt;&lt;br&gt;gnucap&amp;gt; rms
&lt;br&gt;rms
&lt;br&gt;^ ? what's this?
&lt;br&gt;gnucap&amp;gt; mean
&lt;br&gt;mean
&lt;br&gt;^ ? what's this?
&lt;br&gt;gnucap&amp;gt; measure
&lt;br&gt;no match:
&lt;br&gt;&lt;br&gt;There are something wrong in my gnucap?
&lt;br&gt;&lt;br&gt;Or, What am I doing wrong?
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26618419&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-using-measure-command-tp26618419p26618419.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26552733</id>
	<title>Re: (Gnucap+) Severals questions and problems compiling gnucap-python</title>
	<published>2009-11-28T04:31:57Z</published>
	<updated>2009-11-28T04:31:57Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello Henrik:
&lt;br&gt;&lt;br&gt;Henrik Johansson escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Rubén,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I have several questions about Gnucap+ (0):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1· The Gnucap's sources are sync with development snapshot from Al Davis?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The Gnucap compiled from included gnucap+'s sources says:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; gnucap
&lt;br&gt;&amp;gt;&amp;gt; Gnucap 2009.02.02 RCS 26.109
&lt;br&gt;&amp;gt;&amp;gt; The Gnu Circuit Analysis Package
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It seems that the gnucap+ source is not updated against Al's latest 
&lt;br&gt;&amp;gt; development version, The gnucap+ repo was based on my shared library version 
&lt;br&gt;&amp;gt; of gnucap at github (&lt;a href=&quot;http://github.com/henjo/gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/henjo/gnucap&lt;/a&gt;) which was based on Al's 
&lt;br&gt;&amp;gt; 2009.02.02 development &amp;nbsp;snapshot. But now this repo is up to date with the 
&lt;br&gt;&amp;gt; latest development snapshot.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Ok, I compiled gnucap from your git repo and now I Gnucap up to date:
&lt;br&gt;&lt;br&gt;Gnucap 2009.11.10 RCS 26.129
&lt;br&gt;The Gnu Circuit Analysis Package
&lt;br&gt;Never trust any version less than 1.0
&lt;br&gt;Copyright 1982-2009, Albert Davis
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; (...)
&lt;br&gt;&amp;gt;&amp;gt; 2· I'm having some issues with python plugin.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Configure stops with:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; checking gnucap/c_comand.h usability... no
&lt;br&gt;&amp;gt;&amp;gt; checking gnucap/c_comand.h presence... no
&lt;br&gt;&amp;gt;&amp;gt; checking for gnucap/c_comand.h... no
&lt;br&gt;&amp;gt;&amp;gt; checking for status in -lgnucap... no
&lt;br&gt;&amp;gt;&amp;gt; configure: error: Error, gnucap as shared library not found.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You need to install the shared library version of gnucap first. I guess the 
&lt;br&gt;&amp;gt; documentation is somewhat lacking here. But you have to build gnucapplus (or 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://github.com/henjo/gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/henjo/gnucap&lt;/a&gt;) using the automake tools. Running:
&lt;br&gt;&amp;gt;&amp;gt; autogen.sh
&lt;br&gt;&amp;gt;&amp;gt; ./configure
&lt;br&gt;&amp;gt;&amp;gt; make
&lt;br&gt;&amp;gt; should work
&lt;/div&gt;&lt;br&gt;At this moment I have Gnucap installed from your sources.
&lt;br&gt;&lt;br&gt;Aclaration: I make a Deb package of gnucap's Henrik sources; I supposed 
&lt;br&gt;that there are not difference with compile directly from sources.
&lt;br&gt;&lt;br&gt;There aren't anything c_comand.h in these package:
&lt;br&gt;&lt;br&gt;dpkg -L gnucap
&lt;br&gt;/.
&lt;br&gt;/usr
&lt;br&gt;/usr/share
&lt;br&gt;/usr/share/gnucap
&lt;br&gt;/usr/share/gnucap/doc
&lt;br&gt;/usr/share/gnucap/doc/acs-tutorial
&lt;br&gt;/usr/share/gnucap/doc/COPYING
&lt;br&gt;/usr/share/gnucap/doc/history
&lt;br&gt;/usr/share/gnucap/doc/INSTALL
&lt;br&gt;/usr/share/gnucap/doc/relnotes.029
&lt;br&gt;/usr/share/gnucap/doc/relnotes.030
&lt;br&gt;/usr/share/gnucap/doc/relnotes.031
&lt;br&gt;/usr/share/gnucap/doc/relnotes.032
&lt;br&gt;/usr/share/gnucap/doc/relnotes.033
&lt;br&gt;/usr/share/gnucap/doc/relnotes.034
&lt;br&gt;/usr/share/gnucap/doc/whatisit
&lt;br&gt;/usr/share/gnucap/examples
&lt;br&gt;/usr/share/gnucap/examples/eq.doc
&lt;br&gt;/usr/share/gnucap/examples/eq2-145.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq2-289.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq2-577.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq3-1153.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-2305.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-4609.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-6913.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-9217.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-9217.tran-slow.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq4-9217.tran.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.ac.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.euler.fast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.fast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.like-spice.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.slow.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.vfast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.vvfast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq5-.tran.vvvfast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq6-.tran.vvvfast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eq7-.tran.vvvfast.ckt
&lt;br&gt;/usr/share/gnucap/examples/eqboost.ckt
&lt;br&gt;/usr/share/gnucap/examples/eqflat.ckt
&lt;br&gt;/usr/share/gnucap/examples/eqmodify.ckt
&lt;br&gt;/usr/share/gnucap/examples/killzap.ckt
&lt;br&gt;/usr/share/gnucap/examples/killzap.doc
&lt;br&gt;/usr/share/gnucap/examples/nmos.doc
&lt;br&gt;/usr/share/gnucap/examples/nmos100.ckt
&lt;br&gt;/usr/share/gnucap/examples/nmos15.ckt
&lt;br&gt;/usr/share/gnucap/examples/nmos18.ckt
&lt;br&gt;/usr/share/gnucap/examples/nmos30.ckt
&lt;br&gt;/usr/share/gnucap/examples/nmosgen.c
&lt;br&gt;/usr/share/gnucap/examples/nmp100.ckt
&lt;br&gt;/usr/share/gnucap/examples/nmpgen.c
&lt;br&gt;/usr/share/gnucap/examples/opamp-ol.ckt
&lt;br&gt;/usr/share/gnucap/examples/opamp-vf.ckt
&lt;br&gt;/usr/share/gnucap/examples/opamp.doc
&lt;br&gt;/usr/share/gnucap/examples/runall
&lt;br&gt;/usr/share/gnucap/examples/runall.out
&lt;br&gt;/usr/share/gnucap/examples/sc18.ckt
&lt;br&gt;/usr/share/man
&lt;br&gt;/usr/share/man/man1
&lt;br&gt;/usr/share/man/man1/gnucap.1.gz
&lt;br&gt;/usr/share/man/man1/gnucap-ibis.1.gz
&lt;br&gt;/usr/share/doc
&lt;br&gt;/usr/share/doc/gnucap
&lt;br&gt;/usr/share/doc/gnucap/README
&lt;br&gt;/usr/share/doc/gnucap/README.Debian
&lt;br&gt;/usr/share/doc/gnucap/copyright
&lt;br&gt;/usr/share/doc/gnucap/changelog.Debian.gz
&lt;br&gt;/usr/share/doc/gnucap/changelog.gz
&lt;br&gt;/usr/bin
&lt;br&gt;/usr/bin/gnucap-modelgen
&lt;br&gt;/usr/bin/gnucap
&lt;br&gt;&lt;br&gt;Configure still stop with same problem.
&lt;br&gt;&lt;br&gt;If I skip configure (autogen.sh don't stop here) problem and compile 
&lt;br&gt;with &amp;quot;make install&amp;quot;, fails with:
&lt;br&gt;&lt;br&gt;(CDPATH=&amp;quot;${ZSH_VERSION+.}:&amp;quot; &amp;&amp; cd . &amp;&amp; /bin/sh 
&lt;br&gt;/media/Aldaxcorb/Fuentes/Electronica/Gnucap_Henjo/gnucap-python-2009.11.28/missing 
&lt;br&gt;--run autoheader)
&lt;br&gt;rm -f stamp-h1 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;touch config.h.in 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;cd . &amp;&amp; /bin/sh ./config.status config.h 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;config.status: creating config.h 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;config.status: config.h is unchanged 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;/bin/sh ./libtool &amp;nbsp;--tag=CXX &amp;nbsp; --mode=compile g++ -DHAVE_CONFIG_H -I. 
&lt;br&gt;-I/usr/include/python2.5 -DPYTHON_SO=\&amp;quot;/usr/lib/libpython2.5.so\&amp;quot; &amp;nbsp; -g 
&lt;br&gt;-O2 -MT python_la-gnucap_wrap.lo -MD -MP -MF 
&lt;br&gt;.deps/python_la-gnucap_wrap.Tpo -c -o python_la-gnucap_wrap.lo `test -f 
&lt;br&gt;'gnucap_wrap.cxx' || echo './'`gnucap_wrap.cxx 
&lt;br&gt;&lt;br&gt;libtool: compile: &amp;nbsp;g++ -DHAVE_CONFIG_H -I. -I/usr/include/python2.5 
&lt;br&gt;-DPYTHON_SO=\&amp;quot;/usr/lib/libpython2.5.so\&amp;quot; -g -O2 -MT 
&lt;br&gt;python_la-gnucap_wrap.lo -MD -MP -MF .deps/python_la-gnucap_wrap.Tpo -c 
&lt;br&gt;gnucap_wrap.cxx &amp;nbsp;-fPIC -DPIC -o .libs/python_la-gnucap_wrap.o 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;gnucap/m_matrix.h: In function ‘PyObject* _wrap_BSMATRIXd_m(PyObject*, 
&lt;br&gt;PyObject*)’: 
&lt;br&gt;&lt;br&gt;gnucap/m_matrix.h:443: error: ‘T&amp; BSMATRIX&amp;lt;T&amp;gt;::m(int, int) [with T = 
&lt;br&gt;double]’ is private 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx:7557: error: within this context 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;gnucap/m_matrix.h: In function ‘PyObject* _wrap_BSMATRIXc_m(PyObject*, 
&lt;br&gt;PyObject*)’: 
&lt;br&gt;&lt;br&gt;gnucap/m_matrix.h:443: error: ‘T&amp; BSMATRIX&amp;lt;T&amp;gt;::m(int, int) [with T = 
&lt;br&gt;std::complex&amp;lt;double&amp;gt;]’ is private 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx:8689: error: within this context 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx: In function ‘PyObject* 
&lt;br&gt;_wrap_CARD_LIST_precalc(PyObject*, PyObject*)’: 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx:8891: error: ‘class CARD_LIST’ has no member named 
&lt;br&gt;‘precalc’ 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx: In function ‘PyObject* 
&lt;br&gt;_wrap_CARD_param_exists(PyObject*, PyObject*)’: 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx:10285: error: ‘const class CARD’ has no member named 
&lt;br&gt;‘param_exists’ 
&lt;br&gt;&lt;br&gt;gnucap_wrap.cxx:10287: error: ‘const class CARD’ has no member named 
&lt;br&gt;‘param_exists’ 
&lt;br&gt;&lt;br&gt;make: *** [python_la-gnucap_wrap.lo] Error 1
&lt;br&gt;&lt;br&gt;(I admit, I'd trying to make a Deb package of gnucap-python extension 
&lt;br&gt;too. That is the reason for strange 2009.11.28 add in directory)
&lt;br&gt;&lt;br&gt;Well, Where are the problem? Do you need my python's packages installed?
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; 4· What differences have gnucap-arails with gnucap? 
&lt;br&gt;&amp;gt; The difference between gnucap and gnucap-arails is my shared library version of 
&lt;br&gt;&amp;gt; gnucap/my python extension for gnucap and Analog Rails modifications they need 
&lt;br&gt;&amp;gt; to make it run with their IC design tools.
&lt;br&gt;&lt;br&gt;Ok, thanks for explanation.
&lt;br&gt;&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Henrik Johansson
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26552733&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28Gnucap%2B%29-Severals-questions-and-problems-compiling-gnucap-python-tp26485640p26552733.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525441</id>
	<title>Re: (Gnucap+) Severals questions and problems compiling gnucap-python</title>
	<published>2009-11-25T23:31:54Z</published>
	<updated>2009-11-25T23:31:54Z</updated>
	<author>
		<name>Henrik Johansson-10</name>
	</author>
	<content type="html">Hi Rubén,
&lt;br&gt;&lt;br&gt;&amp;gt; I have several questions about Gnucap+ (0):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1· The Gnucap's sources are sync with development snapshot from Al Davis?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The Gnucap compiled from included gnucap+'s sources says:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; gnucap
&lt;br&gt;&amp;gt; Gnucap 2009.02.02 RCS 26.109
&lt;br&gt;&amp;gt; The Gnu Circuit Analysis Package
&lt;br&gt;&lt;br&gt;It seems that the gnucap+ source is not updated against Al's latest 
&lt;br&gt;development version, The gnucap+ repo was based on my shared library version 
&lt;br&gt;of gnucap at github (&lt;a href=&quot;http://github.com/henjo/gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/henjo/gnucap&lt;/a&gt;) which was based on Al's 
&lt;br&gt;2009.02.02 development &amp;nbsp;snapshot. But now this repo is up to date with the 
&lt;br&gt;latest development snapshot.
&lt;br&gt;&lt;br&gt;Kevin: It's really easy to keep a modified version up to date with upstream 
&lt;br&gt;using git. You just check out the latest upstream branch, untar the new 
&lt;br&gt;development snapshot. Create a new branch for this version. Run git merge to 
&lt;br&gt;merge the trunk with this new branch. Done! 
&lt;br&gt;&lt;br&gt;&amp;gt; 2· I'm having some issues with python plugin.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Configure stops with:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; checking gnucap/c_comand.h usability... no
&lt;br&gt;&amp;gt; checking gnucap/c_comand.h presence... no
&lt;br&gt;&amp;gt; checking for gnucap/c_comand.h... no
&lt;br&gt;&amp;gt; checking for status in -lgnucap... no
&lt;br&gt;&amp;gt; configure: error: Error, gnucap as shared library not found.
&lt;br&gt;&lt;br&gt;You need to install the shared library version of gnucap first. I guess the 
&lt;br&gt;documentation is somewhat lacking here. But you have to build gnucapplus (or 
&lt;br&gt;&lt;a href=&quot;http://github.com/henjo/gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/henjo/gnucap&lt;/a&gt;) using the automake tools. Running:
&lt;br&gt;&amp;gt; autogen.sh
&lt;br&gt;&amp;gt; ./configure
&lt;br&gt;&amp;gt; make
&lt;br&gt;should work
&lt;br&gt;&lt;br&gt;&amp;gt; 4· What differences have gnucap-arails with gnucap? 
&lt;br&gt;The difference between gnucap and gnucap-arails is my shared library version of 
&lt;br&gt;gnucap/my python extension for gnucap and Analog Rails modifications they need 
&lt;br&gt;to make it run with their IC design tools.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Henrik Johansson
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525441&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28Gnucap%2B%29-Severals-questions-and-problems-compiling-gnucap-python-tp26485640p26525441.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26516248</id>
	<title>Integrating with C or some other language</title>
	<published>2009-11-25T08:52:33Z</published>
	<updated>2009-11-25T08:52:33Z</updated>
	<author>
		<name>Bugzilla from ivan.reche@gmail.com</name>
	</author>
	<content type="html">Hello there,
&lt;br&gt;&lt;br&gt;My name is Ivan and I am new to this list.
&lt;br&gt;&lt;br&gt;I have a doubt about gnucap that I couldn't answer from reading some
&lt;br&gt;parts of the documentation, searching in google and the archive of
&lt;br&gt;this list.
&lt;br&gt;&lt;br&gt;I want to be able to integrate gnucap with some programming language.
&lt;br&gt;I was thinking if it is possible to keep an instance open of something
&lt;br&gt;like the interpreter while my program is running, and to be able to
&lt;br&gt;change the circuit's layout on the fly.
&lt;br&gt;&lt;br&gt;I once worked with CLIPS (en expert system shell), and I was able to
&lt;br&gt;do what I just described with a C interface. The equivalent for gnucap
&lt;br&gt;would be like this: I have a function to add an element... a function
&lt;br&gt;to remove one... and so on.
&lt;br&gt;&lt;br&gt;Is this possible? Is this already implemented? If not, how do you
&lt;br&gt;people do to create complex scripts with gnucap?
&lt;br&gt;&lt;br&gt;Thanks for your attention,
&lt;br&gt;&lt;br&gt;Ivan Filgueiras
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26516248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Integrating-with-C-or-some-other-language-tp26516248p26516248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485640</id>
	<title>(Gnucap+) Severals questions and problems compiling gnucap-python</title>
	<published>2009-11-23T12:32:07Z</published>
	<updated>2009-11-23T12:32:07Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I have several questions about Gnucap+ (0):
&lt;br&gt;&lt;br&gt;1· The Gnucap's sources are sync with development snapshot from Al Davis?
&lt;br&gt;&lt;br&gt;The Gnucap compiled from included gnucap+'s sources says:
&lt;br&gt;&lt;br&gt;gnucap
&lt;br&gt;Gnucap 2009.02.02 RCS 26.109
&lt;br&gt;The Gnu Circuit Analysis Package
&lt;br&gt;&lt;br&gt;2· I'm having some issues with python plugin.
&lt;br&gt;&lt;br&gt;Configure stops with:
&lt;br&gt;&lt;br&gt;checking gnucap/c_comand.h usability... no
&lt;br&gt;checking gnucap/c_comand.h presence... no
&lt;br&gt;checking for gnucap/c_comand.h... no
&lt;br&gt;checking for status in -lgnucap... no
&lt;br&gt;configure: error: Error, gnucap as shared library not found.
&lt;br&gt;&lt;br&gt;I find the file and make:
&lt;br&gt;&lt;br&gt;ln -s ../gnucap/src/ gnucap
&lt;br&gt;&lt;br&gt;gnucap-python$ ll gnucap/c_coma*
&lt;br&gt;-rw-r--r-- 1 razer razer 4,3K nov 22 14:24 gnucap/c_comand.cc
&lt;br&gt;-rw-r--r-- 1 razer razer 1,7K nov 22 14:24 gnucap/c_comand.h
&lt;br&gt;-rw-r--r-- 1 razer razer 279K nov 22 14:47 gnucap/c_comand.o
&lt;br&gt;&lt;br&gt;&lt;br&gt;but configure still stop with these error.
&lt;br&gt;&lt;br&gt;3· Where are myplot function? Grep can't find it:
&lt;br&gt;&lt;br&gt;gnucapplus$ grep -r -i myplot *
&lt;br&gt;gnucap-python/README: &amp;nbsp; gnucap&amp;gt; myplot vm(2)
&lt;br&gt;gnucap-python/README:&amp;quot;myplot&amp;quot; that plots a stored waveform using 
&lt;br&gt;matplotlib. Line 3-5 loads a
&lt;br&gt;gnucap-python/example/example.gnucap:myplot vm(2)
&lt;br&gt;gnucap-python/example/simple.py:gnucap.command(&amp;quot;myplot vm(2)&amp;quot;)
&lt;br&gt;&lt;br&gt;I want to see these (killer) tool, but I can't find it.
&lt;br&gt;&lt;br&gt;4· What differences have gnucap-arails with gnucap?
&lt;br&gt;&lt;br&gt;Anyone help me?
&lt;br&gt;&lt;br&gt;Thanks for your attention.
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;&lt;br&gt;(0) &lt;a href=&quot;http://www.gnucapplus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnucapplus.org/&lt;/a&gt;&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485640&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28Gnucap%2B%29-Severals-questions-and-problems-compiling-gnucap-python-tp26485640p26485640.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450826</id>
	<title>Re: Plug and play with with ngspice/hspice syntax and other questions</title>
	<published>2009-11-20T13:49:26Z</published>
	<updated>2009-11-20T13:49:26Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Friday 20 November 2009, Anthony Shanks wrote:
&lt;br&gt;&amp;gt; have the global nodes feature been added yet?
&lt;br&gt;&lt;br&gt;This is the &amp;quot;other&amp;quot; email specifically addressing the global 
&lt;br&gt;node issue.
&lt;br&gt;&lt;br&gt;Please don't take these comments as opposition to the concept. &amp;nbsp;
&lt;br&gt;Rather, there are issues that need to be addressed to make a 
&lt;br&gt;proper implementation.
&lt;br&gt;&lt;br&gt;Since it is strictly input related, all changes would go in the 
&lt;br&gt;spice language plugin, specifically the &amp;quot;lang_spice_in.cc&amp;quot; &amp;nbsp;and 
&lt;br&gt;&amp;quot;lang_spice_commands.cc&amp;quot; files.
&lt;br&gt;&lt;br&gt;To see what I am concerned about, consider this:
&lt;br&gt;&lt;br&gt;Suppose I am using a subckt model I downloaded from somewhere on 
&lt;br&gt;the net. &amp;nbsp;It might be for something like an op-amp. &amp;nbsp;Let's say 
&lt;br&gt;it has 50 components and 20 internal nodes, and I don't 
&lt;br&gt;understand it. &amp;nbsp;Let's further assume that I am working on some 
&lt;br&gt;kind of signal processing circuit that uses 6 of these op-amps.
&lt;br&gt;&lt;br&gt;Maybe I might be using a TSMC model file with a bunch of &amp;quot;Lib&amp;quot; 
&lt;br&gt;blocks .. an 8 meg file with subckts around those mosfets, with 
&lt;br&gt;internal nodes. &amp;nbsp;People do use those TSMC models with gnucap.
&lt;br&gt;&lt;br&gt;Now, suppose one of those internal nodes happens to be named 
&lt;br&gt;&amp;quot;foo&amp;quot;.
&lt;br&gt;&lt;br&gt;Does saying &amp;quot;.global foo&amp;quot; in the main circuit connect all of 
&lt;br&gt;those &amp;quot;foo&amp;quot;s together? &amp;nbsp;I think most users would be totally 
&lt;br&gt;confused if this happens.
&lt;br&gt;&lt;br&gt;Saying &amp;quot;.global foo&amp;quot; in both the subcircuit and caller solves 
&lt;br&gt;the problem. &amp;nbsp;That way it is agreed on both sides. But, I don't 
&lt;br&gt;think this is the way to do it. &amp;nbsp;Otherwise, how does the 
&lt;br&gt;subcircuit know that the &amp;quot;foo&amp;quot; node has an external connection?
&lt;br&gt;&lt;br&gt;How global is it really? &amp;nbsp;Truly global? file scope?
&lt;br&gt;&lt;br&gt;When a file is included by an include statement, does the global 
&lt;br&gt;transfer into that file? &amp;nbsp;What about by a &amp;quot;lib&amp;quot; statement? &amp;nbsp;What 
&lt;br&gt;about mixed languages?
&lt;br&gt;&lt;br&gt;I think Hspice and Spectre implement it like a preprocessor 
&lt;br&gt;directive, but I don't know because I don't have access to 
&lt;br&gt;either.
&lt;br&gt;&lt;br&gt;I am not arguing, yes or no, whether to do it or not. &amp;nbsp;There is 
&lt;br&gt;something about the requirement that I don't understand. &amp;nbsp;There 
&lt;br&gt;are some real implementation issues and I am looking for 
&lt;br&gt;answers.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450826&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plug-and-play-with-with-ngspice-hspice-syntax-and-other-questions-tp26449928p26450826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450772</id>
	<title>Re: Plug and play with with ngspice/hspice syntax and other questions</title>
	<published>2009-11-20T13:45:22Z</published>
	<updated>2009-11-20T13:45:22Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Friday 20 November 2009, Anthony Shanks wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I haven't used gnucap in quite a while so my questions might
&lt;br&gt;&amp;gt; &amp;nbsp;be a bit out of date.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Last time I used gnucap, it wasn't quite a &amp;quot;plug and play&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;replacement for standard spice syntax in regards to the
&lt;br&gt;&amp;gt; &amp;nbsp;probe and simulation commands. As I recall the order was
&lt;br&gt;&amp;gt; &amp;nbsp;switched (you had to put your analysis type (as in .tran or
&lt;br&gt;&amp;gt; &amp;nbsp;.dc) in before the .probe command. In other spice simulators
&lt;br&gt;&amp;gt; &amp;nbsp;the .probe line comes before the analysis type. Has this
&lt;br&gt;&amp;gt; &amp;nbsp;issue been addressed yet? Also, have the global nodes
&lt;br&gt;&amp;gt; &amp;nbsp;feature been added yet?
&lt;/div&gt;&lt;br&gt;Making it true plug and play compatible gives up a lot, and 
&lt;br&gt;takes a lot of developer time to duplicate all of the bugs. &amp;nbsp;The 
&lt;br&gt;various spice's are not absolutely compatible with each other.
&lt;br&gt;&lt;br&gt;Having said that, since the entire user interface is defined by 
&lt;br&gt;plugins, there is nothing (other than time) stopping anyone who 
&lt;br&gt;wants to make a plugin that will provide complete compatibility. &amp;nbsp;
&lt;br&gt;I understand the need, but there are lots of other needs too.
&lt;br&gt;&lt;br&gt;The probe and simulation order is not switched. &amp;nbsp;Spice doesn't 
&lt;br&gt;care, and loses the capability you can have when you can have 
&lt;br&gt;with real scripting. &amp;nbsp;Again, you could easily make a plugin that 
&lt;br&gt;would give you exactly what you want.
&lt;br&gt;&lt;br&gt;The global nodes &amp;quot;feature&amp;quot; is also an interface issue, that can 
&lt;br&gt;be defined in that same plugin. &amp;nbsp;There are some questions that 
&lt;br&gt;need to be answered, that I will address in another email.
&lt;br&gt;&lt;br&gt;All of this would go into a &amp;quot;language&amp;quot; plugin. &amp;nbsp;There are three 
&lt;br&gt;now. &amp;nbsp;Eventually, I can see a dozen or so for compatibility with 
&lt;br&gt;various other tools. &amp;nbsp;The syntax doesn't need to be spice-like 
&lt;br&gt;at all.
&lt;br&gt;&lt;br&gt;My highest priority for now is to make a stable release with 
&lt;br&gt;full plugin support, and separation of library and applications, 
&lt;br&gt;so you can have a stable base with a clean interface to build 
&lt;br&gt;on. 
&lt;br&gt;&lt;br&gt;There is full plugin support in the development branch, but as 
&lt;br&gt;shipped, the default set of applications (plugins, models, 
&lt;br&gt;commands, etc) are static linked by default, so it is not clear 
&lt;br&gt;where the border is.
&lt;br&gt;&lt;br&gt;If you want to help, by making language plugins for 
&lt;br&gt;compatibility with Hspice and NGspice, they would be most 
&lt;br&gt;welcome. &amp;nbsp;This is an open invitation to anyone to contribute by 
&lt;br&gt;making a plugin for something important to you.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450772&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plug-and-play-with-with-ngspice-hspice-syntax-and-other-questions-tp26449928p26450772.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449928</id>
	<title>Plug and play with with ngspice/hspice syntax and other questions</title>
	<published>2009-11-20T12:38:20Z</published>
	<updated>2009-11-20T12:38:20Z</updated>
	<author>
		<name>Anthony Shanks</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I haven't used gnucap in quite a while so my questions might be a bit
&lt;br&gt;out of date.
&lt;br&gt;&lt;br&gt;Last time I used gnucap, it wasn't quite a &amp;quot;plug and play&amp;quot; replacement
&lt;br&gt;for standard spice syntax in regards to the probe and simulation
&lt;br&gt;commands. As I recall the order was switched (you had to put your
&lt;br&gt;analysis type (as in .tran or .dc) in before the .probe command. In
&lt;br&gt;other spice simulators the .probe line comes before the analysis type.
&lt;br&gt;Has this issue been addressed yet? Also, have the global nodes feature
&lt;br&gt;been added yet?
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449928&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plug-and-play-with-with-ngspice-hspice-syntax-and-other-questions-tp26449928p26449928.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438313</id>
	<title>Re: Re: [Help-gnucap] how to model sinusoidal dependence on charge?</title>
	<published>2009-11-19T20:46:31Z</published>
	<updated>2009-11-19T20:46:31Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Thursday 19 November 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438313&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jacques.Le-Coupanec@...&lt;/a&gt; 
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have extended an old version of gnucap (2008-08-10 !) to
&lt;br&gt;&amp;gt; &amp;nbsp;enable the &amp;nbsp;use of such functions :
&lt;br&gt;&amp;gt; E1 (out 0 in 0) FUNC(3,5) exp=true &amp;nbsp; means : out=e^(3*in+5)
&lt;br&gt;&amp;gt; E1 (out 0 in 0) FUNC(314,-78.5) cos=true means :
&lt;br&gt;&amp;gt; &amp;nbsp;out=cos(314*in -0,785) &amp;nbsp;= &amp;nbsp;sin(314*in)
&lt;br&gt;&amp;gt; E1 (out 0 0 0) FUNC(4,5) xtime=true means : out=4*t+5 where t
&lt;br&gt;&amp;gt; &amp;nbsp;is the &amp;nbsp;time of the simulation
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I hope it fit with a new version but I haven't time enough to
&lt;br&gt;&amp;gt; &amp;nbsp;test it. &amp;nbsp;So try it and if it doesn't fit
&lt;br&gt;&amp;gt; I'll write it again in a few day (I have started to upgrade
&lt;br&gt;&amp;gt; &amp;nbsp;to 2009-11-10)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here what I did in a test purpose. It's not a good program,
&lt;br&gt;&amp;gt; &amp;nbsp;you are free &amp;nbsp;to enhance it.
&lt;br&gt;&amp;gt; Morever, I don't know how such an extension fit with the
&lt;br&gt;&amp;gt; &amp;nbsp;convergence &amp;nbsp;algorithm.
&lt;br&gt;&amp;gt; So I distribute it in the hope that it will be useful but
&lt;br&gt;&amp;gt; &amp;nbsp;WITHOUT ANY &amp;nbsp;WARRANTY &amp;nbsp; &amp;nbsp; &amp;nbsp;;-)
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Thank you!!
&lt;br&gt;&lt;br&gt;I would like to distribute it so others can use it. &amp;nbsp;Is that ok?
&lt;br&gt;&lt;br&gt;It needs some changes to match the latest version, but they 
&lt;br&gt;should be easy.
&lt;br&gt;&lt;br&gt;A few comments ...
&lt;br&gt;&lt;br&gt;1. You don't need to change the makefile to use it. &amp;nbsp;Instead, 
&lt;br&gt;compile it as a shared object (.so on Linux) and use the &amp;quot;load&amp;quot; 
&lt;br&gt;command to bring it in. &amp;nbsp;This way, when the stable version comes 
&lt;br&gt;out, and the distros package it, you can add things like this 
&lt;br&gt;without recompiling the whole simulator.
&lt;br&gt;&lt;br&gt;&amp;quot;g++ -shared -fPIC -o bm_func.so bm_func.cc&amp;quot;
&lt;br&gt;&lt;br&gt;then from gnucap:
&lt;br&gt;&lt;br&gt;&amp;quot;load /full/path/to/bm_func.so&amp;quot;
&lt;br&gt;&lt;br&gt;or on the command line:
&lt;br&gt;&lt;br&gt;&amp;quot;gnucap -a /full/path/to/bm_func.so &amp;nbsp;.......&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;2. As it stands (with version update) I can include it with the 
&lt;br&gt;separate &amp;quot;tools&amp;quot; tarball, if it is ok with you.
&lt;br&gt;&lt;br&gt;Better yet ... &amp;nbsp;I would prefer that it is done as 5 separate 
&lt;br&gt;files, one for each function, using &amp;quot;bm_tanh.cc&amp;quot; as a style 
&lt;br&gt;guide. &amp;nbsp;If you can do this, I will include it with the main 
&lt;br&gt;distribution, along with posy and tanh that are already there.
&lt;br&gt;&lt;br&gt;&lt;br&gt;3. You made a comment &amp;quot;//why??&amp;quot; on a line &amp;quot;untested();&amp;quot; ..
&lt;br&gt;&lt;br&gt;This is a hint to me that I really need to explain the testing 
&lt;br&gt;macros!
&lt;br&gt;&lt;br&gt;In a normal build, those macros are eliminated and so do 
&lt;br&gt;nothing. &amp;nbsp;If you use the &amp;quot;old&amp;quot; build system, with &amp;quot;make debug&amp;quot; 
&lt;br&gt;which defines &amp;quot;TRACE_UNTESTED&amp;quot;, it prints a trace whenever that 
&lt;br&gt;line is executed. &amp;nbsp;It is extremely useful in making test cases 
&lt;br&gt;that really cover the code. &amp;nbsp;What I usually do when making test 
&lt;br&gt;files is to insert those &amp;quot;untested();&amp;quot; calls after every curly 
&lt;br&gt;brace, then take them out when I know that block is adequately 
&lt;br&gt;tested, and there are files in the test suite that prove it. &amp;nbsp;
&lt;br&gt;When you see any left in distribution code, it is an admission 
&lt;br&gt;that the official test suite misses that line, and that file 
&lt;br&gt;needs better testing.
&lt;br&gt;&lt;br&gt;When you see &amp;quot;itested();&amp;quot; it means that there are informal tests 
&lt;br&gt;that have shown that block works as intended, but &amp;nbsp;they are not 
&lt;br&gt;in the official test suite.
&lt;br&gt;&lt;br&gt;Others &amp;quot;trace1&amp;quot;, and similar ones, are also used in debugging. &amp;nbsp;
&lt;br&gt;In a debug version, they can be turned on or off. &amp;nbsp;In a normal 
&lt;br&gt;build, they are eliminated.
&lt;br&gt;&lt;br&gt;All of these are truly eliminated in a normal build, so there is 
&lt;br&gt;no overhead.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks again for the contribution!!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438313&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-model-sinusoidal-dependence-on-charge--tp26423032p26438313.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26425408</id>
	<title>Re: [Help-gnucap] how to model sinusoidal dependence on charge?</title>
	<published>2009-11-19T04:30:32Z</published>
	<updated>2009-11-19T04:30:32Z</updated>
	<author>
		<name>Jacques.Le-Coupanec@ac-rennes.Fr</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26425408&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;felix.maibaum@...&lt;/a&gt; a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to model a device which has a voltage that depends periodically
&lt;br&gt;&amp;gt; on the charge which has passed through it: V=Vc*sin(q)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This seems almost possible with the controlled sources, but not quite,
&lt;br&gt;&amp;gt; since the SIN function always depends on time. Is it possible to implement
&lt;br&gt;&amp;gt; such a device with the model compiler, or could the trigonometric functions
&lt;br&gt;&amp;gt; be generalized to achieve this somehow?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Hello,
&lt;br&gt;&lt;br&gt;I have extended an old version of gnucap (2008-08-10 !) to enable the 
&lt;br&gt;use of such functions :
&lt;br&gt;E1 (out 0 in 0) FUNC(3,5) exp=true &amp;nbsp; means : out=e^(3*in+5)
&lt;br&gt;E1 (out 0 in 0) FUNC(314,-78.5) cos=true means : out=cos(314*in -0,785) 
&lt;br&gt;= &amp;nbsp;sin(314*in)
&lt;br&gt;E1 (out 0 0 0) FUNC(4,5) xtime=true means : out=4*t+5 where t is the 
&lt;br&gt;time of the simulation
&lt;br&gt;&lt;br&gt;I hope it fit with a new version but I haven't time enough to test it. 
&lt;br&gt;So try it and if it doesn't fit
&lt;br&gt;I'll write it again in a few day (I have started to upgrade to 2009-11-10)
&lt;br&gt;&lt;br&gt;Here what I did in a test purpose. It's not a good program, you are free 
&lt;br&gt;to enhance it.
&lt;br&gt;Morever, I don't know how such an extension fit with the convergence 
&lt;br&gt;algorithm.
&lt;br&gt;So I distribute it in the hope that it will be useful but WITHOUT ANY 
&lt;br&gt;WARRANTY &amp;nbsp; &amp;nbsp; &amp;nbsp;;-)
&lt;br&gt;&lt;br&gt;Good Luck.
&lt;br&gt;&lt;br&gt;&lt;br&gt;diff src/Makefile.in
&lt;br&gt;&amp;nbsp;&amp;gt; am__objects_5 = bm_complex.$(OBJEXT) bm_exp.$(OBJEXT) bm_fit.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_generator.$(OBJEXT) bm_poly.$(OBJEXT) bm_posy.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_pulse.$(OBJEXT) bm_pwl.$(OBJEXT) bm_sffm.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_sin.$(OBJEXT) bm_tanh.$(OBJEXT) bmm_table.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bmm_semi.$(OBJEXT) bm_func.$(OBJEXT)
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; # behavioral modeling functions
&lt;br&gt;&amp;nbsp;&amp;gt; BM_SRCS = \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_complex.cc bm_exp.cc bm_fit.cc bm_generator.cc \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_poly.cc bm_posy.cc bm_pulse.cc bm_pwl.cc bm_sffm.cc \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_sin.cc bm_tanh.cc bmm_table.cc bmm_semi.cc bm_func.cc
&lt;br&gt;&lt;br&gt;and here bm_func.cc
&lt;br&gt;&lt;br&gt;// This file was built from bm_posy.cc written by Albert Davis
&lt;br&gt;/* behavioral modeling - functions
&lt;br&gt;&amp;nbsp;* E1 (out 0 in 0) FUNC(3,5) exp=true &amp;nbsp; means : out=e^(3*in+5)
&lt;br&gt;&amp;nbsp;* E1 (out 0 in 0) FUNC(314,-78.5) cos=true means : out=cos(314*in 
&lt;br&gt;-0,785) = &amp;nbsp;sin(314*in)
&lt;br&gt;&amp;nbsp;* E1 (out 0 0 0) FUNC(4,5) xtime=true means : out=4*t+5 where t is the 
&lt;br&gt;time of the simultation
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;#include &amp;quot;u_lang.h&amp;quot;
&lt;br&gt;#include &amp;quot;globals.h&amp;quot;
&lt;br&gt;#include &amp;quot;e_elemnt.h&amp;quot;
&lt;br&gt;#include &amp;quot;bm.h&amp;quot;
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;namespace {
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;const bool &amp;nbsp; _default_exp(false);
&lt;br&gt;const bool &amp;nbsp; _default_ln(false);
&lt;br&gt;const bool &amp;nbsp; _default_cos(false);
&lt;br&gt;const bool &amp;nbsp; _default_tan(false);
&lt;br&gt;const bool &amp;nbsp; _default_xtime(false);
&lt;br&gt;&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;class EVAL_BM_FUNC : public EVAL_BM_ACTION_BASE {
&lt;br&gt;private:
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _exp;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _ln;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _cos;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _tan;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _xtime;
&lt;br&gt;&amp;nbsp; std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt; _table;
&lt;br&gt;&amp;nbsp; explicit &amp;nbsp; &amp;nbsp;EVAL_BM_FUNC(const EVAL_BM_FUNC&amp; p);
&lt;br&gt;public:
&lt;br&gt;&amp;nbsp; explicit &amp;nbsp; &amp;nbsp; &amp;nbsp;EVAL_BM_FUNC(int c=0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~EVAL_BM_FUNC() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{}
&lt;br&gt;private: // override vitrual
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;operator==(const COMMON_COMPONENT&amp;)const;
&lt;br&gt;&amp;nbsp; COMMON_COMPONENT* clone()const &amp;nbsp; &amp;nbsp;{return new EVAL_BM_FUNC(*this);}
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print_common_obsolete_callback(OMSTREAM&amp;, LANGUAGE*)const;
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp;elaborate(const COMPONENT*);
&lt;br&gt;&amp;nbsp; //COMMON_COMPONENT* deflate(); &amp;nbsp; &amp;nbsp;//COMPONENT_COMMON/nothing
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tr_eval(ELEMENT*)const;
&lt;br&gt;&amp;nbsp; //void &amp;nbsp; &amp;nbsp;ac_eval(ELEMENT*)const; //EVAL_BM_ACTION_BASE
&lt;br&gt;&amp;nbsp; //bool &amp;nbsp; &amp;nbsp;has_tr_eval()const; &amp;nbsp; &amp;nbsp;//EVAL_BM_BASE/true
&lt;br&gt;&amp;nbsp; //bool &amp;nbsp; &amp;nbsp;has_ac_eval()const; &amp;nbsp; &amp;nbsp;//EVAL_BM_BASE/true
&lt;br&gt;&amp;nbsp; std::string &amp;nbsp; &amp;nbsp;name()const &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{return &amp;quot;func&amp;quot;;}
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ac_too()const &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{untested();return false;}
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parse_numlist(CS&amp;);
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parse_params_obsolete_callback(CS&amp;);
&lt;br&gt;};
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC::EVAL_BM_FUNC(int c)
&lt;br&gt;&amp;nbsp; :EVAL_BM_ACTION_BASE(c),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_exp(_default_exp),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_ln(_default_ln),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_cos(_default_cos),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_tan(_default_tan),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_xtime(_default_xtime),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_table()
&lt;br&gt;{
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC::EVAL_BM_FUNC(const EVAL_BM_FUNC&amp; p)
&lt;br&gt;&amp;nbsp; :EVAL_BM_ACTION_BASE(p),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_exp(p._exp),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_ln(p._ln),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_cos(p._cos),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_tan(p._tan),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_xtime(p._xtime),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_table(p._table)
&lt;br&gt;{
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::operator==(const COMMON_COMPONENT&amp; x)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; const EVAL_BM_FUNC* p = dynamic_cast&amp;lt;const EVAL_BM_FUNC*&amp;gt;(&amp;x);
&lt;br&gt;&amp;nbsp; bool rv = p
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _exp == p-&amp;gt;_exp
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _ln == p-&amp;gt;_ln
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _cos == p-&amp;gt;_cos
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _tan == p-&amp;gt;_tan
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _xtime == p-&amp;gt;_xtime
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _table == p-&amp;gt;_table
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; EVAL_BM_ACTION_BASE::operator==(x);
&lt;br&gt;&amp;nbsp; if (rv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; untested();
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; return rv;
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::print_common_obsolete_callback(OMSTREAM&amp; o, LANGUAGE* 
&lt;br&gt;lang)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; assert(lang);
&lt;br&gt;&amp;nbsp; o &amp;lt;&amp;lt; name() &amp;lt;&amp;lt; '(';
&lt;br&gt;&amp;nbsp; for (std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;const_iterator p = _table.begin(); &amp;nbsp;p != _table.end(); &amp;nbsp;++p) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; o &amp;lt;&amp;lt; p-&amp;gt;second &amp;lt;&amp;lt; ',' &amp;lt;&amp;lt; p-&amp;gt;first &amp;lt;&amp;lt; ' ';
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; o &amp;lt;&amp;lt; ')';
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;exp&amp;quot;, _exp, _exp.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;ln&amp;quot;, _ln, _ln.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;cos&amp;quot;, _cos, _cos.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;tan&amp;quot;, _tan, _tan.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;xtime&amp;quot;, _xtime, _xtime.has_hard_value());
&lt;br&gt;&amp;nbsp; EVAL_BM_ACTION_BASE::print_common_obsolete_callback(o, lang);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::elaborate(const COMPONENT* c)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; assert(c);
&lt;br&gt;&amp;nbsp; const CARD_LIST* par_scope = c-&amp;gt;scope();
&lt;br&gt;&amp;nbsp; assert(par_scope);
&lt;br&gt;&amp;nbsp; EVAL_BM_ACTION_BASE::elaborate(c);
&lt;br&gt;&amp;nbsp; _exp.e_val(_default_exp, par_scope);
&lt;br&gt;&amp;nbsp; _ln.e_val(_default_ln, par_scope);
&lt;br&gt;&amp;nbsp; _cos.e_val(_default_cos, par_scope);
&lt;br&gt;&amp;nbsp; _tan.e_val(_default_tan, par_scope);
&lt;br&gt;&amp;nbsp; _xtime.e_val(_default_xtime, par_scope);
&lt;br&gt;&lt;br&gt;&amp;nbsp; for (std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iterator p = _table.begin(); &amp;nbsp;p != _table.end(); &amp;nbsp;++p) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; p-&amp;gt;first.e_val(0, par_scope);
&lt;br&gt;&amp;nbsp; &amp;nbsp; p-&amp;gt;second.e_val(0, par_scope);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::tr_eval(ELEMENT* d)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; double x_raw = (_xtime) ? ioffset(SIM::time0) : ioffset(d-&amp;gt;_y[0].x);
&lt;br&gt;&amp;nbsp; double f0 = 0.; &amp;nbsp;// value
&lt;br&gt;&amp;nbsp; double f1 = 0.; &amp;nbsp;// derivative
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; // x = ax + b
&lt;br&gt;&amp;nbsp; std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; const_iterator p = _table.begin(); 
&lt;br&gt;&amp;nbsp; double x = p-&amp;gt;second * x_raw + p-&amp;gt;first;
&lt;br&gt;&amp;nbsp; f1 = p-&amp;gt;second;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; if(_exp) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=exp(x); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1*=f0; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; } else if(_ln) { &amp;nbsp;// use even &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(x&amp;gt;0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=log(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1*=1/x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else if(x==0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=-BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; untested(); &amp;nbsp; &amp;nbsp; &amp;nbsp;// why ?
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=log(-x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1*=1/x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; } else if(_cos) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=cos(x); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1*=-sin(x);
&lt;br&gt;&amp;nbsp; } else if(_tan) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=sin(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1=cos(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(f1==0.0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(f0&amp;gt;0.0) f0=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else f0=-BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=f0/f1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=1+f0*f0; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=x;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // end as in bm_posy
&lt;br&gt;&amp;nbsp; d-&amp;gt;_y[0] = FPOLY1(ioffset(d-&amp;gt;_y[0].x), f0, f1); &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; tr_final_adjust(&amp;(d-&amp;gt;_y[0]), d-&amp;gt;f_is_value());
&lt;br&gt;&amp;nbsp; trace3(&amp;quot;fa&amp;quot;, d-&amp;gt;_y[0].x, d-&amp;gt;_y[0].f0, d-&amp;gt;_y[0].f1);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::parse_numlist(CS&amp; cmd)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; unsigned start = cmd.cursor();
&lt;br&gt;&amp;nbsp; unsigned here = cmd.cursor();
&lt;br&gt;&amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; unsigned start_of_pair = here;
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;, PARAMETER&amp;lt;double&amp;gt; &amp;gt; p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd &amp;gt;&amp;gt; p.second; // value
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (cmd.stuck(&amp;here)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // no more, graceful finish
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cmd &amp;gt;&amp;gt; p.first; // key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (cmd.stuck(&amp;here)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; // ran out, but already have half of the pair
&lt;br&gt;&amp;nbsp; &amp;nbsp; // back up one, hoping somebody else knows what to do with it
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.reset(start_of_pair);
&lt;br&gt;&amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; _table.push_back(p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; if (cmd.gotit(start)) {
&lt;br&gt;&amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; untested();
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; return cmd.gotit(start);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::parse_params_obsolete_callback(CS&amp; cmd)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; return ONE_OF
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;exp&amp;quot;, &amp;nbsp;&amp;_exp)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;ln&amp;quot;, &amp;nbsp;&amp;_ln)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;cos&amp;quot;, &amp;nbsp;&amp;_cos)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;tan&amp;quot;, &amp;nbsp;&amp;_tan)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;xtime&amp;quot;, &amp;nbsp;&amp;_xtime)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || EVAL_BM_ACTION_BASE::parse_params_obsolete_callback(cmd)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ;
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC p1(CC_STATIC);
&lt;br&gt;DISPATCHER&amp;lt;COMMON_COMPONENT&amp;gt;::INSTALL d1(&amp;bm_dispatcher, &amp;quot;func&amp;quot;, &amp;p1);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26425408&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-model-sinusoidal-dependence-on-charge--tp26423032p26425408.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26425413</id>
	<title>Re: how to model sinusoidal dependence on charge?</title>
	<published>2009-11-19T04:30:32Z</published>
	<updated>2009-11-19T04:30:32Z</updated>
	<author>
		<name>Jacques.Le-Coupanec@ac-rennes.Fr</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26425413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;felix.maibaum@...&lt;/a&gt; a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to model a device which has a voltage that depends periodically
&lt;br&gt;&amp;gt; on the charge which has passed through it: V=Vc*sin(q)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This seems almost possible with the controlled sources, but not quite,
&lt;br&gt;&amp;gt; since the SIN function always depends on time. Is it possible to implement
&lt;br&gt;&amp;gt; such a device with the model compiler, or could the trigonometric functions
&lt;br&gt;&amp;gt; be generalized to achieve this somehow?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Hello,
&lt;br&gt;&lt;br&gt;I have extended an old version of gnucap (2008-08-10 !) to enable the 
&lt;br&gt;use of such functions :
&lt;br&gt;E1 (out 0 in 0) FUNC(3,5) exp=true &amp;nbsp; means : out=e^(3*in+5)
&lt;br&gt;E1 (out 0 in 0) FUNC(314,-78.5) cos=true means : out=cos(314*in -0,785) 
&lt;br&gt;= &amp;nbsp;sin(314*in)
&lt;br&gt;E1 (out 0 0 0) FUNC(4,5) xtime=true means : out=4*t+5 where t is the 
&lt;br&gt;time of the simulation
&lt;br&gt;&lt;br&gt;I hope it fit with a new version but I haven't time enough to test it. 
&lt;br&gt;So try it and if it doesn't fit
&lt;br&gt;I'll write it again in a few day (I have started to upgrade to 2009-11-10)
&lt;br&gt;&lt;br&gt;Here what I did in a test purpose. It's not a good program, you are free 
&lt;br&gt;to enhance it.
&lt;br&gt;Morever, I don't know how such an extension fit with the convergence 
&lt;br&gt;algorithm.
&lt;br&gt;So I distribute it in the hope that it will be useful but WITHOUT ANY 
&lt;br&gt;WARRANTY &amp;nbsp; &amp;nbsp; &amp;nbsp;;-)
&lt;br&gt;&lt;br&gt;Good Luck.
&lt;br&gt;&lt;br&gt;&lt;br&gt;diff src/Makefile.in
&lt;br&gt;&amp;nbsp;&amp;gt; am__objects_5 = bm_complex.$(OBJEXT) bm_exp.$(OBJEXT) bm_fit.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_generator.$(OBJEXT) bm_poly.$(OBJEXT) bm_posy.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_pulse.$(OBJEXT) bm_pwl.$(OBJEXT) bm_sffm.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bm_sin.$(OBJEXT) bm_tanh.$(OBJEXT) bmm_table.$(OBJEXT) \
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; bmm_semi.$(OBJEXT) bm_func.$(OBJEXT)
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; # behavioral modeling functions
&lt;br&gt;&amp;nbsp;&amp;gt; BM_SRCS = \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_complex.cc bm_exp.cc bm_fit.cc bm_generator.cc \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_poly.cc bm_posy.cc bm_pulse.cc bm_pwl.cc bm_sffm.cc \
&lt;br&gt;&amp;nbsp;&amp;gt; bm_sin.cc bm_tanh.cc bmm_table.cc bmm_semi.cc bm_func.cc
&lt;br&gt;&lt;br&gt;and here bm_func.cc
&lt;br&gt;&lt;br&gt;// This file was built from bm_posy.cc written by Albert Davis
&lt;br&gt;/* behavioral modeling - functions
&lt;br&gt;&amp;nbsp;* E1 (out 0 in 0) FUNC(3,5) exp=true &amp;nbsp; means : out=e^(3*in+5)
&lt;br&gt;&amp;nbsp;* E1 (out 0 in 0) FUNC(314,-78.5) cos=true means : out=cos(314*in 
&lt;br&gt;-0,785) = &amp;nbsp;sin(314*in)
&lt;br&gt;&amp;nbsp;* E1 (out 0 0 0) FUNC(4,5) xtime=true means : out=4*t+5 where t is the 
&lt;br&gt;time of the simultation
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;#include &amp;quot;u_lang.h&amp;quot;
&lt;br&gt;#include &amp;quot;globals.h&amp;quot;
&lt;br&gt;#include &amp;quot;e_elemnt.h&amp;quot;
&lt;br&gt;#include &amp;quot;bm.h&amp;quot;
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;namespace {
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;const bool &amp;nbsp; _default_exp(false);
&lt;br&gt;const bool &amp;nbsp; _default_ln(false);
&lt;br&gt;const bool &amp;nbsp; _default_cos(false);
&lt;br&gt;const bool &amp;nbsp; _default_tan(false);
&lt;br&gt;const bool &amp;nbsp; _default_xtime(false);
&lt;br&gt;&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;class EVAL_BM_FUNC : public EVAL_BM_ACTION_BASE {
&lt;br&gt;private:
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _exp;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _ln;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _cos;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _tan;
&lt;br&gt;&amp;nbsp; PARAMETER&amp;lt;bool&amp;gt; &amp;nbsp; _xtime;
&lt;br&gt;&amp;nbsp; std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt; _table;
&lt;br&gt;&amp;nbsp; explicit &amp;nbsp; &amp;nbsp;EVAL_BM_FUNC(const EVAL_BM_FUNC&amp; p);
&lt;br&gt;public:
&lt;br&gt;&amp;nbsp; explicit &amp;nbsp; &amp;nbsp; &amp;nbsp;EVAL_BM_FUNC(int c=0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~EVAL_BM_FUNC() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{}
&lt;br&gt;private: // override vitrual
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;operator==(const COMMON_COMPONENT&amp;)const;
&lt;br&gt;&amp;nbsp; COMMON_COMPONENT* clone()const &amp;nbsp; &amp;nbsp;{return new EVAL_BM_FUNC(*this);}
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print_common_obsolete_callback(OMSTREAM&amp;, LANGUAGE*)const;
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp;elaborate(const COMPONENT*);
&lt;br&gt;&amp;nbsp; //COMMON_COMPONENT* deflate(); &amp;nbsp; &amp;nbsp;//COMPONENT_COMMON/nothing
&lt;br&gt;&amp;nbsp; void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tr_eval(ELEMENT*)const;
&lt;br&gt;&amp;nbsp; //void &amp;nbsp; &amp;nbsp;ac_eval(ELEMENT*)const; //EVAL_BM_ACTION_BASE
&lt;br&gt;&amp;nbsp; //bool &amp;nbsp; &amp;nbsp;has_tr_eval()const; &amp;nbsp; &amp;nbsp;//EVAL_BM_BASE/true
&lt;br&gt;&amp;nbsp; //bool &amp;nbsp; &amp;nbsp;has_ac_eval()const; &amp;nbsp; &amp;nbsp;//EVAL_BM_BASE/true
&lt;br&gt;&amp;nbsp; std::string &amp;nbsp; &amp;nbsp;name()const &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{return &amp;quot;func&amp;quot;;}
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ac_too()const &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{untested();return false;}
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parse_numlist(CS&amp;);
&lt;br&gt;&amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parse_params_obsolete_callback(CS&amp;);
&lt;br&gt;};
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC::EVAL_BM_FUNC(int c)
&lt;br&gt;&amp;nbsp; :EVAL_BM_ACTION_BASE(c),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_exp(_default_exp),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_ln(_default_ln),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_cos(_default_cos),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_tan(_default_tan),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_xtime(_default_xtime),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_table()
&lt;br&gt;{
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC::EVAL_BM_FUNC(const EVAL_BM_FUNC&amp; p)
&lt;br&gt;&amp;nbsp; :EVAL_BM_ACTION_BASE(p),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_exp(p._exp),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_ln(p._ln),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_cos(p._cos),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_tan(p._tan),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_xtime(p._xtime),
&lt;br&gt;&amp;nbsp; &amp;nbsp;_table(p._table)
&lt;br&gt;{
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::operator==(const COMMON_COMPONENT&amp; x)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; const EVAL_BM_FUNC* p = dynamic_cast&amp;lt;const EVAL_BM_FUNC*&amp;gt;(&amp;x);
&lt;br&gt;&amp;nbsp; bool rv = p
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _exp == p-&amp;gt;_exp
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _ln == p-&amp;gt;_ln
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _cos == p-&amp;gt;_cos
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _tan == p-&amp;gt;_tan
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _xtime == p-&amp;gt;_xtime
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; _table == p-&amp;gt;_table
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;&amp; EVAL_BM_ACTION_BASE::operator==(x);
&lt;br&gt;&amp;nbsp; if (rv) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; untested();
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; return rv;
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::print_common_obsolete_callback(OMSTREAM&amp; o, LANGUAGE* 
&lt;br&gt;lang)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; assert(lang);
&lt;br&gt;&amp;nbsp; o &amp;lt;&amp;lt; name() &amp;lt;&amp;lt; '(';
&lt;br&gt;&amp;nbsp; for (std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;const_iterator p = _table.begin(); &amp;nbsp;p != _table.end(); &amp;nbsp;++p) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; o &amp;lt;&amp;lt; p-&amp;gt;second &amp;lt;&amp;lt; ',' &amp;lt;&amp;lt; p-&amp;gt;first &amp;lt;&amp;lt; ' ';
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; o &amp;lt;&amp;lt; ')';
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;exp&amp;quot;, _exp, _exp.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;ln&amp;quot;, _ln, _ln.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;cos&amp;quot;, _cos, _cos.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;tan&amp;quot;, _tan, _tan.has_hard_value());
&lt;br&gt;&amp;nbsp; print_pair(o, lang, &amp;quot;xtime&amp;quot;, _xtime, _xtime.has_hard_value());
&lt;br&gt;&amp;nbsp; EVAL_BM_ACTION_BASE::print_common_obsolete_callback(o, lang);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::elaborate(const COMPONENT* c)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; assert(c);
&lt;br&gt;&amp;nbsp; const CARD_LIST* par_scope = c-&amp;gt;scope();
&lt;br&gt;&amp;nbsp; assert(par_scope);
&lt;br&gt;&amp;nbsp; EVAL_BM_ACTION_BASE::elaborate(c);
&lt;br&gt;&amp;nbsp; _exp.e_val(_default_exp, par_scope);
&lt;br&gt;&amp;nbsp; _ln.e_val(_default_ln, par_scope);
&lt;br&gt;&amp;nbsp; _cos.e_val(_default_cos, par_scope);
&lt;br&gt;&amp;nbsp; _tan.e_val(_default_tan, par_scope);
&lt;br&gt;&amp;nbsp; _xtime.e_val(_default_xtime, par_scope);
&lt;br&gt;&lt;br&gt;&amp;nbsp; for (std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;iterator p = _table.begin(); &amp;nbsp;p != _table.end(); &amp;nbsp;++p) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; p-&amp;gt;first.e_val(0, par_scope);
&lt;br&gt;&amp;nbsp; &amp;nbsp; p-&amp;gt;second.e_val(0, par_scope);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;void EVAL_BM_FUNC::tr_eval(ELEMENT* d)const
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; double x_raw = (_xtime) ? ioffset(SIM::time0) : ioffset(d-&amp;gt;_y[0].x);
&lt;br&gt;&amp;nbsp; double f0 = 0.; &amp;nbsp;// value
&lt;br&gt;&amp;nbsp; double f1 = 0.; &amp;nbsp;// derivative
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; // x = ax + b
&lt;br&gt;&amp;nbsp; std::vector&amp;lt;std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;,PARAMETER&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::
&lt;br&gt;&amp;nbsp; &amp;nbsp; const_iterator p = _table.begin(); 
&lt;br&gt;&amp;nbsp; double x = p-&amp;gt;second * x_raw + p-&amp;gt;first;
&lt;br&gt;&amp;nbsp; f1 = p-&amp;gt;second;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; if(_exp) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=exp(x); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1*=f0; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; } else if(_ln) { &amp;nbsp;// use even &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(x&amp;gt;0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=log(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1*=1/x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else if(x==0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=-BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; untested(); &amp;nbsp; &amp;nbsp; &amp;nbsp;// why ?
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=log(-x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1*=1/x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } 
&lt;br&gt;&amp;nbsp; } else if(_cos) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=cos(x); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1*=-sin(x);
&lt;br&gt;&amp;nbsp; } else if(_tan) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=sin(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; f1=cos(x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(f1==0.0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(f0&amp;gt;0.0) f0=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else f0=-BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=BIGBIG;
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f0=f0/f1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; f1=1+f0*f0; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; f0=x;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // end as in bm_posy
&lt;br&gt;&amp;nbsp; d-&amp;gt;_y[0] = FPOLY1(ioffset(d-&amp;gt;_y[0].x), f0, f1); &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; tr_final_adjust(&amp;(d-&amp;gt;_y[0]), d-&amp;gt;f_is_value());
&lt;br&gt;&amp;nbsp; trace3(&amp;quot;fa&amp;quot;, d-&amp;gt;_y[0].x, d-&amp;gt;_y[0].f0, d-&amp;gt;_y[0].f1);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::parse_numlist(CS&amp; cmd)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; unsigned start = cmd.cursor();
&lt;br&gt;&amp;nbsp; unsigned here = cmd.cursor();
&lt;br&gt;&amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; unsigned start_of_pair = here;
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::pair&amp;lt;PARAMETER&amp;lt;double&amp;gt;, PARAMETER&amp;lt;double&amp;gt; &amp;gt; p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd &amp;gt;&amp;gt; p.second; // value
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (cmd.stuck(&amp;here)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // no more, graceful finish
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cmd &amp;gt;&amp;gt; p.first; // key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (cmd.stuck(&amp;here)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; // ran out, but already have half of the pair
&lt;br&gt;&amp;nbsp; &amp;nbsp; // back up one, hoping somebody else knows what to do with it
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.reset(start_of_pair);
&lt;br&gt;&amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; _table.push_back(p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; if (cmd.gotit(start)) {
&lt;br&gt;&amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; untested();
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; return cmd.gotit(start);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;bool EVAL_BM_FUNC::parse_params_obsolete_callback(CS&amp; cmd)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; return ONE_OF
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;exp&amp;quot;, &amp;nbsp;&amp;_exp)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;ln&amp;quot;, &amp;nbsp;&amp;_ln)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;cos&amp;quot;, &amp;nbsp;&amp;_cos)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;tan&amp;quot;, &amp;nbsp;&amp;_tan)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || Get(cmd, &amp;quot;xtime&amp;quot;, &amp;nbsp;&amp;_xtime)
&lt;br&gt;&amp;nbsp; &amp;nbsp; || EVAL_BM_ACTION_BASE::parse_params_obsolete_callback(cmd)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ;
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;EVAL_BM_FUNC p1(CC_STATIC);
&lt;br&gt;DISPATCHER&amp;lt;COMMON_COMPONENT&amp;gt;::INSTALL d1(&amp;bm_dispatcher, &amp;quot;func&amp;quot;, &amp;p1);
&lt;br&gt;}
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;/*--------------------------------------------------------------------------*/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26425413&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-model-sinusoidal-dependence-on-charge--tp26423035p26425413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423032</id>
	<title>how to model sinusoidal dependence on charge?</title>
	<published>2009-11-19T01:11:43Z</published>
	<updated>2009-11-19T01:11:43Z</updated>
	<author>
		<name>felix.maibaum</name>
	</author>
	<content type="html">&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;I'm trying to model a device which has a voltage that depends periodically
&lt;br&gt;on the charge which has passed through it: V=Vc*sin(q)
&lt;br&gt;&lt;br&gt;This seems almost possible with the controlled sources, but not quite,
&lt;br&gt;since the SIN function always depends on time. Is it possible to implement
&lt;br&gt;such a device with the model compiler, or could the trigonometric functions
&lt;br&gt;be generalized to achieve this somehow?
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;Felix
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Dipl.-Ing. Felix Maibaum
&lt;br&gt;AG 2.42
&lt;br&gt;Physikalisch Technische Bundesanstalt
&lt;br&gt;Bundesallee 100
&lt;br&gt;38116 Braunschweig
&lt;br&gt;Tel. : ++49 531 592 2465
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423032&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-model-sinusoidal-dependence-on-charge--tp26423032p26423032.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423035</id>
	<title>how to model sinusoidal dependence on charge?</title>
	<published>2009-11-19T01:11:43Z</published>
	<updated>2009-11-19T01:11:43Z</updated>
	<author>
		<name>felix.maibaum</name>
	</author>
	<content type="html">&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;I'm trying to model a device which has a voltage that depends periodically
&lt;br&gt;on the charge which has passed through it: V=Vc*sin(q)
&lt;br&gt;&lt;br&gt;This seems almost possible with the controlled sources, but not quite,
&lt;br&gt;since the SIN function always depends on time. Is it possible to implement
&lt;br&gt;such a device with the model compiler, or could the trigonometric functions
&lt;br&gt;be generalized to achieve this somehow?
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;Felix
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Dipl.-Ing. Felix Maibaum
&lt;br&gt;AG 2.42
&lt;br&gt;Physikalisch Technische Bundesanstalt
&lt;br&gt;Bundesallee 100
&lt;br&gt;38116 Braunschweig
&lt;br&gt;Tel. : ++49 531 592 2465
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-model-sinusoidal-dependence-on-charge--tp26423035p26423035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26288644</id>
	<title>gnucap development snapshot 2009-11-10</title>
	<published>2009-11-10T10:20:12Z</published>
	<updated>2009-11-10T10:20:12Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=x
&lt;br&gt;x2 (2 3) foo isat=y
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;.param x=1e-12
&lt;br&gt;.param y=1e-11
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;.param x=1e-13
&lt;br&gt;.param y=1e-14
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat,
&lt;br&gt;probably keeping the original value.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;It's fixed now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2.
&lt;br&gt;Expressions with &amp;quot;E&amp;quot; notation (1.3E-6) would sometimes not be
&lt;br&gt;evaluated properly. &amp;nbsp;This is fixed.
&lt;br&gt;&lt;br&gt;3.
&lt;br&gt;Expressions with function calls would sometimes not be
&lt;br&gt;parsed correctly. &amp;nbsp;Usually, you could work around this
&lt;br&gt;by careful use of parentheses and quotes. &amp;nbsp;It should 
&lt;br&gt;work now without the tricks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;You need to recompile all of the plugins with the new headers
&lt;br&gt;and wrappers.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26288644&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-11-10-tp26288644p26288644.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26288657</id>
	<title>gnucap development snapshot 2009-11-10</title>
	<published>2009-11-10T10:20:12Z</published>
	<updated>2009-11-10T10:20:12Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=x
&lt;br&gt;x2 (2 3) foo isat=y
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;.param x=1e-12
&lt;br&gt;.param y=1e-11
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;.param x=1e-13
&lt;br&gt;.param y=1e-14
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat,
&lt;br&gt;probably keeping the original value.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;It's fixed now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2.
&lt;br&gt;Expressions with &amp;quot;E&amp;quot; notation (1.3E-6) would sometimes not be
&lt;br&gt;evaluated properly. &amp;nbsp;This is fixed.
&lt;br&gt;&lt;br&gt;3.
&lt;br&gt;Expressions with function calls would sometimes not be
&lt;br&gt;parsed correctly. &amp;nbsp;Usually, you could work around this
&lt;br&gt;by careful use of parentheses and quotes. &amp;nbsp;It should 
&lt;br&gt;work now without the tricks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;You need to recompile all of the plugins with the new headers
&lt;br&gt;and wrappers.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Info-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26288657&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Info-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/info-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/info-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Announce-f1861.html&quot; embed=&quot;fixTarget[1861]&quot; target=&quot;_top&quot; &gt;Gnucap - Announce&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-11-10-tp26288657p26288657.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26288649</id>
	<title>gnucap development snapshot 2009-11-10</title>
	<published>2009-11-10T10:20:12Z</published>
	<updated>2009-11-10T10:20:12Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-11-10.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=x
&lt;br&gt;x2 (2 3) foo isat=y
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;.param x=1e-12
&lt;br&gt;.param y=1e-11
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;.param x=1e-13
&lt;br&gt;.param y=1e-14
&lt;br&gt;&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat,
&lt;br&gt;probably keeping the original value.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;It's fixed now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2.
&lt;br&gt;Expressions with &amp;quot;E&amp;quot; notation (1.3E-6) would sometimes not be
&lt;br&gt;evaluated properly. &amp;nbsp;This is fixed.
&lt;br&gt;&lt;br&gt;3.
&lt;br&gt;Expressions with function calls would sometimes not be
&lt;br&gt;parsed correctly. &amp;nbsp;Usually, you could work around this
&lt;br&gt;by careful use of parentheses and quotes. &amp;nbsp;It should 
&lt;br&gt;work now without the tricks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;You need to recompile all of the plugins with the new headers
&lt;br&gt;and wrappers.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26288649&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-11-10-tp26288649p26288649.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26085938</id>
	<title>Re: howto use different phase and frequency in sources for transient analysis?</title>
	<published>2009-10-27T15:00:04Z</published>
	<updated>2009-10-27T15:00:04Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello al:
&lt;br&gt;&lt;br&gt;al davis escribió:
&lt;br&gt;&amp;gt; Quick answer .. &amp;nbsp; I will get back with more details in a few 
&lt;br&gt;&amp;gt; days.
&lt;br&gt;&lt;br&gt;Ok, We wait for these details.
&lt;br&gt;&lt;br&gt;&amp;gt; What is the Pspice syntax for specifying phase on a &amp;quot;sin&amp;quot; 
&lt;br&gt;&amp;gt; source? &amp;nbsp;It's not in Berkeley spice.
&lt;br&gt;&lt;br&gt;There is the usual custom for propietary apps: deform the standard to 
&lt;br&gt;complicate the competence (like HTML's IE tags, for example):
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.uta.edu/ee/hw/pspice/pspice08.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.uta.edu/ee/hw/pspice/pspice08.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;Here are the 90% of my problems: exercises thought for Pspice with 
&lt;br&gt;incompatible syntax for free engines like Gnucap or Ngspice; or model, 
&lt;br&gt;macromodel for Pspice (like thyristor, UJT...) with a difficult -or 
&lt;br&gt;imposible for a newbie, like me- way to translate to Berkeley spice.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It would be just another way to specify the delay ... the phase 
&lt;br&gt;&amp;gt; at time = 0.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just did find a bug in the way the Fourier command computes 
&lt;br&gt;&amp;gt; relative phase.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (...)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; But that is not the problem you saw.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Ok.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The absolute phase you see in a Fourier analysis is referenced 
&lt;br&gt;&amp;gt; to the start of the interval, so it will be different on 
&lt;br&gt;&amp;gt; different runs depending on the starting time. &amp;nbsp;It does appear 
&lt;br&gt;&amp;gt; to be correct, from that perspective.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That really doesn't matter. &amp;nbsp;It is just a time shift.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think the reason your waveform built from the sum of sources 
&lt;br&gt;&amp;gt; doesn't match the signal you took the Fourier transform of &amp;nbsp;is 
&lt;br&gt;&amp;gt; that you are only using up to the fifth harmonic, so there is a 
&lt;br&gt;&amp;gt; lot missing.
&lt;/div&gt;&lt;br&gt;Perhaps I should explain a bit more:
&lt;br&gt;&lt;br&gt;Start with a Diode brigde rectifier and do a Fourier analysis:
&lt;br&gt;&lt;br&gt;# i(LS) &amp;nbsp; &amp;nbsp; --------- actual --------- &amp;nbsp;-------- relative --------
&lt;br&gt;#freq &amp;nbsp; &amp;nbsp; &amp;nbsp; value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dB &amp;nbsp; &amp;nbsp; &amp;nbsp;phase &amp;nbsp;value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dB &amp;nbsp; &amp;nbsp; &amp;nbsp;phase
&lt;br&gt;&amp;nbsp; 0. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0063273 &amp;nbsp;-43.98 &amp;nbsp; 90.000 &amp;nbsp;405.58E-6 &amp;nbsp;-67.84 &amp;nbsp;100.271
&lt;br&gt;&amp;nbsp; 60. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15.601 &amp;nbsp; &amp;nbsp; &amp;nbsp;23.86 &amp;nbsp;-10.271 &amp;nbsp;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; -0.000
&lt;br&gt;&amp;nbsp; 120. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.011073 &amp;nbsp; -39.11 &amp;nbsp;-92.415 &amp;nbsp;709.79E-6 &amp;nbsp;-62.98 &amp;nbsp;-82.144
&lt;br&gt;&amp;nbsp; 180. &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.821 &amp;nbsp; &amp;nbsp; &amp;nbsp;21.45 &amp;nbsp;148.226 &amp;nbsp;0.75772 &amp;nbsp; &amp;nbsp; -2.41 &amp;nbsp;158.497
&lt;br&gt;&amp;nbsp; 240. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0071613 &amp;nbsp;-42.90 &amp;nbsp; 85.933 &amp;nbsp;459.04E-6 &amp;nbsp;-66.76 &amp;nbsp; 96.205
&lt;br&gt;&amp;nbsp; 300. &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.3621 &amp;nbsp; &amp;nbsp; &amp;nbsp;16.07 &amp;nbsp;-57.484 &amp;nbsp;0.40781 &amp;nbsp; &amp;nbsp; -7.79 &amp;nbsp;-47.213
&lt;br&gt;&amp;nbsp; 360. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0028582 &amp;nbsp;-50.88 &amp;nbsp;-93.075 &amp;nbsp;183.21E-6 &amp;nbsp;-74.74 &amp;nbsp;-82.804
&lt;br&gt;&amp;nbsp; 420. &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.06 &amp;nbsp; 77.596 &amp;nbsp;0.12877 &amp;nbsp; &amp;nbsp;-17.80 &amp;nbsp; 87.867
&lt;br&gt;&amp;nbsp; 480. &amp;nbsp; &amp;nbsp; &amp;nbsp; 189.74E-6 &amp;nbsp;-74.44 -162.004 &amp;nbsp;12.162E-6 &amp;nbsp;-98.30 -151.732
&lt;br&gt;&amp;nbsp; 540. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.94716 &amp;nbsp; &amp;nbsp; -0.47 &amp;nbsp;143.495 &amp;nbsp;0.060713 &amp;nbsp; -24.33 &amp;nbsp;153.766
&lt;br&gt;&lt;br&gt;and transient analysis for view i(VS).
&lt;br&gt;&lt;br&gt;Next exercise: check grafically source current i(VS) how sum of 
&lt;br&gt;fundamental and two first harmonics (3 and 5).
&lt;br&gt;&lt;br&gt;I obtain the three currents well, something &amp;quot;displaced&amp;quot; compare with 
&lt;br&gt;Pspice output.
&lt;br&gt;&lt;br&gt;But i(VS) is not the wave expected.
&lt;br&gt;&lt;br&gt;&amp;gt; Also, the circuit doesn't look correct, but that could be due to 
&lt;br&gt;&amp;gt; partial cut and paste errors.
&lt;br&gt;&lt;br&gt;There are no errors in paste circuit, I'm sure now that circuit is not 
&lt;br&gt;correct; this is my fault: I should work on it a bit more.
&lt;br&gt;&lt;br&gt;Thanks so much for your fast answer.
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26085938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/howto-use-different-phase-and-frequency-in-sources-for-transient-analysis--tp25941409p26085938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26073108</id>
	<title>Re: howto use different phase and frequency in sources for transient analysis?</title>
	<published>2009-10-27T00:05:28Z</published>
	<updated>2009-10-27T00:05:28Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">Quick answer .. &amp;nbsp; I will get back with more details in a few 
&lt;br&gt;days.
&lt;br&gt;&lt;br&gt;What is the Pspice syntax for specifying phase on a &amp;quot;sin&amp;quot; 
&lt;br&gt;source? &amp;nbsp;It's not in Berkeley spice.
&lt;br&gt;&lt;br&gt;It would be just another way to specify the delay ... the phase 
&lt;br&gt;at time = 0.
&lt;br&gt;&lt;br&gt;I just did find a bug in the way the Fourier command computes 
&lt;br&gt;relative phase.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Notation: 
&lt;br&gt;&amp;quot;ap[2]&amp;quot; is the absolute phase of harmonic#2
&lt;br&gt;&amp;quot;rp[2]&amp;quot; is the relative phase
&lt;br&gt;hn is harmonic number
&lt;br&gt;&lt;br&gt;The way it is:
&lt;br&gt;for (hn=0; hn&amp;lt;=stop; ++hn) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; rp[hn] = ap[hn] - ap[1];
&lt;br&gt;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;The way it should be:
&lt;br&gt;for (hn=0; hn&amp;lt;=stop; ++hn) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; rp[hn] = ap[hn] - (hn *ap[1]);
&lt;br&gt;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;But that is not the problem you saw.
&lt;br&gt;&lt;br&gt;The absolute phase you see in a Fourier analysis is referenced 
&lt;br&gt;to the start of the interval, so it will be different on 
&lt;br&gt;different runs depending on the starting time. &amp;nbsp;It does appear 
&lt;br&gt;to be correct, from that perspective.
&lt;br&gt;&lt;br&gt;That really doesn't matter. &amp;nbsp;It is just a time shift.
&lt;br&gt;&lt;br&gt;I think the reason your waveform built from the sum of sources 
&lt;br&gt;doesn't match the signal you took the Fourier transform of &amp;nbsp;is 
&lt;br&gt;that you are only using up to the fifth harmonic, so there is a 
&lt;br&gt;lot missing.
&lt;br&gt;&lt;br&gt;Also, the circuit doesn't look correct, but that could be due to 
&lt;br&gt;partial cut and paste errors.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26073108&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/howto-use-different-phase-and-frequency-in-sources-for-transient-analysis--tp25941409p26073108.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26067039</id>
	<title>Re: howto use different phase and frequency in sources for transient analysis?</title>
	<published>2009-10-26T13:30:56Z</published>
	<updated>2009-10-26T13:30:56Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello al:
&lt;br&gt;&lt;br&gt;al davis escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Saturday 17 October 2009, Rubén Gómez Antolí wrote:
&lt;br&gt;&amp;gt;&amp;gt; I need to specify different phases in sources in this way:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I1 phase=-10 freq=60
&lt;br&gt;&amp;gt;&amp;gt; I2 phase=150 freq=180
&lt;br&gt;&amp;gt;&amp;gt; I3 phase=-56 freq=300
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; SIN sources not admit phase option.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I try with generator function: 
&lt;br&gt;&amp;gt;&amp;gt; .gen ampl=10 phase=-10 freq=60
&lt;br&gt;&amp;gt;&amp;gt; I1 n1 n2 generator(1)
&lt;br&gt;&amp;gt;&amp;gt; .gen ampl=15 phase=150 freq=180
&lt;br&gt;&amp;gt;&amp;gt; I1 n2 n3 generator(2)
&lt;br&gt;&amp;gt;&amp;gt; etc.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; but I see that generator don't work in this way.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You are correct .. It don't work in this way.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I look for in the net without sucess. I see that in AC
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;analysis is possible, but I need to do in transient
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;analysis.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There are anyway to do this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What is the meaning of phase in transient analysis, when you 
&lt;br&gt;&amp;gt; have different frequencies? &amp;nbsp;The phase relationship between them 
&lt;br&gt;&amp;gt; is always changing. &amp;nbsp;I suppose it could be the phase at time=0, 
&lt;br&gt;&amp;gt; and translate to delay.
&lt;/div&gt;&lt;br&gt;It's an class exercise based on a example from Power Electronics's Mohan 
&lt;br&gt;book.
&lt;br&gt;&lt;br&gt;I'm checking the harmonic current influence in circuit.
&lt;br&gt;&lt;br&gt;In a previous Fourier analisys I get phase and frequency of currents for 
&lt;br&gt;1, 3 and 5 harmonic:
&lt;br&gt;&lt;br&gt;# i(LS) &amp;nbsp; &amp;nbsp; --------- actual --------- &amp;nbsp;-------- relative --------
&lt;br&gt;#freq &amp;nbsp; &amp;nbsp; &amp;nbsp; value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dB &amp;nbsp; &amp;nbsp; &amp;nbsp;phase &amp;nbsp;value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dB &amp;nbsp; &amp;nbsp; &amp;nbsp;phase
&lt;br&gt;&amp;nbsp; 0. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0063273 &amp;nbsp;-43.98 &amp;nbsp; 90.000 &amp;nbsp;405.58E-6 &amp;nbsp;-67.84 &amp;nbsp;100.271
&lt;br&gt;&amp;nbsp; 60. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15.601 &amp;nbsp; &amp;nbsp; &amp;nbsp;23.86 &amp;nbsp;-10.271 &amp;nbsp;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; -0.000
&lt;br&gt;&amp;nbsp; 120. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.011073 &amp;nbsp; -39.11 &amp;nbsp;-92.415 &amp;nbsp;709.79E-6 &amp;nbsp;-62.98 &amp;nbsp;-82.144
&lt;br&gt;&amp;nbsp; 180. &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.821 &amp;nbsp; &amp;nbsp; &amp;nbsp;21.45 &amp;nbsp;148.226 &amp;nbsp;0.75772 &amp;nbsp; &amp;nbsp; -2.41 &amp;nbsp;158.497
&lt;br&gt;&amp;nbsp; 240. &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0071613 &amp;nbsp;-42.90 &amp;nbsp; 85.933 &amp;nbsp;459.04E-6 &amp;nbsp;-66.76 &amp;nbsp; 96.205
&lt;br&gt;&amp;nbsp; 300. &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.3621 &amp;nbsp; &amp;nbsp; &amp;nbsp;16.07 &amp;nbsp;-57.484 &amp;nbsp;0.40781 &amp;nbsp; &amp;nbsp; -7.79 &amp;nbsp;-47.213
&lt;br&gt;&lt;br&gt;Then, I put three current sources in the original circuit, which was 
&lt;br&gt;thought to be used in Pspice format, for this reason this phase value. :^(
&lt;br&gt;&lt;br&gt;&amp;gt; What you do have is &amp;quot;delay&amp;quot;. &amp;nbsp;You can get what you want with SIN 
&lt;br&gt;&amp;gt; source, specifying a delay in seconds.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; try delay={(phase/360)/frequency}
&lt;br&gt;&lt;br&gt;I try with it:
&lt;br&gt;&lt;br&gt;1· I obtained the &amp;quot;correct&amp;quot; waves for I1, I3 and I5.
&lt;br&gt;&lt;br&gt;2· I can't obtain the &amp;quot;correct&amp;quot; wave for I(LS).
&lt;br&gt;&lt;br&gt;I think there is something wrong in circuit, but I'm not sure. Here are 
&lt;br&gt;the circuit:
&lt;br&gt;&lt;br&gt;&lt;br&gt;DBRECT1A.CIR
&lt;br&gt;* Single-Phase, Diode-Bridge Rectifier
&lt;br&gt;* Fourier components of i(LS) are included as I1, I2 and I3.
&lt;br&gt;* Power Electronics: Simulation, Analysis &amp; Education.....by N. Mohan.
&lt;br&gt;.SUBCKT DIODE_WITH_SNUB 101 103
&lt;br&gt;&lt;br&gt;DX &amp;nbsp; &amp;nbsp; &amp;nbsp;101 102 &amp;nbsp; POWER_DIODE
&lt;br&gt;RSNUB &amp;nbsp; 102 103 &amp;nbsp; 1000.0
&lt;br&gt;CSNUB &amp;nbsp; 103 101 &amp;nbsp; 0.01uF
&lt;br&gt;.MODEL &amp;nbsp;POWER_DIODE &amp;nbsp;D( RS=0.01, CJO=100pF )
&lt;br&gt;&lt;br&gt;.ENDS DIODE_WITH_SNUB
&lt;br&gt;&lt;br&gt;.PARAM &amp;nbsp;FASE1 = -10.04
&lt;br&gt;.PARAM &amp;nbsp;FASE2 = &amp;nbsp;148.9
&lt;br&gt;.PARAM &amp;nbsp;FASE3 = -56.39
&lt;br&gt;.PARAM &amp;nbsp; FREQ0 = &amp;nbsp;60.0Hz
&lt;br&gt;.PARAM &amp;nbsp; FREQ1 = &amp;nbsp;60.0Hz
&lt;br&gt;.PARAM &amp;nbsp; FREQ2 = 180.0Hz
&lt;br&gt;.PARAM &amp;nbsp; FREQ3 = 300.0Hz
&lt;br&gt;.PARAM &amp;nbsp;RETRASO1={(FASE1/360)/FREQ1}
&lt;br&gt;.PARAM &amp;nbsp;RETRASO2={(FASE2/360)/FREQ2}
&lt;br&gt;.PARAM &amp;nbsp;RETRASO3={(FASE3/360)/FREQ3}
&lt;br&gt;&lt;br&gt;LS &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;2 &amp;nbsp;1mH
&lt;br&gt;RS &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp;3 &amp;nbsp;1m
&lt;br&gt;&lt;br&gt;LD &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp;5 &amp;nbsp;1uH
&lt;br&gt;RLOAD &amp;nbsp; &amp;nbsp;5 &amp;nbsp;6 &amp;nbsp;20.0
&lt;br&gt;CD &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp;6 &amp;nbsp;1000uF IC=160V
&lt;br&gt;&lt;br&gt;XD1 &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp;4 &amp;nbsp;DIODE_WITH_SNUB
&lt;br&gt;XD3 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp;4 &amp;nbsp;DIODE_WITH_SNUB
&lt;br&gt;XD2 &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp;0 &amp;nbsp;DIODE_WITH_SNUB
&lt;br&gt;XD4 &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp;3 &amp;nbsp;DIODE_WITH_SNUB
&lt;br&gt;&lt;br&gt;VS &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;0 &amp;nbsp;SIN(0 170V {FREQ0} 0 0)
&lt;br&gt;&lt;br&gt;I1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 7 &amp;nbsp;0 &amp;nbsp;SIN(0 15.35A {FREQ1} &amp;nbsp;{RETRASO1} 0)
&lt;br&gt;I3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp;0 &amp;nbsp;SIN(0 11.74A {FREQ2} &amp;nbsp;{RETRASO2} 0)
&lt;br&gt;I5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 &amp;nbsp;0 &amp;nbsp;SIN(0 6.482A {FREQ3} &amp;nbsp;{RETRASO3} 0)
&lt;br&gt;&lt;br&gt;R1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 7 &amp;nbsp;0 &amp;nbsp;1.0
&lt;br&gt;R3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp;0 &amp;nbsp;1.0
&lt;br&gt;R5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 &amp;nbsp;0 &amp;nbsp;1.0
&lt;br&gt;&lt;br&gt;.END
&lt;br&gt;&lt;br&gt;What do you think about this?
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26067039&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/howto-use-different-phase-and-frequency-in-sources-for-transient-analysis--tp25941409p26067039.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25966352</id>
	<title>Re: howto use different phase and frequency in sources for transient analysis?</title>
	<published>2009-10-19T14:52:36Z</published>
	<updated>2009-10-19T14:52:36Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Saturday 17 October 2009, Rubén Gómez Antolí wrote:
&lt;br&gt;&amp;gt; I need to specify different phases in sources in this way:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I1 phase=-10 freq=60
&lt;br&gt;&amp;gt; I2 phase=150 freq=180
&lt;br&gt;&amp;gt; I3 phase=-56 freq=300
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SIN sources not admit phase option.
&lt;br&gt;&lt;br&gt;&amp;gt; I try with generator function: 
&lt;br&gt;&amp;gt; .gen ampl=10 phase=-10 freq=60
&lt;br&gt;&amp;gt; I1 n1 n2 generator(1)
&lt;br&gt;&amp;gt; .gen ampl=15 phase=150 freq=180
&lt;br&gt;&amp;gt; I1 n2 n3 generator(2)
&lt;br&gt;&amp;gt; etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but I see that generator don't work in this way.
&lt;br&gt;&lt;br&gt;You are correct .. It don't work in this way.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; I look for in the net without sucess. I see that in AC
&lt;br&gt;&amp;gt; &amp;nbsp;analysis is possible, but I need to do in transient
&lt;br&gt;&amp;gt; &amp;nbsp;analysis.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There are anyway to do this?
&lt;br&gt;&lt;br&gt;What is the meaning of phase in transient analysis, when you 
&lt;br&gt;have different frequencies? &amp;nbsp;The phase relationship between them 
&lt;br&gt;is always changing. &amp;nbsp;I suppose it could be the phase at time=0, 
&lt;br&gt;and translate to delay.
&lt;br&gt;&lt;br&gt;What you do have is &amp;quot;delay&amp;quot;. &amp;nbsp;You can get what you want with SIN 
&lt;br&gt;source, specifying a delay in seconds.
&lt;br&gt;&lt;br&gt;try delay={(phase/360)/frequency}
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25966352&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/howto-use-different-phase-and-frequency-in-sources-for-transient-analysis--tp25941409p25966352.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25941409</id>
	<title>howto use different phase and frequency in sources for transient analysis?</title>
	<published>2009-10-17T13:09:25Z</published>
	<updated>2009-10-17T13:09:25Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello All:
&lt;br&gt;&lt;br&gt;I need to specify different phases in sources in this way:
&lt;br&gt;&lt;br&gt;I1 phase=-10 freq=60
&lt;br&gt;I2 phase=150 freq=180
&lt;br&gt;I3 phase=-56 freq=300
&lt;br&gt;&lt;br&gt;SIN sources not admit phase option. I try with generator function:
&lt;br&gt;&lt;br&gt;.gen ampl=10 phase=-10 freq=60
&lt;br&gt;I1 n1 n2 generator(1)
&lt;br&gt;.gen ampl=15 phase=150 freq=180
&lt;br&gt;I1 n2 n3 generator(2)
&lt;br&gt;etc.
&lt;br&gt;&lt;br&gt;but I see that generator don't work in this way.
&lt;br&gt;&lt;br&gt;I look for in the net without sucess. I see that in AC analysis is 
&lt;br&gt;possible, but I need to do in transient analysis.
&lt;br&gt;&lt;br&gt;There are anyway to do this?
&lt;br&gt;&lt;br&gt;Thanks so much in advance.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25941409&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/howto-use-different-phase-and-frequency-in-sources-for-transient-analysis--tp25941409p25941409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25739610</id>
	<title>Referencing gnucap</title>
	<published>2009-10-04T09:30:05Z</published>
	<updated>2009-10-04T09:30:05Z</updated>
	<author>
		<name>Thomas Ibbotson-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have recently used gnucap simulations in a scientific paper. I would 
&lt;br&gt;like to know how best to reference gnucap in this paper.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25739610&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Referencing-gnucap-tp25739610p25739610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25654860</id>
	<title>gnucap development snapshot 2009-09-28</title>
	<published>2009-09-28T17:02:09Z</published>
	<updated>2009-09-28T17:02:09Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=1u
&lt;br&gt;x2 (2 3) foo isat=2u
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2. (cosmetic)
&lt;br&gt;Taming of redundant warnings that would be printed in the
&lt;br&gt;elaboration phase. &amp;nbsp;Also, bad parameter warnings from 
&lt;br&gt;spice models using plugins are now printed, only once,
&lt;br&gt;on readin, instead of multiple times on elaboration.
&lt;br&gt;&lt;br&gt;3. (new models)
&lt;br&gt;The tarball &amp;quot;models-bsim&amp;quot; includes new models, including
&lt;br&gt;the new BSIM4SOI, released Sep 22 and the new BSIM465,
&lt;br&gt;release Sep 9.
&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Info-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25654860&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Info-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/info-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/info-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Announce-f1861.html&quot; embed=&quot;fixTarget[1861]&quot; target=&quot;_top&quot; &gt;Gnucap - Announce&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-28-tp25654860p25654860.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25654856</id>
	<title>gnucap development snapshot 2009-09-28</title>
	<published>2009-09-28T17:02:03Z</published>
	<updated>2009-09-28T17:02:03Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=1u
&lt;br&gt;x2 (2 3) foo isat=2u
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2. (cosmetic)
&lt;br&gt;Taming of redundant warnings that would be printed in the
&lt;br&gt;elaboration phase. &amp;nbsp;Also, bad parameter warnings from 
&lt;br&gt;spice models using plugins are now printed, only once,
&lt;br&gt;on readin, instead of multiple times on elaboration.
&lt;br&gt;&lt;br&gt;3. (new models)
&lt;br&gt;The tarball &amp;quot;models-bsim&amp;quot; includes new models, including
&lt;br&gt;the new BSIM4SOI, released Sep 22 and the new BSIM465,
&lt;br&gt;release Sep 9.
&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25654856&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-28-tp25654856p25654856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25654853</id>
	<title>gnucap development snapshot 2009-09-28</title>
	<published>2009-09-28T17:01:53Z</published>
	<updated>2009-09-28T17:01:53Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-28.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;This release has changes to the &amp;quot;elaboration&amp;quot; phase of simulation.
&lt;br&gt;There are three differences you will see ..
&lt;br&gt;&lt;br&gt;1. (Important!)
&lt;br&gt;It fixes a bug that sometimes caused incorrect parameter values
&lt;br&gt;in some cases. &amp;nbsp;The bug would manifest with a certain combination
&lt;br&gt;of subcircuits, models, and parameters.
&lt;br&gt;&lt;br&gt;In particular, something like this would give bad results:
&lt;br&gt;&lt;br&gt;.subckt foo (a k)
&lt;br&gt;.model dio d (is={isat})
&lt;br&gt;dfoo (a k) dio
&lt;br&gt;.ends
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;x1 (1 2) foo isat=1u
&lt;br&gt;x2 (2 3) foo isat=2u
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;...... &amp;nbsp;would have the wrong value of isat.
&lt;br&gt;&lt;br&gt;Circuits that did not have this combination of models, subckt, and params
&lt;br&gt;did not have this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;2. (cosmetic)
&lt;br&gt;Taming of redundant warnings that would be printed in the
&lt;br&gt;elaboration phase. &amp;nbsp;Also, bad parameter warnings from 
&lt;br&gt;spice models using plugins are now printed, only once,
&lt;br&gt;on readin, instead of multiple times on elaboration.
&lt;br&gt;&lt;br&gt;3. (new models)
&lt;br&gt;The tarball &amp;quot;models-bsim&amp;quot; includes new models, including
&lt;br&gt;the new BSIM4SOI, released Sep 22 and the new BSIM465,
&lt;br&gt;release Sep 9.
&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25654853&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-28-tp25654853p25654853.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25570741</id>
	<title>gnucap development snapshot 2009-09-22</title>
	<published>2009-09-22T20:13:53Z</published>
	<updated>2009-09-22T20:13:53Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;New features:
&lt;br&gt;&amp;quot;gmin stepping&amp;quot; homotopy for convergence improvement.
&lt;br&gt;&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25570741&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-22-tp25570741p25570741.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25570744</id>
	<title>gnucap development snapshot 2009-09-22</title>
	<published>2009-09-22T20:13:53Z</published>
	<updated>2009-09-22T20:13:53Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;New features:
&lt;br&gt;&amp;quot;gmin stepping&amp;quot; homotopy for convergence improvement.
&lt;br&gt;&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Info-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25570744&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Info-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/info-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/info-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Announce-f1861.html&quot; embed=&quot;fixTarget[1861]&quot; target=&quot;_top&quot; &gt;Gnucap - Announce&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-22-tp25570744p25570744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25570743</id>
	<title>gnucap development snapshot 2009-09-22</title>
	<published>2009-09-22T20:13:53Z</published>
	<updated>2009-09-22T20:13:53Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">&lt;br&gt;There is a new development snapshot available ... 
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;Optional plugin files:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-bsim.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-jspice3-2.5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-ngspice17.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-models-spice3f5.tar.gz&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22-tools.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;This file contains the md5sum of the other files, so you can 
&lt;br&gt;check for a proper download:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-22.md5sum&lt;/a&gt;&lt;br&gt;&lt;br&gt;New features:
&lt;br&gt;&amp;quot;gmin stepping&amp;quot; homotopy for convergence improvement.
&lt;br&gt;&lt;br&gt;&lt;br&gt;===
&lt;br&gt;&lt;br&gt;As usual, to get started you need only the main package 
&lt;br&gt;gnucap-2009-xx-xx.tar.gz . &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25570743&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-22-tp25570743p25570743.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25479623</id>
	<title>Re: Fwd: [Help-gnucap] inline comment delimiter</title>
	<published>2009-09-16T08:51:16Z</published>
	<updated>2009-09-16T08:51:16Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Tuesday 15 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25479623&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; It looks like the spice language plugin section of the
&lt;br&gt;&amp;gt; development version's manual is yet to be written.  Is there
&lt;br&gt;&amp;gt; any place I can go for more info on that?
&lt;br&gt;&lt;br&gt;Spice documentation, but that doesn't tell you the differences 
&lt;br&gt;in gnucap. &amp;nbsp;As I said, the manual is a work in progress, trying 
&lt;br&gt;to track code that is a work in progress.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25479623&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A--Help-gnucap--inline-comment-delimiter-tp25463502p25479623.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25465247</id>
	<title>Re: Fwd: [Help-gnucap] inline comment delimiter</title>
	<published>2009-09-15T20:11:14Z</published>
	<updated>2009-09-15T20:11:14Z</updated>
	<author>
		<name>asomers-2</name>
	</author>
	<content type="html">It looks like the spice language plugin section of the development
&lt;br&gt;version's manual is yet to be written. &amp;nbsp;Is there any place I can go
&lt;br&gt;for more info on that?
&lt;br&gt;&lt;br&gt;On Tue, Sep 15, 2009 at 6:00 PM, al davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25465247&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ad211@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tuesday 15 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25465247&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Here's a thread that started out on gnucap-help:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What is the inline comment delimiter in gnucap,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It depends on the language plugin, but mostly it doesn't work.
&lt;br&gt;&amp;gt; Let's fix it now.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gnucap accepts several different simulation languages.  What is
&lt;br&gt;&amp;gt; the comment delimiter should depend on what language you are
&lt;br&gt;&amp;gt; using.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and what
&lt;br&gt;&amp;gt;&amp;gt;  should it be?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With the language plugins, it is possible to have exact
&lt;br&gt;&amp;gt; compatibility with most other simulators, even the different
&lt;br&gt;&amp;gt; incompatible versions of Spice.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As it stands, compatibility isn't perfect, but Hspice and Eldo
&lt;br&gt;&amp;gt; have been treated as the &amp;quot;spice&amp;quot; versions for which the highest
&lt;br&gt;&amp;gt; compatibility is desired.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; According to the manual for V0.35, the delimiter is quote.
&lt;br&gt;&amp;gt;&amp;gt;  It doesn't say whether that is single quote or double quote.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's unclear. .. The manual is being rewritten completely.
&lt;br&gt;&amp;gt; The new version is on the wiki at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From experiment, it seems that ' starts a comment on my
&lt;br&gt;&amp;gt;&amp;gt; lines, but &amp;quot; starts a comment on a .SUBCKT line.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Several characters are accepted to start whole-line comments,
&lt;br&gt;&amp;gt; going back a long time when different versions of spice used
&lt;br&gt;&amp;gt; different characters.  Since there was no standard, accept all
&lt;br&gt;&amp;gt; of them.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think it has converged to &amp;quot;*&amp;quot;.  Correct me if I am wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is easy to change it to just about anything.  So, since the
&lt;br&gt;&amp;gt; example is Spice format ..  What do the different versions of
&lt;br&gt;&amp;gt; Spice do?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (Hspice, Pspice, NGspice, LTspice, Eldo, Multi-sim, Smart-spice,
&lt;br&gt;&amp;gt; .....)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is another issue now ...  You can have parameter
&lt;br&gt;&amp;gt; expressions.  It looks like Hspice and Eldo want them in single
&lt;br&gt;&amp;gt; quotes.  Pspice appears to want curly braces.  What else is
&lt;br&gt;&amp;gt; there?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Another comment issue is how comments mix with extension lines.
&lt;br&gt;&amp;gt; It seems to be different in different simulators.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gnucap-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25465247&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25465247&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A--Help-gnucap--inline-comment-delimiter-tp25463502p25465247.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25464193</id>
	<title>Re: Fwd: [Help-gnucap] inline comment delimiter</title>
	<published>2009-09-15T17:58:38Z</published>
	<updated>2009-09-15T17:58:38Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Tuesday 15 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25464193&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Here's a thread that started out on gnucap-help:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What is the inline comment delimiter in gnucap,
&lt;br&gt;&lt;br&gt;It depends on the language plugin, but mostly it doesn't work. &amp;nbsp;
&lt;br&gt;Let's fix it now.
&lt;br&gt;&lt;br&gt;Gnucap accepts several different simulation languages. &amp;nbsp;What is 
&lt;br&gt;the comment delimiter should depend on what language you are 
&lt;br&gt;using.
&lt;br&gt;&lt;br&gt;&amp;gt; and what
&lt;br&gt;&amp;gt; &amp;nbsp;should it be?
&lt;br&gt;&lt;br&gt;With the language plugins, it is possible to have exact 
&lt;br&gt;compatibility with most other simulators, even the different 
&lt;br&gt;incompatible versions of Spice.
&lt;br&gt;&lt;br&gt;As it stands, compatibility isn't perfect, but Hspice and Eldo 
&lt;br&gt;have been treated as the &amp;quot;spice&amp;quot; versions for which the highest 
&lt;br&gt;compatibility is desired.
&lt;br&gt;&lt;br&gt;&amp;gt; According to the manual for V0.35, the delimiter is quote. 
&lt;br&gt;&amp;gt; &amp;nbsp;It doesn't say whether that is single quote or double quote.
&lt;br&gt;&lt;br&gt;That's unclear. .. The manual is being rewritten completely. &amp;nbsp;
&lt;br&gt;The new version is on the wiki at:
&lt;br&gt;&lt;a href=&quot;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; From experiment, it seems that ' starts a comment on my
&lt;br&gt;&amp;gt; lines, but &amp;quot; starts a comment on a .SUBCKT line. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Several characters are accepted to start whole-line comments, 
&lt;br&gt;going back a long time when different versions of spice used 
&lt;br&gt;different characters. &amp;nbsp;Since there was no standard, accept all 
&lt;br&gt;of them.
&lt;br&gt;&lt;br&gt;I think it has converged to &amp;quot;*&amp;quot;. &amp;nbsp;Correct me if I am wrong.
&lt;br&gt;&lt;br&gt;It is easy to change it to just about anything. &amp;nbsp;So, since the 
&lt;br&gt;example is Spice format .. &amp;nbsp;What do the different versions of 
&lt;br&gt;Spice do?
&lt;br&gt;&lt;br&gt;(Hspice, Pspice, NGspice, LTspice, Eldo, Multi-sim, Smart-spice, 
&lt;br&gt;.....)
&lt;br&gt;&lt;br&gt;There is another issue now ... &amp;nbsp;You can have parameter 
&lt;br&gt;expressions. &amp;nbsp;It looks like Hspice and Eldo want them in single 
&lt;br&gt;quotes. &amp;nbsp;Pspice appears to want curly braces. &amp;nbsp;What else is 
&lt;br&gt;there?
&lt;br&gt;&lt;br&gt;Another comment issue is how comments mix with extension lines. &amp;nbsp;
&lt;br&gt;It seems to be different in different simulators.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25464193&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A--Help-gnucap--inline-comment-delimiter-tp25463502p25464193.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25463502</id>
	<title>Fwd: [Help-gnucap] inline comment delimiter</title>
	<published>2009-09-15T16:31:45Z</published>
	<updated>2009-09-15T16:31:45Z</updated>
	<author>
		<name>asomers-2</name>
	</author>
	<content type="html">Here's a thread that started out on gnucap-help:
&lt;br&gt;&lt;br&gt;What is the inline comment delimiter in gnucap, and what should it be?
&lt;br&gt;&lt;br&gt;According to the manual for V0.35, the delimiter is quote. &amp;nbsp;It doesn't
&lt;br&gt;say whether that is single quote or double quote.
&lt;br&gt;&lt;br&gt;According to Al Davis, there are no inline comments in gnucap.
&lt;br&gt;&lt;br&gt;From experiment, it seems that ' starts a comment on my lines, but &amp;quot;
&lt;br&gt;starts a comment on a .SUBCKT line. &amp;nbsp;Here is an example script that
&lt;br&gt;illustrates both types of quote:
&lt;br&gt;*Comment test
&lt;br&gt;*On a .SUBCKT line, it seems that &amp;quot; is a comment delimiter
&lt;br&gt;*But elsewhere it seems that ' is a comment delimiter
&lt;br&gt;.SUBCKT Foo 1 2 &amp;quot;(IN
&lt;br&gt;*This next line will not work if you uncomment it
&lt;br&gt;*.SUBCKT Bar 1 2 '(IN
&lt;br&gt;.ENDS Foo
&lt;br&gt;R &amp;nbsp;1 2 1000
&lt;br&gt;D1 2 0 DIODE1 ' a comment
&lt;br&gt;V1 1 0 dc 1 ac 0
&lt;br&gt;.MODEL DIODE1 D(IS=8.2592e-16 RS=10) ' a comment
&lt;br&gt;.op
&lt;br&gt;&lt;br&gt;-Alan Somers
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------- Forwarded message ----------
&lt;br&gt;From: al davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ad211@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Fri, Sep 11, 2009 at 9:52 AM
&lt;br&gt;Subject: Re: [Help-gnucap] inline comment delimiter
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Friday 11 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; It says that in section 1.4: Command Structure.  On my
&lt;br&gt;&amp;gt;  system, it's at:
&lt;br&gt;&amp;gt;  file:///usr/share/doc/gnucap/html/gnucap-man006.html#htoc5
&lt;br&gt;&lt;br&gt;That's the old manual, for the old stable version.   (0.35??)
&lt;br&gt;There are a lot of changes in the development version, which is
&lt;br&gt;getting close to ready for release as a stable version.
&lt;br&gt;&lt;br&gt;&amp;gt; So I guess I what you're saying is that I should just delete
&lt;br&gt;&amp;gt;  those comments.  That will work, although it's sad to lose
&lt;br&gt;&amp;gt;  information. Gnucap can definitely not read LTSpice models
&lt;br&gt;&amp;gt;  as is.  There are many changes I have to make.
&lt;br&gt;&lt;br&gt;The best approach is to move over to the developer list
&lt;br&gt;(&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gnucap-devel@...&lt;/a&gt;) and point out the problems there,
&lt;br&gt;specifically so they can be addressed directly.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gnucap-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463502&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gnucap-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/gnucap-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/gnucap-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Dev-f1859.html&quot; embed=&quot;fixTarget[1859]&quot; target=&quot;_top&quot; &gt;Gnucap - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A--Help-gnucap--inline-comment-delimiter-tp25463502p25463502.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25404901</id>
	<title>Re: inline comment delimiter</title>
	<published>2009-09-11T09:52:22Z</published>
	<updated>2009-09-11T09:52:22Z</updated>
	<author>
		<name>al davis-13</name>
	</author>
	<content type="html">On Friday 11 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404901&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; It says that in section 1.4: Command Structure. &amp;nbsp;On my
&lt;br&gt;&amp;gt; &amp;nbsp;system, it's at:
&lt;br&gt;&amp;gt; &amp;nbsp;file:///usr/share/doc/gnucap/html/gnucap-man006.html#htoc5
&lt;br&gt;&lt;br&gt;That's the old manual, for the old stable version. &amp;nbsp; (0.35??) &amp;nbsp;
&lt;br&gt;There are a lot of changes in the development version, which is 
&lt;br&gt;getting close to ready for release as a stable version.
&lt;br&gt;&lt;br&gt;&amp;gt; So I guess I what you're saying is that I should just delete
&lt;br&gt;&amp;gt; &amp;nbsp;those comments. &amp;nbsp;That will work, although it's sad to lose
&lt;br&gt;&amp;gt; &amp;nbsp;information. Gnucap can definitely not read LTSpice models
&lt;br&gt;&amp;gt; &amp;nbsp;as is. &amp;nbsp;There are many changes I have to make.
&lt;br&gt;&lt;br&gt;The best approach is to move over to the developer list 
&lt;br&gt;(&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404901&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gnucap-devel@...&lt;/a&gt;) and point out the problems there, 
&lt;br&gt;specifically so they can be addressed directly.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404901&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inline-comment-delimiter-tp25394192p25404901.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25404338</id>
	<title>Re: inline comment delimiter</title>
	<published>2009-09-11T09:16:03Z</published>
	<updated>2009-09-11T09:16:03Z</updated>
	<author>
		<name>asomers-2</name>
	</author>
	<content type="html">It says that in section 1.4: Command Structure. &amp;nbsp;On my system, it's at:
&lt;br&gt;file:///usr/share/doc/gnucap/html/gnucap-man006.html#htoc5
&lt;br&gt;&lt;br&gt;So I guess I what you're saying is that I should just delete those
&lt;br&gt;comments. &amp;nbsp;That will work, although it's sad to lose information.
&lt;br&gt;Gnucap can definitely not read LTSpice models as is. &amp;nbsp;There are many
&lt;br&gt;changes I have to make.
&lt;br&gt;&lt;br&gt;-Alan
&lt;br&gt;&lt;br&gt;On Thu, Sep 10, 2009 at 8:11 PM, al davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404338&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ad211@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thursday 10 September 2009, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404338&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asomers@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm having a little trouble getting inline comments to work.
&lt;br&gt;&amp;gt;&amp;gt; According to the manual, &amp;quot;Anything on any line following a
&lt;br&gt;&amp;gt;&amp;gt;  quote is ignored.&amp;quot;.  But the manual doesn't say whether to
&lt;br&gt;&amp;gt;&amp;gt;  use single or double quotes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Where does it say that?  It's wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Quoting in the middle of a line can't be a comment, because
&lt;br&gt;&amp;gt; quotes can enclose expressions.  Some versions of spice use it
&lt;br&gt;&amp;gt; that way, so gnucap must accept it that way.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There really isn't a general here-to-the-end-of-line comment.
&lt;br&gt;&amp;gt; There should be.  What it is would depend on what format you are
&lt;br&gt;&amp;gt; using ..(spice, spectre, verilog, ...)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can someone clear me up here?  I'm working on a tool to
&lt;br&gt;&amp;gt;&amp;gt;  automatically convert LTSpice models into Gnucap models, so
&lt;br&gt;&amp;gt;&amp;gt;  'just change it by hand' isn't a viable solution.  I need to
&lt;br&gt;&amp;gt;&amp;gt;  be able to choose the right delimiter in all cases.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gnucap should be able to read LTspice netlists and models as is,
&lt;br&gt;&amp;gt; but I haven't looked at it to know if it really does.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Help-gnucap mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404338&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25404338&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inline-comment-delimiter-tp25394192p25404338.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25397158</id>
	<title>Re: gnucap development snapshot 2009-09-09</title>
	<published>2009-09-11T01:38:58Z</published>
	<updated>2009-09-11T01:38:58Z</updated>
	<author>
		<name>Rubén Gómez Antolí</name>
	</author>
	<content type="html">Hello:
&lt;br&gt;&lt;br&gt;al davis escribió:
&lt;br&gt;&amp;gt; There is a new development snapshot available ... 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gnucap.org/devel/gnucap-2009-09-09.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnucap.org/devel/gnucap-2009-09-09.tar.gz&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (...)
&lt;br&gt;&lt;br&gt;&amp;gt; New features:
&lt;br&gt;&amp;gt; &amp;quot;Binning&amp;quot; (automatic model selection) now works for some spice models. 
&lt;br&gt;&amp;gt; The BSIM3 and BSIM4 models now support binning.
&lt;br&gt;&lt;br&gt;Sounds too good, Could you show a little example about use it? Or link 
&lt;br&gt;to &amp;nbsp;wiki page?
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;Salud y Revolución.
&lt;br&gt;&lt;br&gt;Lobo.
&lt;br&gt;-- 
&lt;br&gt;Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
&lt;br&gt;para no atar mis manos con las cadenas del soft propietario.
&lt;br&gt;---------
&lt;br&gt;Desde El Ejido, en Almería, usuario registrado Linux #294013
&lt;br&gt;&lt;a href=&quot;http://www.counter.li.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.counter.li.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-gnucap mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25397158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-gnucap@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-gnucap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-gnucap&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnucap---Help-f1860.html&quot; embed=&quot;fixTarget[1860]&quot; target=&quot;_top&quot; &gt;Gnucap - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gnucap-development-snapshot-2009-09-09-tp25365369p25397158.html" />
</entry>

</feed>
