|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | 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 |
|
|
#1 |
|
diyAudio Member
Join Date: Dec 2002
Location: Canada
|
Hi,
I am looking for a few people to beta-test 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 Spice-compatible 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 non-existant at the moment. If interested, email me at frolov@cita.utoronto.ca. Replies might be slow (sorry...). |
|
|
|
#2 |
|
diyAudio Member
Join Date: Dec 2002
Location: Canada
|
And the curve tracer tool...
|
|
|
|
#3 | |
|
frugal-phile(tm)
diyAudio Moderator
|
Quote:
dave
__________________
community sites t-linespeakers.org, frugal-horn.com, frugal-phile.com ........ commercial site planet10-HiFi p10-hifi forum here at diyA |
|
|
|
|
#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.
|
|
|
|
#5 |
|
diyAudio Member
Join Date: Jul 2003
Location: Wayne, West Virginia
|
andrei
Very much interested! P-spice by any chance or 3f...? Wayne
|
|
|
|
#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 macro-based 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.) |
|
|
|
#7 |
|
diyAudio Member
Join Date: Apr 2005
Location: New York
|
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 semi-automated fashion. PSII: Feel free to e-mail at verdee@cshl.org if you consider this deviates from the objective of the original post. |
|
|
|
#8 | |
|
frugal-phile(tm)
diyAudio Moderator
|
Quote:
dave
__________________
community sites t-linespeakers.org, frugal-horn.com, frugal-phile.com ........ commercial site planet10-HiFi p10-hifi forum here at diyA |
|
|
|
|
#9 |
|
diyAudio Member
Join Date: Dec 2002
Location: Canada
|
Yes, original 5-parameter 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+(Vp-Vc)*(Vp-Vc))))/Kp]^gamma 4-parameter 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. |
|
|
|
#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 "e-3" 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 | Multi-Way | 5 | 1st January 2006 04:40 PM |
| Need help with Modeling Software | Wright | Multi-Way | 26 | 17th November 2003 01:23 PM |
| New To Site? | Need Help? |