Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki 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

Vacuum Tube SPICE Models
Vacuum Tube SPICE Models
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
Reply
 
Thread Tools Search this Thread
Old 25th October 2017, 05:11 PM   #1521
jazbo8 is offline jazbo8
diyAudio Moderator
 
jazbo8's Avatar
 
Join Date: Jan 2011
Location: In Transient
Vacuum Tube SPICE Models
Default 12B4 SPICE Model

Code:
*
* Generic triode model: 12B4_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Oct 25 19:11:01 2017
*               Anode
*               | Grid
*               | | Cathode
*               | | |
.SUBCKT 12B4_AN A G K
BGG   GG   0 V=V(G,K)+0.99633808
BM1   M1   0 V=(0.08624954*(URAMP(V(A,K))+1e-10))**-1.1787665
BM2   M2   0 V=(0.55995921*(URAMP(V(GG)+URAMP(V(A,K))/5.1019494)+1e-10))**2.6787665
BP    P    0 V=0.0045829947*(URAMP(V(GG)+URAMP(V(A,K))/9.1112876)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0034496543*V(M1)*V(M2)
BIG   IG   0 V=0.0022914974*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4)
BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0030663387*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 4.8p
CGK   G    K 5p
CAK   A    K 1.5p
.ENDS
  Reply With Quote
Old 25th October 2017, 05:16 PM   #1522
rongon is offline rongon  United States
diyAudio Member
 
rongon's Avatar
 
Join Date: Jul 2009
Location: Across the river from Rip's big old tree...
That's a brand new 12B4A model. Do you think that's better than the previous one in the pctube zip file?
  Reply With Quote
Old 25th October 2017, 05:21 PM   #1523
jazbo8 is offline jazbo8
diyAudio Moderator
 
jazbo8's Avatar
 
Join Date: Jan 2011
Location: In Transient
Vacuum Tube SPICE Models
Default 6T4 SPICE Model

Code:
*
* Generic triode model: 6T4_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Oct 25 19:21:03 2017
*              Anode
*              | Grid
*              | | Cathode
*              | | |
.SUBCKT 6T4_AN A G K
BGG   GG   0 V=V(G,K)+0.51407227
BM1   M1   0 V=(0.074519235*(URAMP(V(A,K))+1e-10))**-1.502531
BM2   M2   0 V=(0.49957852*(URAMP(V(GG)+URAMP(V(A,K))/6.715333)+1e-10))**3.002531
BP    P    0 V=0.002492787*(URAMP(V(GG)+URAMP(V(A,K))/13.441997)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0024991095*V(M1)*V(M2)
BIG   IG   0 V=0.0012463935*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4)
BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0015296761*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 1.7p
CGK   G    K 2.9p
CAK   A    K 0.2p
.ENDS
  Reply With Quote
Old 25th October 2017, 05:22 PM   #1524
jazbo8 is offline jazbo8
diyAudio Moderator
 
jazbo8's Avatar
 
Join Date: Jan 2011
Location: In Transient
Vacuum Tube SPICE Models
Quote:
Originally Posted by rongon View Post
That's a brand new 12B4A model. Do you think that's better than the previous one in the pctube zip file?
I forgot to check, so they should be the same...
  Reply With Quote
Old 25th October 2017, 10:46 PM   #1525
rongon is offline rongon  United States
diyAudio Member
 
rongon's Avatar
 
Join Date: Jul 2009
Location: Across the river from Rip's big old tree...
They are a little bit different. Not huge differences.

First version (from pctube zip file dated March 8, 2008):
Code:
*
* Generic triode model: 12B4_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Sat Mar  8 22:41:12 2008
*                Plate
*                | Grid
*                | | Cathode
*                | | |
.SUBCKT 12B4_AN A G K
BGG   GG   0 V=V(G,K)+1
BM1   M1   0 V=(0.087065329*(URAMP(V(A,K))+1e-10))**-1.2036947
BM2   M2   0 V=(0.55479636*(URAMP(V(GG)+URAMP(V(A,K))/5.1134435)+1e-10))**2.7036947
BP    P    0 V=0.0047680512*(URAMP(V(GG)+URAMP(V(A,K))/9.2167935)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0036584566*V(M1)*V(M2)
BIG   IG   0 V=0.0023840256*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4)
BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0031806909*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 4.8p
CGK   G    K 5p
CAK   A    K 1.5p
.ENDS

