Is there vacuum tube models for LTspice?

Click For Summary
SUMMARY

The discussion focuses on obtaining vacuum tube models for LTspice, as the default library lacks these components. Users can find models on the Yahoo Group dedicated to LTspice and from Duncan Amps' website. To implement these models, users need to download ASY and INC files and place them in the "Special Functions" directory of LTspice. Additionally, users can utilize provided subcircuit files for specific vacuum tubes like the 12AX7 and 6BM8, which can be directly pasted into the Spice directive for simulation.

PREREQUISITES
  • Familiarity with LTspice 4.0 or later
  • Understanding of ASY and INC file formats
  • Basic knowledge of SPICE directives
  • Experience with vacuum tube circuits and terminology
NEXT STEPS
  • Explore the Yahoo Group for LTspice models and resources
  • Learn how to create custom ASY and INC files for LTspice
  • Research the differences between triode, pentode, and tetrode configurations
  • Investigate other SPICE-compatible software that supports vacuum tube modeling
USEFUL FOR

Electronics engineers, hobbyists working with vacuum tube circuits, and anyone interested in simulating analog circuits using LTspice.

yungman
Messages
5,741
Reaction score
291
I know the default library of LTspice don't have vacuum tube model. Does anyone know where I can get one. If not, any other free spice program have vacuum tube models?

The only one I find so far is:

http://www.duncanamps.com/technical/ltspice.html

I tried to follow the instruction and got lost.

Thanks

Alan
 
Last edited:
Engineering news on Phys.org
View attachment 6AU6.zip

Alan,

There are some models of vacuum tubes on the Yahoo Group

http://tech.groups.yahoo.com/group/LTspice/

You may have to be a member to view the files, but this is free and fairly simple, I recall.

Note that Europeans (and Australians) referred to these as "valves", so search for those as well.

You need an ASY file and an INC file which you download and put in the "Special Functions" directory of LTSpice. (you can put them anywhere but this one makes it easy to find them.)
c:\Program Files\LTC\LTspiceIV\lib\sym\SpecialFunctions\

To use them, you can choose the diagram from the ASY file by going to the "Special Functions" components.
Then you have to include a Spice directive (under "edit" on the main screen for LTSpice).
You type .inc name-of-file
Or you can just copy the whole contents of the INC file and paste it into the spice directive.
This prints it on the screen but it works OK.

I have attached a different type of file with a .CIR extension.
It is just a text file so you can copy the test starting with "subckt" down to "end" and paste this in as a spice directive. Looks a bit messy on the screen, but it works.

There is data for another tube in that file as well.



Here is a subckt file for a 12ax7 (don't forget the first dot.)
.SUBCKT 12AX7A P G K
E1 2 0 VALUE={45+V(P,K)+95.43*V(G,K)}
R1 2 0 1.0K
Gp P K VALUE={1.147E-6*(PWR(V(2),1.5)+PWRS(V(2),1.5))/2}
Cgk G K 1.6P
Cgp G P 1.7P
Cpk P K 0.46P
.ENDS 12AX7A

Here is one for a 6BM8 pentode:
.SUBCKT 6BM8P A S G K
*
* Calculate contribution to cathode current
*
Eat at 0 VALUE={0.636*ATAN(V(A,K)/15)}
Egs gs 0 VALUE={LIMIT{V(S,K)/7+V(G,K)*1.3+V(A,K)/700,0,1E6}}
Egs2 gs2 0 VALUE={PWRS(V(gs),1.24)}
Ecath cc 0 VALUE={V(gs2)*V(at)}
*
* Calculate anode current
*
Ga A K VALUE={3.45E-3*V(cc)}
*
* Calculate screen current
*
Escrn sc 0 VALUE={V(gs2)*(1.1-V(at))}
Gs S K VALUE={3.7E-3*V(sc)*LIMIT{V(S,K),0,10}/10}
*
* Capacitances
*
Cg1 G K 9.6p
Cak A K 9.3p
Cg1a G A 0.35p

.ENDS

I find just pasting these into the Spice directive works well while the INC command gives lots of trouble. Probably me.

Note that there are triode, pentode and tetrode symbols under "MISC" in the components drawer. The 6BM8 works if you choose the tetrode symbol and the above Spice directive for the 6BM8P.
You have to rename the symbol from "tetrode" to "6BM8P" to match the Spice directive.

These are as much fun as shampooing cats, so lots of luck.
 
Last edited:
Thanks, I'll work on this soon.

Alan
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
9
Views
7K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 44 ·
2
Replies
44
Views
5K