• 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

Hi Wayne,

The two models (2A3 and 300B) may be in PSpice flavor, but they are missing a couple of key ingredients, i.e. they don't work in PSpice.

The LIMIT function needs the form of : LIMIT(x,min,max) to work.
You mean this->LIMIT(..... ,0.0,1.0e16). Hmmm, it's there.

Also, PSpice does not recognize "ln" for natural log, it needs to see simply "log".
Yes, it should be LOG for the PSpice program. I had forgotten that I modified it for Micro-Cap (LOG->LN) which uses it's own flavour of PSpice. Either will work in LTspice. You did notice that I said "flavour" and not the actual PSpice application?
The link for the 12A()7 and 6SN7 just takes you back to this page. Could you repost the correct link please?
Works OK here. It's the two zip files in posts 782 and 783 on page 79 of this thread. I'm using the forum defaults for thread display.
In your opinion, those two for the 2A3 and 300B are about as good as it gets?
Sorry, I've never compared them to any other models.
 
Ex-Moderator
Joined 2011
5842 SPICE Model

Here is the model per your request, btw, try not to use the Duncan library, there are better models available from Ayumi, and Frolov's Curve Captor...

Code:
*
* Generic triode model: 5842_AN
* Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved.
* Version 3.10, Generated on Thu May 14 12:06:09 2015
*               Plate
*               | Grid
*               | | Cathode
*               | | |
.SUBCKT 5842_AN A G K
BGG   GG   0 V=V(G,K)+-0.46951652
BM1   M1   0 V=(0.0042897418*(URAMP(V(A,K))+1e-10))**-0.30633316
BM2   M2   0 V=(0.8304116*(URAMP(V(GG)+URAMP(V(A,K))/39.533476)+1e-10))**1.8063332
BP    P    0 V=0.017297881*(URAMP(V(GG)+URAMP(V(A,K))/47.607086)+1e-10)**1.5
BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.010632968*V(M1)*V(M2)
BIG   IG   0 V=0.0086489406*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.0091968129*URAMP(V(A,K))**1.5)))+1e-10*V(A,K)
BIGK  G    K I=V(IG)
* CAPS
CGA   G    A 1.8p
CGK   G    K 9p
CAK   A    K 0.5p
.ENDS
 
Hello jazbo8,

I'm happy that I have now found the way to run tube simulationes with Spice. That was a long way for me. In the past i was working old-school to calculate electronics by datasheets, templates and a little calculator :)
Thank you for the model, but this one i integrate this morning in the tube file on my computer and it dos not run. I think i'm to stupid for Spice:confused:
 
Ex-Moderator
Joined 2011
Lundahl 1620, 1623 OPT SPICE Models

I tried making the following models based on the datasheets, hopefully they are close enough...

Code:
.SUBCKT Lundahl_1620_PP P1 B P2 Sp1 Sp2
* 6k:8 Push Pull Transformer
*
LP1 1 B 149.204774993469
LP2 B 2 149.204774993469
LSA 3 Sp2 0.84549372496299
K1 LP1 LP2 LSA 0.999946664059136
RP1 P1 1 154
RP2 P2 2 154
RS Sp1 3 0.5
.ENDS

.SUBCKT Lundahl_1623_PP P1 B P2 Sp1 Sp2
* 5.6k:8 Push Pull Transformer
* 
LP1 1 B 74.7679934222722
LP2 B 2 74.7679934222722
LSA 3 Sp2 0.448607960533633
K1 LP1 LP2 LSA 0.99990065762102
RP1 P1 1 82
RP2 P2 2 82
RS Sp1 3 0.4
.ENDS

.SUBCKT Lundahl_1623_SE P1 P2 S1 S2
* 1.6k:8 Single Ended Transformer
*  
L1 1 P2 23.0647H
L2 2 S2 0.1615H
K1 L1 L2 0.9999
R1 P1 1 164
R2 S1 2 0.8
.ENDS
 
Non-saturable core, ideal transformer from Christophe Basso's book "Switch Mode Power Supplies" -- add parasitic elements to your heart's content:
 

Attachments

  • IdealXfmr.png
    IdealXfmr.png
    13 KB · Views: 667