
Home  Forums  Rules  Articles  diyAudio Store  Gallery  Wiki  Blogs  Register  Donations  FAQ  Calendar  Search  Today's Posts  Mark Forums Read  Search 
Tubes / Valves All about our sweet vacuum tubes :) Threads about Musical Instrument Amps of all kinds should be in the Instruments & Amps forum 

Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving 

Thread Tools  Search this Thread 
29th April 2005, 07:29 AM  #1 
diyAudio Member
Join Date: Dec 2002
Location: Canada

Vacuum tube modeling software  beta testers wanted
Hi,
I am looking for a few people to betatest the vacuum tube modeling software I wrote (for my own use), to iron out bugs before I do a public code release. Basically, it can build Spicecompatible models and do simple bias point/signal analysis calculations from the traced tube data (either from datasheet curves or obtained elsewhere). See attached screenshots for examples... It is developed on Unix platform, but as it is written in Tcl/C should be portable to Windows (any takers?). Documentation is nonexistant at the moment. If interested, email me at frolov@cita.utoronto.ca. Replies might be slow (sorry...). 
29th April 2005, 07:30 AM  #2 
diyAudio Member
Join Date: Dec 2002
Location: Canada

And the curve tracer tool...

29th April 2005, 09:17 AM  #3  
frugalphile(tm)
diyAudio Moderator

Re: Vacuum tube modeling software  beta testers wanted
Quote:
dave
__________________
community sites tlinespeakers.org, frugalhorn.com, frugalphile.com ........ commercial site planet10HiFi p10hifi forum here at diyA 

29th April 2005, 10:27 AM  #4 
RIP
Join Date: Dec 2002
Location: C'ville VA, USA

Good idea. I need a 5687 spice model right now, but don't have the intellect to produce it.

29th April 2005, 11:56 AM  #5 
diyAudio Member
Join Date: Jul 2003
Location: Wayne, West Virginia

andrei
Very much interested! Pspice by any chance or 3f...? Wayne 
29th April 2005, 02:53 PM  #6 
diyAudio Member
Join Date: Dec 2002
Location: Canada

It requires Tcl/Tk for GUI, m4 for macro processing, standard C compiler (tested with gcc and icc), and FFTW libraries for distortion analysis (www.fftw.org). All of these are available on many Unix clones...
Models are macrobased and can be easily adopted to your favourite flavour of Spice. You do not need Spice installed to run Curvecaptor  it has simple waveform analysis build in (at much better precision, too ). For the impatient: I am attaching the Spice libraries for a few of my favourite tubes build from datasheets I traced. (If you electricute yourself using these  don't complain.) 
29th April 2005, 06:15 PM  #7 
diyAudio Member
Join Date: Apr 2005
Location: New York

Tube models
Hi Andrei,
Looks like a great job! I wouldn't know how to port it into PC, otherwise I would be happy to test. I did my own software using Matlab to model tubes and calculate SET input and output stages in real time while dragging the loadline all over the graph. I used the regular Koren's model, I found however, that in some cases the model collapses and the best parameters give out real and imaginary components when plugged into the equation to model the curves. It doesn't happen with all triodes, but some. Using only the real part of the answer give a good approximation, but some anomalies happen at the bottom of the curves (not of much importance as I would never operate tubes there). You used an 8 parameter model. I wondered if you modified Koren's model to solve similar anomalies of the model with some tubes. If that's the case, could you comment on the additional parameters and pass along the model? Thanks, Rada PS: I found that Engauge Digitizer (from SourceForge) does a great job fo digitizing the curves in a semiautomated fashion. PSII: Feel free to email at verdee@cshl.org if you consider this deviates from the objective of the original post. 
29th April 2005, 06:32 PM  #8  
frugalphile(tm)
diyAudio Moderator

Quote:
dave
__________________
community sites tlinespeakers.org, frugalhorn.com, frugalphile.com ........ commercial site planet10HiFi p10hifi forum here at diyA 

30th April 2005, 04:58 AM  #9 
diyAudio Member
Join Date: Dec 2002
Location: Canada

Yes, original 5parameter Koren model
Code:
Ip = K * [Vp * log(1.0 + exp(Kp + Kp*mu*Vg/sqrt(1000.0*Kv + Vp*Vp)))/Kp]^gamma Code:
Ip = K * [Vp * log(1.0 + exp(Kp + Kp*mu*Vg/Vp))/Kp]^gamma Code:
Ip = K * [Vp * log(1.0 + Kc + exp(Kp + Kp*(mu+nu*Vg/1000.0)*Vg/sqrt(Kv*Kv+(VpVc)*(VpVc))))/Kp]^gamma 4parameter Koren model is probably good enough for calculating working point and signal amplitudes. The reason for more complex models is to try to get the distortion analysis right. Simple models give unrealistically small distortion figures. In Curvecaptor, you can choose the model from a menu and see the differences in fits. 
1st May 2005, 07:13 AM  #10  
diyAudio Member
Join Date: Apr 2005
Location: NJ

Tried the models in tubelib.zip and they mostly work well. My spice program Circuitmaker barfed on "exp" and the m and k after a string of numbers. It did work when I replaced "exp" with 2.818^" (am I correct that I want "e to the X" here? as I saw "ln" which I think means "log to e" instead of "log of 10".) Oh, my spice program didn't barf on "ln". Also had to repplace "m" with "e3" and "k" with "e3".
That's one thing I've hated about software writing is the stupid compilers barfing on syntax. And different compilers want differing syntaxes and I can never remember which wants what. Quote:


Thread Tools  Search this Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
wanted: Coral Beta 8 or Beta 10 full range speaker  francofil  Swap Meet  2  28th April 2010 08:34 AM 
Vacuum Tube Computer Simulation Modeling  oldheathkitphil  Tubes / Valves  11  19th July 2007 02:12 PM 
HELP with Box Modeling Software  69stingray  MultiWay  5  1st January 2006 04:40 PM 
Need help with Modeling Software  Wright  MultiWay  26  17th November 2003 01:23 PM 
New To Site?  Need Help? 