• 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

Ex-Moderator
Joined 2011
Just the pentode model, but you can use it with an UL OPT or VCVS to get the UL curves.

Code:
*
* Generic pentode model: EL84_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Wed Feb 12 10:18:18 2014
*               Plate
*               | Screen Grid
*               | |  Control Grid
*               | |  |  Cathode
*               | |  |  |
.SUBCKT EL84_AN A G2 G1 K
BGG   GG   0 V=V(G1,K)+0.03372597
BM1   M1   0 V=(0.014266539*(URAMP(V(G2,K))+1e-10))**-0.43210132
BM2   M2   0 V=(0.7763568*(URAMP(V(GG)+URAMP(V(G2,K))/15.676066)))**1.9321013
BP    P    0 V=0.0040800354*(URAMP(V(GG)+URAMP(V(G2,K))/20.191832))**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0023829269*V(M1)*V(M2)
BIG   IG   0 V=0.0020400177*URAMP(V(G1,K))**1.5*(URAMP(V(G1,K))/(URAMP(V(A,K))+URAMP(V(G1,K)))*1.2+0.4)
BIK2  IK2  0 V=V(IK,IG)*(1-0.4*(EXP(-URAMP(V(A,K))/URAMP(V(G2,K))*15)-EXP(-15)))
BIG2T IG2T 0 V=V(IK2)*(0.904015183*(1-URAMP(V(A,K))/(URAMP(V(A,K))+10))**1.5+0.095984817)
BIK3  IK3  0 V=V(IK2)*(URAMP(V(A,K))+2486)/(URAMP(V(G2,K))+2486)
BIK4  IK4  0 V=V(IK3)-URAMP(V(IK3)-(0.0023468355*(URAMP(V(A,K))+URAMP(URAMP(V(G2,K))-URAMP(V(A,K))))**1.5))
BIP   IP   0 V=URAMP(V(IK4,IG2T)-URAMP(V(IK4,IG2T)-(0.0023468355*URAMP(V(A,K))**1.5)))
BIAK  A    K I=V(IP)+1e-10*V(A,K)
BIG2  G2   K I=URAMP(V(IK4,IP))
BIGK  G1   K I=V(IG)
* CAPS
CGA   G1  A  0.5p
CGK   G1  K  6.6p
C12   G1  G2 4.4p
CAK   A   K  6.5p
.ENDS
 
Thank jazbo8.
Yes, I'm doing something with Ayumi model but the results are too good. I can not believe it :)
I'm trying to simulate a small amp. I need something for the weekend listening.
 

Attachments

  • pic1.jpg
    pic1.jpg
    71.3 KB · Views: 1,115
Ex-Moderator
Joined 2011
The model scales up/down with different Ug2, see the other graphs at different Ug2 (i.e. model versus traced):
Ale

Like you said, it could be just due to the wide sample variance... I have asked about this before, but shouldn't the traced models be re-adjusted to matched the commonly available datasheets, i.e., a "bogey" tube? Otherwise, we run the risk of having a bunch of "one-off" models, which may cause some confusion for those that aren't aware of the origins of those models. Sorry to sound like a broken record...:p
 
Last edited:
Ex-Moderator
Joined 2011
I should have aimed to find a valve that matched closer to the datasheet. I may do that and rerun in future but don't have too much time unfortunately. At least here is a model that is within the specs. I'm fine with the variance and can work with this on my simulations :)
I think a built-in "fudge" factor in Extract Model would do the trick, i.e., trace any tube on hand, then bring the model in line with the datasheet "bogey" with a bit of fudging et voila, you got a well matched model...:p
 
Hello everyone!
I'm trying to use the models in Multisim, but I can't make it work...
I've created a symbol for the 6CA4/EZ81 with only one plate, because in the model there are only A and K.
The model dosn't work connecting the V source to the plate. I've tryed connecting the voltage source to the K and now it works, but I'm getting only negative halfwaves in the output.
 
Ex-Moderator
Joined 2011
Ayumi SPICE Models for 6112 & 6021

Code:
*
* Generic triode model: 6112_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Tue Jul 29 13:01:10 2014
*               Plate
*               | Grid
*               | | Cathode
*               | | |
.SUBCKT 6112_AN A G K
BGG   GG   0 V=V(G,K)+0.2952921
BM1   M1   0 V=(0.0058468379*(URAMP(V(A,K))+1e-10))**-0.78793539
BM2   M2   0 V=(0.65561292*(URAMP(V(GG)+URAMP(V(A,K))/58.901424)+1e-10))**2.2879354
BP    P    0 V=0.0028663714*(URAMP(V(GG)+URAMP(V(A,K))/89.841768)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0017259381*V(M1)*V(M2)
BIG   IG   0 V=0.0014331857*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.0014811756*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 1p
CGK   G    K 1.7p
CAK   A    K 0.2p
.ENDS

Code:
*
* Generic triode model: 6021_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Tue Apr 15 09:51:04 2014
*               Plate
*               | Grid
*               | | Cathode
*               | | |
.SUBCKT 6021_AN A G K
BGG   GG   0 V=V(G,K)+-0.0012830765
BM1   M1   0 V=(0.015313905*(URAMP(V(A,K))+1e-10))**-0.90918627
BM2   M2   0 V=(0.62261686*(URAMP(V(GG)+URAMP(V(A,K))/24.643168)+1e-10))**2.4091863
BP    P    0 V=0.003065428*(URAMP(V(GG)+URAMP(V(A,K))/39.579988)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0019444605*V(M1)*V(M2)
BIG   IG   0 V=0.001532714*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.0016496182*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 1.5p
CGK   G    K 2.4p
CAK   A    K 0.3p
.ENDS
 
6AN5 ltspice model

I am looking for ltspice models for a 6AN5 operating as a pentode. I have searched the net and inside some of the tube spice model collections with no luck.

There is a 6AN5T csv in the latest PCtube_1.11_win.zip (assume it is data for the tube as a triode) so maybe I just have to wait for next version.

Thanks in advance.