This last version (dated Oct 25, 2017):
Code:
*
* Generic triode model: 12B4_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Oct 25 19:11:01 2017
*               Anode
*               | Grid
*               | | Cathode
*               | | |
.SUBCKT 12B4_AN A G K
BGG   GG   0 V=V(G,K)+0.99633808
BM1   M1   0 V=(0.08624954*(URAMP(V(A,K))+1e-10))**-1.1787665
BM2   M2   0 V=(0.55995921*(URAMP(V(GG)+URAMP(V(A,K))/5.1019494)+1e-10))**2.6787665
BP    P    0 V=0.0045829947*(URAMP(V(GG)+URAMP(V(A,K))/9.1112876)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0034496543*V(M1)*V(M2)
BIG   IG   0 V=0.0022914974*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4)
BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0030663387*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 4.8p
CGK   G    K 5p
CAK   A    K 1.5p
.ENDS
Different enough to make a difference?
--
  Reply With Quote
Old 26th October 2017, 06:35 AM   #1526
jazbo8 is offline jazbo8
diyAudio Moderator
 
jazbo8's Avatar
 
Join Date: Jan 2011
Location: In Transient
Vacuum Tube SPICE Models
I doubt it, considering the tube tolerence. Either one should do the job.
  Reply With Quote
Old 26th October 2017, 09:03 PM   #1527
rongon is offline rongon  United States
diyAudio Member
 
rongon's Avatar
 
Join Date: Jul 2009
Location: Across the river from Rip's big old tree...
Cool. That means we have two models to use for that one type, which can be used to model slightly dissimilar triodes in an LTP, for instance, just by choosing one of each version of that type from the device menu. Works for me!
  Reply With Quote
Old 29th October 2017, 09:00 PM   #1528
cogsncogs is offline cogsncogs  United States
diyAudio Member
 
cogsncogs's Avatar
 
Join Date: Jul 2003
Location: Wayne, West Virginia
Quote:
Originally Posted by dirkwright View Post
I'm sorry, I can't find any spice models for the 6AF4 or 6T4. It looks like these are all equivalents, but I have not studied them in detail. If anyone has a model for the 6AF4 or 6T4, I'd be really happy to have it, thanks.
The 6T4 and 12B4 models posted by jazbo8 should work in TI.

Below are my 6AF4A, 6T4 and 12B4A models in Spice 3f4 format for use in TI. To use in LTspice change all instances of "^" to "**", without the quotes.

6AF4A:
Code:
*
* 6AF4A UHF triode Spice 3F4 model
* Modified Koren model (8 parameters) mean fit error 0.125726mA
* Traced using Curve Captor v0.9.1 by Wayne Clay on 09/30/2006
* from General Electric data sheet
*              Plate
*              | Grid
*              | | Cathode
*              | | |
.subckt 6AF4A  P G K
    Bp  P K  I=
+ (0.1611586566m)*uramp(V(P,K)*ln(1.0+(-0.02062628498)+exp((2.496023586)+
+ (2.496023586)*((17.06436679)+(-15.25965134m)*V(G,K))*V(G,K)/sqrt((16.25821586)^2+
+ (V(P,K)-(-0.4682646032))^2)))/(2.496023586))^(1.251660461)
  Cgp G P 2.6p ; 0.7p added
  Cgk G K 2.9p ; 0.7p added
  Cpk P K 1.9p ; 0.5p added
  Rpk P K 1G ; to avoid floating nodes
  d3  G K dx1
.model dx1 d(is=1n rs=2k cjo=1pf N=1.5 tt=1n)
.ends 6AF4A
6T4:
Code:
*
* 6T4 Spice 3F4 model
* Modified Koren model (8 parameters): mean fit error 0.494813mA
* Traced by Wayne Clay on 9/8/2007 using Curve Captor v0.9.1
* from Sylvania data sheet
*            Plate
*            | Grid
*            | | Cathode
*            | | |
.subckt 6T4  P G K
    Bp  P K  I=
