Gregg wrote:
You're the best Robert, thanks! :-)
Thanks again.
Got time for a 6EJ7 triode mode, based on Serpentine's plate curves? I
tried to make it, but again, my Spice kept segfaulting :-(
This below looks pretty close (I did it to the pentode
curves and Sepertine's triode mode curves):
*Vacuum Tube pentode aka ef184 (assumes K tied to g3)
..SUBCKT X6EJ7 A S G K
*
* Calculate contribution to cathode current
*
*the number at the right end determines sharpness of knee
Bat at 0 V=0.636*ATAN(V(A,K)/32)
*the URAMP(V(S,K)/# mostly determines peak plate current, grid line
spacing nearly constant
*the number at the right end determines slope of grid lines (plate
resistance)
Bgs gs 0 V=URAMP(V(S,K)/42.8+V(G,K)*1.55+V(A,K)/9000)
*the exponent sets the linearity of grid line spacing, and big impact on
peak plate currrent
Bgs2 gs2 0 V=V(gs)^ 1.5
Bcath cc 0 V=V(gs2)*V(at)
*
* Calculate anode current, grid line spacing adjust and peak plate current
*
Ba A K I=7.985E-3*V(cc)
*
* Calculate screen current
*
Bscrn sc 0 V=V(gs2)*(1.1-V(at))
Bs S K I=0.20E-2*V(sc)
*
* Grid current (approximation - does not model low va/vs)
*
Bg G K I=(URAMP(V(G,K)+1)^1.5)*50E-6
*
* Capacitances
*
Cg1 G K 10p
Cak A K 3p
Cg1a G A 0.0055p
..ENDS X6EJ7
********************
Also can be found at the bottom of my updated page:
http://home.netcom.com/~wb2jia/tubes/spice.txt