```
*
* 6V6 tube has same curves as 6AQ5
* capacitances are slightly different
*
.SUBCKT 6V6 A S G K
+ PARAMS: Vn=4.683375986 Exd=1.498943398 Kd=5.985681E-04 Mua=135.8092472 Mug=0.792313597 Mus=7.857142857 Kp=7.41E-04
+ Ks=0.7455 Ex=1.429346869
+ Cgk=9.0P Cgs=8.0P Cga=0.7P Cak=7.5P
Eat at 0 VALUE={limit(0.636*ATAN(V(A,K)/{Vn}),0,1e6)} ; arctangent shaping
Eme me 0 VALUE={PWR(LIMIT(V(A,K),0,2000),{Exd})*{Kd}} ; the diode line
Egs gs1 0 VALUE={LIMIT(V(A,K)/{Mua}+V(S,K)/{Mus}+V(G,K)/{Mug},0,1E6)} ;the basic voltage
Egs2 gs2 0 VALUE={PWRS(V(gs1),{Ex})*{Kp}} ;raise to the power and mult by perveance
Ecath cc 0 VALUE={LIMIT(V(gs2)*V(at),0,V(me))} ;shaped per Eat and the diode line
*
* Calculate anode current
*
Ga A K VALUE={V(cc)}
*
* Calculate screen current
*
Escrn sc 0 VALUE={{Ks}*V(gs2)*(1.1-V(at))}; reverse arctangent shaping
Gs S K VALUE={V(sc)}
*
* Grid current
R1 G 5 1K ; FOR GRID CURRENT
D3 5 K Dx ; FOR GRID CURRENT
.MODEL Dx D(IS=1N RS=1 CJO=10PF TT=1N)
* Capacitances
C1 G K {Cgk}
C2 G S {Cgs}
C3 G A {Cga}
C4 A K {Cak}
.ENDS 6V6
*********************
*
* 6V6
* 28 Nov 2004
* new model based on measurements
* parameters revised 29 Nov 2004
*
**********************
.subckt 6V6GT A S G K
XV1 A S G K Pentode2
+ PARAMS: Ex=1.41031468452635 Mug=11.7888046293233 Mus=36.3212284562041 Kg1=1084.30402294001 Kp=36.0452435978759
+ Kvb=899.32403046434 Go=-0.467417459629955 Kd=0.000106867654972877 Exd=1.26175320982325 Exsd=0.425953018509995
+ C1=-2.85604234699625 A1=-5.68835011136307E-05 B1=3.49035244298882 X1=0.015108363529097 Y1=0.00926342558705693 Sr=0.198544592645026
+ Cgk=9P Cgs=5P Cga=0.7P Cak=7.5P
.ends 6V6GT
*******************
*
*
* This model is for pentodes with remote cutoff grid characteristics and with
* knees that blend into a smooth line, ie a diode line, typical of Beam type tubes.
*
* this model therefore uses Korens method for total current, and diode lines.
*
* default parameters are for the 6V6
*
* RCM 2004 November 28
* 2004 Nov 29 revised capture ratio formula to correct problem when Vg > Vp or Vg > Vs
*
************************
.Subckt Pentode2 A S G K
+ Params: Ex=1.42596448566733 Mug=11.7822188645457 Mus=27.5137445137459 Kg1=1447.15506010676 Kp=36.3066403677756
+ Kvb=756.918578086785 Go=-0.557407825110845 Kd=0.000103636138847149 Exd=1.26335466904983 Exsd=0.431363489073363
+ C1= -0.940657929992395 A1=-0.000127738832949614 B1=1.72299135911867 X1=0.0345083152949822 Y1= 0.0177418846473534 Sr=0.0471284218217744
+ Cgk=9P Cgs=5P Cga=0.7P Cak=7.5P
* calculate the total space current based on Koren's triode equations,
* but with an equivalent triode plate volatage equal to the pentode Vs + Vp/Mus
En1 n1 0 VALUE={(V(A,K)/Mus+V(S,K))/Kp*LN(1+EXP(Kp*(1/Mug+(V(G,K)-Go)/SQRT(Kvb+(V(A,K)/Mus+V(S,K))**2))))}
Esc sc 0 VALUE={ (PWR(V(n1),Ex)+PWRS(V(n1), Ex))/(Kg1) }
* calculate the plate current capture ratio
Ecr cr 0 Value={If(V(A,K)<=0,0,C1+A1*V(A,K)+B1*((limit(V(A,G),1,1e6)**X1)/(limit(V(S,G),1,1e6)**Y1)))}
* the tentative plate current is total space current multiplied by capture ratio
Ept pt 0 Value={V(sc)*V(cr)}
* calculate the diode line current
Ed d 0 value={Kd*V(A,K)**Exd*V(S,K)**Exsd}
* the actual Plate current is the lesser of pt and d
Ep p 0 value={Min(V(d),V(pt))}
Ga A K value={V(p)}
* calculate the screen current capture ratio
* if Vg <= 0 then the screen gets all the remaining current, otherwise the grid gets some
Escr scr 0 value={Limit(if(V(G,K)>0,1-Sr*V(G,K),1),0,1)}
* screen current is anything not captured by the plate, multiplied by screen capture ratio
Esg sg 0 value={(V(sc)-V(p))*V(scr)}
Gs S K value={V(sg)}
* grid current is anything not captured by the plate or the screen
Gg G K value={V(sc)-v(p)-V(sg)}
* interelectrode capacitances
C1 G K {Cgk}
C2 G S {Cgs}
C3 G A {Cga}
C4 A K {Cak}
.ENDS Pentode2
```