+ (0.000134918778m)*uramp(V(P,K)*ln(1.0+(-0.09760272839)+exp((0.0164518854)+
+ (0.0164518854)*((1070.31832)+(78.92233257m)*V(G,K))*V(G,K)/sqrt((57.19371883)^2+
+ (V(P,K)-(8.743638001))^2)))/(0.0164518854))^(1.565722555)
    Cgp G P 2.1p ; 0.2p added
    Cgk G K 3.6p ; 0.7p added
    Cpk P K 0.45p ; 0.2p added
    Rpk P K 1G ; to avoid floating nodes
    d3  G K dx1
.model dx1 d(is=1n rs=2k cjo=1pf N=1.5 tt=1n)
.ends 6T4
12B4A:
Code:
*
* 12B4A Spice 3F4 model
* Modified Koren model (8 parameters): mean fit error 0.484782mA
* Traced by Wayne Clay on 9/7/2006 using Curve Captor v0.9.1
* from General Electric datasheet.
*              Plate
*              | Grid
*              | | Cathode
*              | | |
.subckt 12B4A  P G K
    Bp  P K  I=
+ (0.3356616153m)*uramp(V(P,K)*ln(1.0+(-0.06344506052)+exp((4.347600947)+
+ (4.347600947)*((7.172008489)+(-12.73970121m)*V(G,K))*V(G,K)/sqrt((42.51568199)^2+
+ (V(P,K)-(19.98899827))^2)))/(4.347600947))^(1.207143141)
    Cgk G K 5.0p
    Cgp G P 4.8p
    Cpk P K 1.5p
    Rpk P K 1.0G ; to avoid floating nodes
    d3  G K dx1
.model dx1 d(is=1n rs=2k cjo=1pf N=1.5 tt=1n)
.ends 12B4A
__________________
Sent from my Linux desktop computer using a keyboard and a mouse.

Last edited by cogsncogs; 29th October 2017 at 09:03 PM.
  Reply With Quote
Old 30th October 2017, 02:49 PM   #1529
dirkwright is offline dirkwright  United States
diyAudio Member
 
dirkwright's Avatar
 
Join Date: May 2011
Location: Virginia
Thanks so much!
Best Regards, Dirk
  Reply With Quote
Old 30th October 2017, 08:15 PM   #1530
cogsncogs is offline cogsncogs  United States
diyAudio Member
 
cogsncogs's Avatar
 
Join Date: Jul 2003
Location: Wayne, West Virginia
For those who prefer/want an Ayumi 6AF4A model.

Traced from General Electric 6AF4A datasheet.
Code:
*
* Generic triode model: 6AF4A
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Mon Oct 30 15:55:01 2017
*                Plate
*                | Grid
*                | | Cathode
*                | | |
.SUBCKT 6AF4A_AN A G K
BGG   GG   0 V=V(G,K)+0.57582328
BM1   M1   0 V=(0.092328554*(URAMP(V(A,K))+1e-10))**-2.2616446
BM2   M2   0 V=(0.39876175*(URAMP(V(GG)+URAMP(V(A,K))/6.5119426)+1e-10))**3.7616446
BP    P    0 V=0.0032769425*(URAMP(V(GG)+URAMP(V(A,K))/16.330409)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0082945898*V(M1)*V(M2)
BIG   IG   0 V=0.0016384713*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4)
BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0019440308*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 1.9p
CGK   G    K 2.2p
CAK   A    K 1.4p
.ENDS
Attached Images
File Type: png 6AF4A-Rplot.png (12.3 KB, 243 views)
__________________
Sent from my Linux desktop computer using a keyboard and a mouse.
  Reply With Quote

Reply


Vacuum Tube SPICE ModelsHide this!Advertise here!
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tube spice models nhuwar Tubes / Valves 45 25th November 2011 08:47 AM
Computer program for tube curves and Spice models Jim Tonne Software Tools 9 21st November 2010 10:10 AM
Spice models stinius Solid State 0 18th November 2008 09:07 PM
Got my tube spice models, and tubed CD player page back on the air wa2ise Tubes / Valves 2 20th April 2008 11:07 PM


New To Site? Need Help?

All times are GMT. The time now is 03:53 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki