Go Back   Home > Forums > Amplifiers > Tubes / Valves
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Tubes / Valves All about our sweet vacuum tubes :) Threads about Musical Instrument Amps of all kinds should be in the Instruments & Amps forum

diyAudio Sponsor

Search for a tube at thetubestore.com                            Product reviews and more

Audio tubes for any amplifier: from high end home audio to classic guitar amps.

Quick links by tube type: 12AX7, EL34, 6L6, KT66, 6550, KT88, EL84, 12AU7, 12AT7, 6922, 6H30, 300B, 6V6, 6SN7 

Reply
 
Thread Tools Search this Thread
Old 27th January 2006, 02:56 PM   #1
Joel is offline Joel  United States
diyAudio Member
 
Joel's Avatar
 
Join Date: Oct 2002
Location: Brooklyn, NY
Default Improvement to DM's Generic Triode Model for 12AU7

Click the image to open in full size.

By adjusting parameter values of Duncan Munro's "generic triode model" for the 12AU7, I was able to get it pretty close to the published plate curves. The base spice circuit before changes was WAY off. Like, not even close.
The AC performance seems pretty close too, but it's showing only about half the distortion than the Sylvania tube manual. No idea why.
Has anybody else done better? Or can you suggest which parameter to change to get the high current zone closer? I'm basically blindly changing things right now.

Thanks!
Joel


***********************************
12AU7 Test Circuit

.dc Vb 0 500 1 Vc 0 30 2

Vb 2 0 250v
Vk 3 0 0
Vc 0 1 8

x1 2 1 3 12au7

.subckt 12au7 a g k
* ANODE MODEL
BLIM LI 0 V=(URAMP(V(A)-V(K))^1)*0.0037
BGG GG 0 V=V(G)-V(K)-0
BRP1 RP1 0 V=URAMP(-V(GG)*0.024778659)
BRP2 RP2 0 V=V(RP1)-URAMP(V(RP1)-0.999)
BRPF RP 0 V=(1-V(RP2)^.68)+URAMP(V(GG))*0.1
BGR GR 0 V=URAMP(V(GG))-URAMP(-(V(GG)*(1+V(GG)*0.007)))
BEM EM 0 V=URAMP(V(A)-V(K)+V(GR)*16)
BEP EP 0 V=(V(EM)^1.35)*V(RP)*0.0000236
BEL1 EL1 0 V=URAMP(V(EP))
BEL EL 0 V=V(EL1)-URAMP(V(EL1)-V(LI))
BLD LD 0 V=URAMP(V(EP)-V(LI))
BAK A K I=V(EL)
* GRID MODEL
BGF GF 0 V=(URAMP(V(G)-V(K)-0)^1.5)*0.01
BG G K I=V(GF)+V(LD)
* CAPS
Cak a k 0.4pF
Cgk g k 1.6pF
Cga g a 1.5pF
.ends 12au7

.control
.endc
.probe
.end
  Reply With Quote
Old 11th August 2009, 03:22 PM   #2
diyAudio Member
 
Join Date: Nov 2006
why bother with a crappy tube like this?
  Reply With Quote
Old 13th August 2009, 01:03 AM   #3
diyAudio Member
 
Join Date: May 2005
Location: Stittsville, Ontario, Canada
Joel
A fairly long reply here, you pushed one of my buttons.

The curves look fairly good now, they are inaccurate at high currents, but notice that is an area above the max power curve
so you dont run load lines or operate the tube there much anyway. They are also inaccurate at high negative grid voltages,
but again a typical load line may not pass through much of that area. So in practical terms it may not matter, depending on
what you want to do with the model.

But I agree, you want to get the model as accurate as possible, so here are 4 suggestions.

1)
If you havent already done so, go to the DuncanAmps site and download the pdf file of Generic Triode Model Documentation.

This will give you a better idea of what each parameter does, and you can change them a little less "blindly". I dont set
parameters manually anymore, but when I did I would start by setting Mu0, Erp and EMC. And CDO if the 0 volt grid does not go
through 0,0. Then I would leave those alone, and play with RAf, RAS, Rap, Eri, and Mur. The high negative grid voltage
curves are affected by RAf and Ras.

2)
There is only so much you can do setting the parameters by hand. It is pretty subjective. Sometimes it is hard to say which
of two graphs is better, one looks good in one area, the other looks better in another area. And you are never really sure
when to stop fiddling around with it. So I set parameters using a spreadsheet set up to do a regression or curvefitting of
the model equations and parameters onto the measured data. And mathematically compute the accuracy of fit, so you can decide
which of several possible models you like best. Regression or curvefitting is a fairly broad subject in itself, perhaps you
already know that.

3)
for better accuracy you may want to use Korens or Rydels models. Duncan Munro's models are good, and they can be adjusted manually more easily than Korens or Rydels, but for any triode I have ever modeled I have usually got the best fit with one of Korens, sometimes one of Rydels, but Duncans has never been the best. ( It is also far from being the worst ). Search
this forum for "Curvecaptor" and download the program. Somebody on this group wrote the program to do datacapture from spec sheets and then do the mathematical curve fitting to come up with the parameters for Korens and Rydels models. And some others if I remember correctly. You may want to compare the fits to what you get with Duncans Generic Triode.
Or make your own do-it-yourself spread sheets as I do.

4)
No matter which model you use, or what method of deriving the parameters, it is always better if at all possible to work from
data measured from a real tube. I know this is not always possible. The graphs in spec sheets are hand drawn lines joining points with smooth curves. When you pick a pont on one of those lines you never know if you are getting the real data or an interpolated point. And is it all from one tube or is it averaged out ? It was plenty accurate enough for its original intention, but slight discrepancies in the data can really through off the model. I have always found it much easier to get a good fit to data I measure myself compared to data taken from a spec sheet. My suspicion is that the model has trouble fitting the spec sheet data because the spec sheet data doesnt fit, or come from, an actual tube. It comes from an averaged out set of data from many tubes. but in any event real measured data seems to make for a better model.
__________________
Robert McLean
  Reply With Quote
Old 13th August 2009, 03:43 AM   #4
Gordy is offline Gordy  United Kingdom
diyAudio Member
 
Join Date: Nov 2006
Default Re: Improvement to DM's Generic Triode Model for 12AU7

Edited. Ooops!
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
4E27 Triode connection SPICE model ja2dhc Tubes / Valves 3 6th June 2009 12:30 AM
Generic Switching PS nukaidee Parts 1 12th April 2009 07:06 AM
Another 3f4 spice triode model: 5718 submini triode wa2ise Tubes / Valves 0 5th September 2008 04:31 AM
triode thermodynamic model anli Tubes / Valves 8 24th August 2007 01:14 AM
Generic Amplifier PS Board jackinnj Power Supplies 7 3rd March 2005 11:53 PM


New To Site? Need Help?

All times are GMT. The time now is 10:38 PM.

Page generated in 0.08889 seconds (76.51% PHP - 23.49% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio