These I did using AF's software, Where to get it (you also need the TCL package): I've been using curvecaptor for triodes and diodes. But no support for pentodes unless they are triode connected. See http://sourceforge.net/projects/curvecaptor/ and http://sourceforge.net/project/showfiles.php?group_id=138442 This program is a bit hard to learn. What you need as source data is a gif image file of the plate curves. From the program you pick out which gif file, then with the mouse you start plotting data points onto the image file. First are voltages (Vp axis), then mouse up to a pull down menu to get into the plate current mode Ip axis), and after that "plate chasterictics curve". You can change the numbers in the little white boxes to the right of the menu selections. Vp and Ip increment, but Vg does not. To start on Vg set it to 0v and plant crosses (with clicking the mouse) at short intervals along the 0v grid curve. Then for say grid voltage at -2v you have to edit the Vg voltage in the little white box up top. The increment number doesn't do anything here. Then start clicking on the -2V grid curve. "Save Markers" fairly often, and you can use the cursor keys to fine tune the position of the current marker (the one you just planted). When I screw it up I revert to the last batch of saved markers. Eventually you get all the curves done, and then save markers and then at the bottom hit "capture curves" and then you see a list of numbers. Then hit "build model" and after about a half minute you'll see the program's best fit to one of about 8 template models. Then hit "see spice model" to get the model. On this screen, down below is a selection of several varieties of spice model code (3f4, ORCAD, Circuitmaker, and such). At this point just cut and paste (ctrl C and ctrl V) into your spice simulator. There are a few syntax sillyness you'll have to edit (like adding the X in front of the tube name). ********************************** * 6SU7 aka 6188 twin triode octal Syracuse Univ (my alma matar) .SUBCKT X6SU7 P G K Bp P K I=((0.001215378772/1.0e3)+(2.168783663e-005/1.0e3)*V(G,K))*uramp((68.72981286)*V(G,K)+V(P,K)+(45.86279849))^1.5 * V(P,K)/(V(P,K)+(3.649094098)) Cgp G P 1.5p Ci G K 1.5p Co P K 2.0p .ends X6SU7 ********************************************************************************* * 12u7 low voltage space charge dual triode .SUBCKT X12u7 P G K Bp P K I=(0.001972003403e-3)*uramp(V(P,K)*ln(1.0+(0.001530503245)+exp((0.03859673121)+(0.03859673121)*((564.8225939)+(-114911.4871e-3)*V(G,K))*V(G,K)/sqrt((15.44447752)^2+(V(P,K)-(8.343447975))^2)))/(0.03859673121))^(1.148627719) CPK P K 0.0000000000004 CGK G K 0.0000000000016 CGP G P 0.0000000000015 .ends X12u7 ***************************************************************************** * 6021 submini twin triode mu=35 .SUBCKT X6021z P G K Bp P K I=(0.007237439803e-3)*uramp(V(P,K)*ln(1.0+(0.02398363722)+exp((2.884836093)+(2.884836093)*((42.12840035)+(-332.3837771e-3)*V(G,K))*V(G,K)/sqrt((3.013312381e-006)^2+(V(P,K)-(-10.83109222))^2)))/(2.884836093))^(1.626318011) CPK P K 0.00000000000028 CGK G K 0.0000000000007 CGP G P 0.0000000000015 .ends X6021z ******************************************************************************** * below is a 12AX7 style triode running on 80% of its normal heater voltage, improves linearity. * 12av6-10vh Spice 3F4 model .SUBCKT X12av6-10vh P G K Bp P K I=(0.008002535364e-3)*uramp(V(P,K)*ln(1.0+(0.1781769699)+exp((4.808478051)+(4.808478051)*((80.28638516)+(-6220.101955e-3)*V(G,K))*V(G,K)/sqrt((71.2061203)^2+(V(P,K)-(51.18537952))^2)))/(4.808478051))^(1.174758456) Cgk G K 2.2P Cgp G P 2P Cpk P K 0.8P .ends X12av6-10vh ************************************************************************************ *Below is a detector diode running on 2/3 normal heater voltage, improves detector performance. * 5896 4v on 6.3 heater not valid over 30ma; with contact potential .SUBCKT X5896-4hv P K Bp P K I=(1.259102866e-3)*uramp(V(P,K)+(0.6788214279))^1.5 .ends X5896-4hv ********************************************************************************** * 12FM6 Space charge low voltage triode .SUBCKT X12FM6 P G K Bp P K I=(0.001097962853e-3)*uramp(V(P,K)*ln(1.0+(0.06123349699)+exp((0.02161200134)+(0.02161200134)*((23.7503614)+(-156710.2813e-3)*V(G,K))*V(G,K)/sqrt((-6.356755714)^2+(V(P,K)-(6.569413423))^2)))/(0.02161200134))^(1.51472413) CPK P K 0.0000000000004 CGK G K 0.0000000000016 CGP G P 0.0000000000017 .ends X12FM6 ********************************************************************************* * 12SX7 24V B+ twin triode octal .SUBCKT X12SX7 P G K Bp P K I=((0.01097953523e-3)+(0.0003895032256e-3)*V(G,K))*uramp((17.13360658)*V(G,K)+V(P,K)+(3.846289839))^1.5 * V(P,K)/(V(P,K)+(0.1639607917)) .ends X12SX7 ******************************************************************************* * 5719 submini triode .SUBCKT X5719 P G K Bp P K I=(0.005011967444e-3)*uramp(V(P,K)*ln(1.0+(-0.144350709)+exp((0.5267311759)+(0.5267311759)*((204.5811422)+(-19475.57678e-3)*V(G,K))*V(G,K)/sqrt((34.64425083)^2+(V(P,K)-(16.0737452))^2)))/(0.5267311759))^(1.265511789) Cgk G K 0.9P Cgp G P 0.8P Cpk P K 0.8P .ends X5719 ************************************************************************* * 5977 submini triode mu=16 .SUBCKT X5977 P G K Bp P K I=(0.02262257289e-3)*uramp(V(P,K)*ln(1.0+(-0.007511776507)+exp((0.6943730294)+(0.6943730294)*((34.2388798)+(-1417.064153e-3)*V(G,K))*V(G,K)/sqrt((27.23122464)^2+(V(P,K)-(31.27837889))^2)))/(0.6943730294))^(1.392692408) CPK P K 0.00000000000005 CGK G K 0.0000000000007 CGP G P 0.0000000000013 .ends X5977 ******************************************************************************** * 12AX7-10vh triode running on 80% of its normal heater voltage, improves linearity. .SUBCKT X12AX7-10vh P G K Bp P K I=(0.008002535364e-3)*uramp(V(P,K)*ln(1.0+(0.1781769699)+exp((4.808478051)+(4.808478051)*((80.28638516)+(-6220.101955e-3)*V(G,K))*V(G,K)/sqrt((71.2061203)^2+(V(P,K)-(51.18537952))^2)))/(4.808478051))^(1.174758456) Cgk G K 1.6P Cgp G P 1.7P Cpk P K 0.46P .ends X12AX7-10vh ********************************************************************************* * DM160 submini triode indicator tube voltages referenced from f- pin filament 1V@30ma .SUBCKT XDM160 P G K Bp P K I=(0.000464446935e-3)*uramp(V(P,K)*ln(1.0+(0.4339117469)+exp((8.233718543)+(8.233718543)*((23.65815035)+(-3615.678394e-3)*V(G,K))*V(G,K)/sqrt((15.83218165)^2+(V(P,K)-(6.970385777))^2)))/(8.233718543))^(1.737757845) .ends XDM160 ********************************************************************************* * 8B10t compactron triode .SUBCKT X8B10t P G K Bp P K I=(0.02946188252e-3)*uramp(V(P,K)*ln(1.0+(-0.06691891608)+exp((2.78212081)+(2.78212081)*((26.21856816)+(68.83495604e-3)*V(G,K))*V(G,K)/sqrt((58.66428266)^2+(V(P,K)-(12.44657854))^2)))/(2.78212081))^(1.342093468) Cgk G K 1.7P Cgp G P 1.5P Cpk P K 0.9P .ends X8B10t ********************************************************************************* * 6B10 diodes (common cathode) one diode section .SUBCKT X6B10diode P K Bp P K I=(1.437120118e-3)*uramp(V(P,K)+(0.6846418964))^1.5 Cpk P K 1.85P .ends X6B10diode ****************************************************************************** * this triode was sometimes incorrectly relabeled "6DJ8" even though it's not linear. * 6es8 remote cutoff twin triode .SUBCKT X6es8 P G K Bp P K I=(0.001005591984e-3)*uramp(V(P,K)*ln(1.0+(0.02961245073)+exp((0.01996309238)+(0.01996309238)*((3342.440161)+(-66849.37202e-3)*V(G,K))*V(G,K)/sqrt((23.77317554)^2+(V(P,K)-(11.37824638))^2)))/(0.01996309238))^(1.307668617) Cgk G K 1.7P Cgp G P 1.85P Cpk P K 0.18P .ends X6es8 ***************************************************************************** * 6DJ8 twin triode .SUBCKT X6DJ8 P G K Bp P K I=(0.06867321543e-3)*uramp(V(P,K)*ln(1.0+(-0.03262478644)+exp((7.453794563)+(7.453794563)*((31.84399594)+(-13.80505589e-3)*V(G,K))*V(G,K)/V(P,K)))/(7.453794563))^(1.37713474) C1 G K 3.1E-12 C2 G P 1.4E-12 C3 P K 0.18E-12 .ends X6DJ8 ***************************************************************************** A triode connected directly heated pentode, headphone power * 3S4 triode connected g2 tied to plate .SUBCKT X3S4triodecon P G K Bp P K I=(0.004669140316e-3)*uramp(V(P,K)*ln(1.0+(-0.6477963488)+exp((0.5567953492)+(0.5567953492)*((9.32815242)+(40.45872668e-3)*V(G,K))*V(G,K)/sqrt((8.34532004)^2+(V(P,K)-(-8.556296627))^2)))/(0.5567953492))^(1.954205081) .ends X3S4triodecon ********************************************************************************** Another triode connected directly heated pentode, signal level * 5678 triode connected g2 tied to plate .SUBCKT X5678triodecon P G K Bp P K I=(0.005808385501e-3)*uramp(V(P,K)*ln(1.0+(0.1523678439)+exp((6.561017549)+(6.561017549)*((19.59958179)+(-568.6362049e-3)*V(G,K))*V(G,K)/sqrt((14.94140846)^2+(V(P,K)-(5.591685641))^2)))/(6.561017549))^(1.472940348) .ends X5678triodecon ********************************************************************************** Here's a space charge tetrode. G1 is the space charge grid, g2 is control grid: * 12k5 space charge grid tetrode control grid is G2, G1 is space charger .SUBCKT X12k5 P G S K Bp P K I=(V(S,K)/12.6)*(7.558351405e-3)*sqrt(uramp(V(P,K)*((ln(1.0+(-0.006442986038)+exp((1.176225304)+(1.176225304)*((11.74977827)+(-2149.490118e-3)*V(G,K))*V(G,K)/sqrt((0.4617143016)^2+(V(P,K)-(-0.302112214))^2)))/(1.176225304))^(1.0)))) Bs S K I=0.69E-2*V(S,K) .ends X12k5 ********************************************************************************* * 12ac10 compactron triple triode .SUBCKT X12ac10a P G K Bp P K I=(0.009372515172/1.0e3)*uramp(V(P,K)*ln(1.0+(-0.01993172256)+exp((0.4720953991)+(0.4720953991)*((207.0400836)+(-10666.91425/1.0e3)*V(G,K))*V(G,K)/sqrt((56.40777266)^2+(V(P,K)-(47.07229206))^2)))/(0.4720953991))^(1.284876237) CAK P K 0.00000000000036 CGK G K 0.0000000000025 CGA G P 0.0000000000012 .ends X12ac10a ************************************************************************************** * ecc86 low voltage space charge twin triode .SUBCKT Xecc86 P G K Bp P K I=((0.06562118977e-3)+(0.02578214596e-3)*V(G,K))*uramp((11.96357083)*V(G,K)+V(P,K)+(4.788557291))^1.5 * V(P,K)/(V(P,K)+(0.3979086119)) Cgp G P 1.3p Ci G K 1.7p Co P K 0.5p .ends Xecc86 ********************************************************************************* * 12BH7 Spice 3F4 model .SUBCKT X12BH7 P G K Bp P K I=(0.03940456786e-3)*uramp(V(P,K)*ln(1.0+(-0.02907465313)+exp((1.415952086)+(1.415952086)*((33.25526513)+(-202.6444683e-3)*V(G,K))*V(G,K)/sqrt((-5.511777884e-006)^2+(V(P,K)-(6.687046257))^2)))/(1.415952086))^(1.347174707) C1 G K 3.1E-12 C2 G P 2.6E-12 C3 P K 0.5E-12 .ends X12BH7 ******************************************************************************* * 6gm8 low voltage twin triode low mu Spice 3F4 model, alt to ecc86 above .SUBCKT X6GM8 P G K Bp P K I=((0.0652280007e-3)+(0.02616312706e-3)*V(G,K))*uramp((12.19320993)*V(G,K)+V(P,K)+(5.225386744))^1.5 * V(P,K)/(V(P,K)+(0.599401572)) Cgk G K 1.7P Cgp G P 1.3P Cpk P K 0.5p .ends X6GM8 ********************************************************************************* * 6GU7 Spice 3F4 model .SUBCKT X6GU7 P G K Bp P K I=(0.06810278442e-3)*uramp(V(P,K)*ln(1.0+(-0.07171045201)+exp((2.250885686)+(2.250885686)*((22.31757643)+(-193.4922211e-3)*V(G,K))*V(G,K)/sqrt((48.95241165)^2+(V(P,K)-(24.3417218))^2)))/(2.250885686))^(1.260156564) Cgk G K 3.4P Cgp G P 3P Cpk P K 0.44p .ends X6GU7 ********************************************************************** * 6HA5 CircuitMaker model .SUBCKT X6HA5 P G K Bp P K I=(0.01730302098/1.0e3)*uramp(V(P,K)*ln(1.0+(0.03890003357)+exp((0.2572565811)+(0.2572565811)*((678.7678396)+(-30581.65581/1.0e3)*V(G,K))*V(G,K)/sqrt((-1.477553735)^2+(V(P,K)-(-22.89248572))^2)))/(0.2572565811))^(1.23191758) Cgk G K 3.1P Cgp G P 0.365P Cpk P K 0.08P .ends X6HA5 ***************************************************************** * 7719 triode Spice 3F4 model mu=25, Gm = 3500, Rp = 7100 pinout looks like a twin triode (like a 12AU7) except with both cathodes, grids, and plates shorted together, respectively. .SUBCKT X7719 P G K Bp P K I=(0.02155032103/1.0e3)*uramp(V(P,K)*ln(1.0+(-0.02409617047)+exp((4.11077476)+(4.11077476)*((29.68431589)+(-226.3229273/1.0e3)*V(G,K))*V(G,K)/sqrt((4.564710556e-006)^2+(V(P,K)-(5.978004682))^2)))/(4.11077476))^(1.625508506) Cgk G K 1.1P Cgp G P 5.5P Cpk P K 0.8P .ends X7719 **************************************************************************