• WARNING: Tube/Valve amplifiers use potentially LETHAL HIGH VOLTAGES.
    Building, troubleshooting and testing of these amplifiers should only be
    performed by someone who is thoroughly familiar with
    the safety precautions around high voltages.

Vacuum Tube SPICE Models

EL82 or 6P18P model?

I'm hoping for a triode model for 6P18P. I'd settle for EL82, as that is supposed to be the equivalent. I haven't been able to find either one. Maybe someone has a good model they'd like to share? If not, I wonder if I can go to the well again...

EL82 data sheet:
https://frank.pocnet.net/sheets/030/e/EL82.pdf

6P18P data sheet is attached (pdf).

Thanks!
--
 

Attachments

  • 6P18P.pdf
    164.3 KB · Views: 64
  • 6P18P-triode.png
    6P18P-triode.png
    151.2 KB · Views: 514
Ex-Moderator
Joined 2011
6P18P Triode SPICE Model

Code:
*
* Generic triode model: 6P18P_T_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Tue Oct 25 09:10:51 2016
*                  Anode
*                  | Grid
*                  | | Cathode
*                  | | |
.SUBCKT 6P18P_T_AN A G K
BGG   GG   0 V=V(G,K)+0.29755965
BM1   M1   0 V=(0.05636276*(URAMP(V(A,K))+1e-10))**-1.2853515
BM2   M2   0 V=(0.53853168*(URAMP(V(GG)+URAMP(V(A,K))/8.1874685)+1e-10))**2.7853515
BP    P    0 V=0.0041796459*(URAMP(V(GG)+URAMP(V(A,K))/15.203318)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0034271395*V(M1)*V(M2)
BIG   IG   0 V=0.0020898229*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.0025089064*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 11p
CGK   G    K 6p
CAK   A    K 0.2p
.ENDS
 
I'm looking for a SPICE model for the 12AV7. Here is a link to a datasheet with plate curves:

www.philbrickarchive.org/12av7_ge.pdf

Thanks to anyone who can help.
LTspice?
Code:
* 12AV7_GE LTSpice model
* Modified Koren model (8 parameters) mean fit error 0.196893mA
* Traced by Wayne Clay on 9/6/2007 using Curve Captor v0.9.1
* from General Electric data sheet
.subckt 12AV7_GE  P G K
    Bp  P K  I=(0.04444253322m)*uramp(V(P,K)*ln(1.0+(-0.01749849009)+exp((2.036595788)+(2.036595788)*((55.22041769)+(-202.4359155m)*V(G,K))*V(G,K)/sqrt((54.03527608)**2+(V(P,K)-(3.013036228))**2)))/(2.036595788))**(1.271149936)
  Cgk G K 3.8p ; (3.1p + .7p)
  Cpk P K 1.0p ; (0.5p + .5p)
  Cgp G P 2.6p ; (1.9p + .7p)
  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 12AV7_GE
 

Attachments

  • 12AV7_GE.lib.txt
    3.7 KB · Views: 80
Thanks, Wayne. Yes, I was looking for a model for LTspice.

I was also looking for models for the 7199, including both the triode and pentode sections. Somewhere along the way I came across a 7199T (triode) model you created using Curve Captor; here is that model:

Code:
* 7199T LTSpice model
* Triode section
* Koren model (5 parameters): mean fit error 0.221123mA
* Traced by Wayne Clay on 1/14/2014 using Curve Captor v0.9.1
* from Sylvania data sheet
.subckt 7199T_Syl  P G K
    Bp  P K  I=(0.01861318609m)*uramp(V(P,K)*ln(1.0+exp((0.720964335)+(0.720964335)*(62.874161)*V(G,K)/sqrt((0.712724332k)+(V(P,K))**2)))/(0.720964335))**(1.369823061)
  Cgp G P 2.2p ; 0.2p added
  Cgk G K 3.0p ; 0.7p added
  Cpk P K 0.5p ; 0.2p added
  Rpk P K 1G
  d3  G K dx1
.model dx1 d(is=1n rs=2k cjo=1pf N=1.5 tt=1n)
.ends 7199T
Would you also happen to have a model for the 7199 pentode section? I have an old Koren model that doesn't give realistic results when used in the original Dynaco ST-70 circuit.

Thanks again if you can help.
 
Would you also happen to have a model for the 7199 pentode section? I have an old Koren model that doesn't give realistic results when used in the original Dynaco ST-70 circuit.

Thanks again if you can help.
Here's one I made a few years ago. I haven't tinkered with it in quite some time, so YMMV. ;)
Code:
** 7199P ************************************************************
* Created on Sat Dec 21 06:56:50 EST 2013 using tube.model.finder.PaintKIP
* model URL: [URL]http://www.mif.pg.gda.pl/homepages/frank/sheets/168/7/7199.pdf[/URL]
* Screen grid modelled using Alexander L. Gurskii's method audioXpress issue Feb 2011
*--------------------------------------------------
.SUBCKT 7199P 1 4 2 3 ; P G2 G K
+ PARAMS: CCG=5.7p CPG1=0.56p CCP=2.5p RGI=2000
+ MU=140.384 EX=1.2599 KG1=280.0 KG2=660 KP=79.8 KVB=6.6 VCT=0 ; Vp_MAX=300.0 Ip_MAX=0.025 Vg_step=1.0
*--------------------------------------------------
RE1 7 0 1G
RE2 8 3 1G
E1 7 0 VALUE= ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(4,3)/KP*LN(1+EXP((1/MU+(V(2,3)+VCT)/V(4,3))*KP))}
G1 1 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG1*ATAN(V(1,3)/KVB)}
G2 8 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG2*(2.5708-ATAN(V(1,3)/KVB))}
E2 8 4 VALUE={0}
RCP 1 3 1G ; FOR CONVERGENCE
C1 2 3 {CCG} ; CATHODE-GRID 1
C2 1 2 {CPG1} ; GRID 1-PLATE
C3 1 3 {CCP} ; CATHODE-PLATE
R1 2 5 {RGI} ; FOR GRID CURRENT
D3 5 3 DX ; FOR GRID CURRENT
.MODEL DX D(IS=1N RS=1 CJO=10PF TT=1N)
.ENDS
 

