
Home  Forums  Rules  Articles  diyAudio Store  Blogs  Gallery  Wiki  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 
25th October 2017, 05:11 PM  #1521 
diyAudio Moderator

12B4 SPICE Model
Code:
* * Generic triode model: 12B4_AN * Copyright 20032008 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))+1e10))**1.1787665 BM2 M2 0 V=(0.55995921*(URAMP(V(GG)+URAMP(V(A,K))/5.1019494)+1e10))**2.6787665 BP P 0 V=0.0045829947*(URAMP(V(GG)+URAMP(V(A,K))/9.1112876)+1e10)**1.5 BIK IK 0 V=U(V(GG))*V(P)+(1U(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)))+1e10*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 
25th October 2017, 05:16 PM  #1522 
diyAudio Member

That's a brand new 12B4A model. Do you think that's better than the previous one in the pctube zip file?

25th October 2017, 05:21 PM  #1523 
diyAudio Moderator

6T4 SPICE Model
Code:
* * Generic triode model: 6T4_AN * Copyright 20032008 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))+1e10))**1.502531 BM2 M2 0 V=(0.49957852*(URAMP(V(GG)+URAMP(V(A,K))/6.715333)+1e10))**3.002531 BP P 0 V=0.002492787*(URAMP(V(GG)+URAMP(V(A,K))/13.441997)+1e10)**1.5 BIK IK 0 V=U(V(GG))*V(P)+(1U(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)))+1e10*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 
25th October 2017, 05:22 PM  #1524 
diyAudio Moderator


25th October 2017, 10:46 PM  #1525 
diyAudio Member

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 20032008 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))+1e10))**1.2036947 BM2 M2 0 V=(0.55479636*(URAMP(V(GG)+URAMP(V(A,K))/5.1134435)+1e10))**2.7036947 BP P 0 V=0.0047680512*(URAMP(V(GG)+URAMP(V(A,K))/9.2167935)+1e10)**1.5 BIK IK 0 V=U(V(GG))*V(P)+(1U(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)))+1e10*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 20032008 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))+1e10))**1.1787665 BM2 M2 0 V=(0.55995921*(URAMP(V(GG)+URAMP(V(A,K))/5.1019494)+1e10))**2.6787665 BP P 0 V=0.0045829947*(URAMP(V(GG)+URAMP(V(A,K))/9.1112876)+1e10)**1.5 BIK IK 0 V=U(V(GG))*V(P)+(1U(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)))+1e10*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  
26th October 2017, 06:35 AM  #1526 
diyAudio Moderator

I doubt it, considering the tube tolerence. Either one should do the job.

26th October 2017, 09:03 PM  #1527 
diyAudio Member

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!

29th October 2017, 09:00 PM  #1528  
diyAudio Member
Join Date: Jul 2003
Location: Wayne, West Virginia

Quote:
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 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 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. 

30th October 2017, 02:49 PM  #1529 
diyAudio Member
Join Date: May 2011
Location: Virginia

Thanks so much!
Best Regards, Dirk
__________________
photos of my work: https://www.facebook.com/SwetoneAudio my blog: https://plus.google.com/u/0/b/111642...44611308/signatures 
30th October 2017, 08:15 PM  #1530 
diyAudio Member
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 20032008 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))+1e10))**2.2616446 BM2 M2 0 V=(0.39876175*(URAMP(V(GG)+URAMP(V(A,K))/6.5119426)+1e10))**3.7616446 BP P 0 V=0.0032769425*(URAMP(V(GG)+URAMP(V(A,K))/16.330409)+1e10)**1.5 BIK IK 0 V=U(V(GG))*V(P)+(1U(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)))+1e10*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
__________________
Sent from my Linux desktop computer using a keyboard and a mouse. 
Thread Tools  Search this Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Vacuum tubes SPICE models, another way  Dominique_free  Software Tools  2  12th November 2013 06:26 PM 
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 
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? 