Attachments

  • 30 (RCA).png
    30 (RCA).png
    241.1 KB · Views: 387
  • 31 (RCA).png
    31 (RCA).png
    145.7 KB · Views: 390
Ex-Moderator
Joined 2011
Type 30 SPICE Model

Code:
*
* Generic triode model: 30_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Dec 07 06:58:37 2016
*             Anode
*             | Grid
*             | | Cathode
*             | | |
.SUBCKT 30_AN A G K
BGG   GG   0 V=V(G,K)+-0.99984937
BM1   M1   0 V=(0.017746886*(URAMP(V(A,K))+1e-10))**-0.27002178
BM2   M2   0 V=(0.8474472*(URAMP(V(GG)+URAMP(V(A,K))/8.5960321)+1e-10))**1.7700218
BP    P    0 V=0.00034871006*(URAMP(V(GG)+URAMP(V(A,K))/10.143443)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0002194731*V(M1)*V(M2)
BIG   IG   0 V=0.00017435503*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.00022717265*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 5.7p
CGK   G    K 3.5p
CAK   A    K 2.7p
.ENDS
 
Ex-Moderator
Joined 2011
Type 31 SPICE Model

Code:
*
* Generic triode model: 31_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Dec 07 06:58:58 2016
*             Anode
*             | Grid
*             | | Cathode
*             | | |
.SUBCKT 31_AN A G K
BGG   GG   0 V=V(G,K)+0.40965691
BM1   M1   0 V=(0.039301583*(URAMP(V(A,K))+1e-10))**-0.23955032
BM2   M2   0 V=(0.86229182*(URAMP(V(GG)+URAMP(V(A,K))/3.5038839)+1e-10))**1.7395503
BP    P    0 V=0.00018231552*(URAMP(V(GG)+URAMP(V(A,K))/4.0634549)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.00011748305*V(M1)*V(M2)
BIG   IG   0 V=9.1157759e-05*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.0001624432*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 5.7p
CGK   G    K 3.5p
CAK   A    K 2.7p
.ENDS