• 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

Disabled Account
Joined 2013
6HB5 model:


Code:
**** 6HB5 ******************************************
* Created on 07/02/2021 09:46 using paint_kip.jar
* [url=http://www.dmitrynizh.com/tubeparams_image.htm]Model Paint Tools: Trace Tube Parameters over Plate Curves, Interactively[/url]
* Plate Curves image file: 6hb5.png
* Data source link: <plate curves URL>
*----------------------------------------------------------------------------------
.SUBCKT 6HB5 P G2 G K ; LTSpice tetrode.asy pinout
* .SUBCKT 6HB5 P G K G2 ; Koren Pentode Pspice pinout
+ PARAMS: MU=9.29 KG1=236.16 KP=16.42 KVB=691.2 VCT=0.114 EX=1.316 KG2=1033.2 KNEE=56.45 KVC=1.619
+ KLAM=3.906E-10 KLAMG=2.52E-4 KNEE2=21.29 KNEX=161.28  KNK=-0.1494 KNG=0.00768 KNPL=66 KNSL=47.3 KNPR=134.4 KNSR=124.7
+ CCG=22P CGP=0.4P CCP=9P VGOFF=-0.6 IGA=0.001 IGB=0.3 IGC=8 IGEX=2
* Vp_MAX=500 Ip_MAX=500 Vg_step=10 Vg_start=0 Vg_count=14
* X_MIN=39 Y_MIN=17 X_SIZE=770 Y_SIZE=550 FSZ_X=1296 FSZ_Y=736 XYGrid=false
* Rp=1400 Vg_ac=20 P_max=18 Vg_qui=-65 Vp_qui=300 
* showLoadLine=n showIp=y isDHP=n isPP=n isAsymPP=n isUL=n showDissipLimit=y 
* showIg1=y isInputSnapped=y addLocalNFB=n
* XYProjections=n harmonicPlot=y dissipPlot=n 
* UL=0.43 EG2=130 gridLevel2=y addKink=y isTanhKnee=y advSigmoid=n 
*----------------------------------------------------------------------------------
RE1  7 0  1G    ; DUMMY SO NODE 7 HAS 2 CONNECTIONS
E1   7 0  VALUE=  ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(G2,K)/KP*LOG(1+EXP((1/MU+(VCT+V(G,K))/SQRT(KVB+V(G2,K)*V(G2,K)))*KP))}
RE2  6 0  1G    ; DUMMY SO NODE 6 HAS 2 CONNECTIONS
E2  6 0  VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))} ; Kg1 times KIT current
RE21 21 0 1
E21  21 0 VALUE={V(6)/KG1*ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2)} ; Ip with knee but no slope and no kink
RE22 22 0 1 ; E22: kink curr deviation for plate
E22  22 0 VALUE={V(21)*LIMIT(KNK-V(G,K)*KNG,0,0.3)*(-ATAN((V(P,K)-KNPL)/KNSL)+ATAN((V(P,K)-KNPR)/KNSR))} 
G1   P  K  VALUE={V(21)*(1+KLAMG*V(P,K))+KLAM*V(P,K) + V(22)}
* Alexander Gurskii screen current, see audioXpress 2/2011, with slope and kink added
RE43 43 K 1G ; Dummy
E43  43 G2 VALUE={0} ; Dummy
G2   43 K  VALUE={V(6)/KG2*(KVC-ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2))/(1+KLAMG*V(P,K))-V(22)}
RCP  P K  1G     ; FOR CONVERGENCE
C1   K G  {CCG}  ; CATHODE-GRID 1
C2   G P  {CGP}  ; GRID 1-PLATE
C3   K P  {CCP}  ; CATHODE-PLATE
RE23 G 0 1G 
GG G K VALUE={(IGA+IGB/(IGC+V(P,K)))*(MU/KG1)*
+(PWR(V(G,K)-VGOFF,IGEX)+PWRS(V(G,K)-VGOFF,IGEX))}
.ENDS
*$
 

Attachments

  • 6HB5 paint-1.png
    6HB5 paint-1.png
    668.9 KB · Views: 240
Disabled Account
Joined 2013
6HB5 model:


Code:
**** 6HB5 ******************************************
* Created on 07/02/2021 09:46 using paint_kip.jar
* [URL="http://www.dmitrynizh.com/tubeparams_image.htm"]Model Paint Tools: Trace Tube Parameters over Plate Curves, Interactively[/URL]
* Plate Curves image file: 6hb5.png
* Data source link: <plate curves URL>
*----------------------------------------------------------------------------------
.SUBCKT 6HB5 P G2 G K ; LTSpice tetrode.asy pinout
* .SUBCKT 6HB5 P G K G2 ; Koren Pentode Pspice pinout
+ PARAMS: MU=9.29 KG1=236.16 KP=16.42 KVB=691.2 VCT=0.114 EX=1.316 KG2=1033.2 KNEE=56.45 KVC=1.619
+ KLAM=3.906E-10 KLAMG=2.52E-4 KNEE2=21.29 KNEX=161.28  KNK=-0.1494 KNG=0.00768 KNPL=66 KNSL=47.3 KNPR=134.4 KNSR=124.7
+ CCG=22P CGP=0.4P CCP=9P VGOFF=-0.6 IGA=0.001 IGB=0.3 IGC=8 IGEX=2
* Vp_MAX=500 Ip_MAX=500 Vg_step=10 Vg_start=0 Vg_count=14
* X_MIN=39 Y_MIN=17 X_SIZE=770 Y_SIZE=550 FSZ_X=1296 FSZ_Y=736 XYGrid=false
* Rp=1400 Vg_ac=20 P_max=18 Vg_qui=-65 Vp_qui=300 
* showLoadLine=n showIp=y isDHP=n isPP=n isAsymPP=n isUL=n showDissipLimit=y 
* showIg1=y isInputSnapped=y addLocalNFB=n
* XYProjections=n harmonicPlot=y dissipPlot=n 
* UL=0.43 EG2=130 gridLevel2=y addKink=y isTanhKnee=y advSigmoid=n 
*----------------------------------------------------------------------------------
RE1  7 0  1G    ; DUMMY SO NODE 7 HAS 2 CONNECTIONS
E1   7 0  VALUE=  ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(G2,K)/KP*LOG(1+EXP((1/MU+(VCT+V(G,K))/SQRT(KVB+V(G2,K)*V(G2,K)))*KP))}
RE2  6 0  1G    ; DUMMY SO NODE 6 HAS 2 CONNECTIONS
E2  6 0  VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))} ; Kg1 times KIT current
RE21 21 0 1
E21  21 0 VALUE={V(6)/KG1*ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2)} ; Ip with knee but no slope and no kink
RE22 22 0 1 ; E22: kink curr deviation for plate
E22  22 0 VALUE={V(21)*LIMIT(KNK-V(G,K)*KNG,0,0.3)*(-ATAN((V(P,K)-KNPL)/KNSL)+ATAN((V(P,K)-KNPR)/KNSR))} 
G1   P  K  VALUE={V(21)*(1+KLAMG*V(P,K))+KLAM*V(P,K) + V(22)}
* Alexander Gurskii screen current, see audioXpress 2/2011, with slope and kink added
RE43 43 K 1G ; Dummy
E43  43 G2 VALUE={0} ; Dummy
G2   43 K  VALUE={V(6)/KG2*(KVC-ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2))/(1+KLAMG*V(P,K))-V(22)}
RCP  P K  1G     ; FOR CONVERGENCE
C1   K G  {CCG}  ; CATHODE-GRID 1
C2   G P  {CGP}  ; GRID 1-PLATE
C3   K P  {CCP}  ; CATHODE-PLATE
RE23 G 0 1G 
GG G K VALUE={(IGA+IGB/(IGC+V(P,K)))*(MU/KG1)*
+(PWR(V(G,K)-VGOFF,IGEX)+PWRS(V(G,K)-VGOFF,IGEX))}
.ENDS
*$


Sorry, there is an error in bottom plate voltage scale 500V is now corrected:
Corrected model:

Code:
**** 6HB5 ******************************************
* Created on 07/02/2021 11:08 using paint_kip.jar
* [URL="http://www.dmitrynizh.com/tubeparams_image.htm"]Model Paint Tools: Trace Tube Parameters over Plate Curves, Interactively[/URL]
* Plate Curves image file: 6hb5.png
* Data source link: <plate curves URL>
*----------------------------------------------------------------------------------
.SUBCKT 6HB5 P G2 G K ; LTSpice tetrode.asy pinout
* .SUBCKT 6HB5 P G K G2 ; Koren Pentode Pspice pinout
+ PARAMS: MU=9.29 KG1=236.16 KP=16.42 KVB=691.2 VCT=0.114 EX=1.316 KG2=1033.2 KNEE=56.45 KVC=1.619
+ KLAM=3.906E-10 KLAMG=2.52E-4 KNEE2=21.29 KNEX=161.28  KNK=-0.1494 KNG=0.00768 KNPL=66 KNSL=47.3 KNPR=134.4 KNSR=124.7
+ CCG=22P CGP=0.4P CCP=9P VGOFF=-0.6 IGA=0.001 IGB=0.3 IGC=8 IGEX=2
* Vp_MAX=500 Ip_MAX=500 Vg_step=10 Vg_start=0 Vg_count=14
* X_MIN=39 Y_MIN=17 X_SIZE=689 Y_SIZE=550 FSZ_X=1296 FSZ_Y=736 XYGrid=false
* Rp=1400 Vg_ac=20 P_max=18 Vg_qui=-65 Vp_qui=300 
* showLoadLine=n showIp=y isDHP=n isPP=n isAsymPP=n isUL=n showDissipLimit=y 
* showIg1=y isInputSnapped=y addLocalNFB=n
* XYProjections=n harmonicPlot=y dissipPlot=n 
* UL=0.43 EG2=130 gridLevel2=y addKink=y isTanhKnee=y advSigmoid=n 
*----------------------------------------------------------------------------------
RE1  7 0  1G    ; DUMMY SO NODE 7 HAS 2 CONNECTIONS
E1   7 0  VALUE=  ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(G2,K)/KP*LOG(1+EXP((1/MU+(VCT+V(G,K))/SQRT(KVB+V(G2,K)*V(G2,K)))*KP))}
RE2  6 0  1G    ; DUMMY SO NODE 6 HAS 2 CONNECTIONS
E2  6 0  VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))} ; Kg1 times KIT current
RE21 21 0 1
E21  21 0 VALUE={V(6)/KG1*ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2)} ; Ip with knee but no slope and no kink
RE22 22 0 1 ; E22: kink curr deviation for plate
E22  22 0 VALUE={V(21)*LIMIT(KNK-V(G,K)*KNG,0,0.3)*(-ATAN((V(P,K)-KNPL)/KNSL)+ATAN((V(P,K)-KNPR)/KNSR))} 
G1   P  K  VALUE={V(21)*(1+KLAMG*V(P,K))+KLAM*V(P,K) + V(22)}
* Alexander Gurskii screen current, see audioXpress 2/2011, with slope and kink added
RE43 43 K 1G ; Dummy
E43  43 G2 VALUE={0} ; Dummy
G2   43 K  VALUE={V(6)/KG2*(KVC-ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2))/(1+KLAMG*V(P,K))-V(22)}
RCP  P K  1G     ; FOR CONVERGENCE
C1   K G  {CCG}  ; CATHODE-GRID 1
C2   G P  {CGP}  ; GRID 1-PLATE
C3   K P  {CCP}  ; CATHODE-PLATE
RE23 G 0 1G 
GG G K VALUE={(IGA+IGB/(IGC+V(P,K)))*(MU/KG1)*
+(PWR(V(G,K)-VGOFF,IGEX)+PWRS(V(G,K)-VGOFF,IGEX))}
.ENDS
*$
 

Attachments

  • 6HB5 paint-2.png
    6HB5 paint-2.png
    666.5 KB · Views: 215
AX tech editor
Joined 2002
Paid Member

Attachments

  • pentrode.PNG
    pentrode.PNG
    3.7 KB · Views: 194
AX tech editor
Joined 2002
Paid Member
Sorry, there is an error in bottom plate voltage scale 500V is now corrected:
Corrected model:

Code:
**** 6HB5 ******************************************
* Created on 07/02/2021 11:08 using paint_kip.jar
* [URL="http://www.dmitrynizh.com/tubeparams_image.htm"]Model Paint Tools: Trace Tube Parameters over Plate Curves, Interactively[/URL]
* Plate Curves image file: 6hb5.png
* Data source link: <plate curves URL>
*----------------------------------------------------------------------------------
.SUBCKT 6HB5 P G2 G K ; LTSpice tetrode.asy pinout
* .SUBCKT 6HB5 P G K G2 ; Koren Pentode Pspice pinout
+ PARAMS: MU=9.29 KG1=236.16 KP=16.42 KVB=691.2 VCT=0.114 EX=1.316 KG2=1033.2 KNEE=56.45 KVC=1.619
+ KLAM=3.906E-10 KLAMG=2.52E-4 KNEE2=21.29 KNEX=161.28  KNK=-0.1494 KNG=0.00768 KNPL=66 KNSL=47.3 KNPR=134.4 KNSR=124.7
+ CCG=22P CGP=0.4P CCP=9P VGOFF=-0.6 IGA=0.001 IGB=0.3 IGC=8 IGEX=2
* Vp_MAX=500 Ip_MAX=500 Vg_step=10 Vg_start=0 Vg_count=14
* X_MIN=39 Y_MIN=17 X_SIZE=689 Y_SIZE=550 FSZ_X=1296 FSZ_Y=736 XYGrid=false
* Rp=1400 Vg_ac=20 P_max=18 Vg_qui=-65 Vp_qui=300 
* showLoadLine=n showIp=y isDHP=n isPP=n isAsymPP=n isUL=n showDissipLimit=y 
* showIg1=y isInputSnapped=y addLocalNFB=n
* XYProjections=n harmonicPlot=y dissipPlot=n 
* UL=0.43 EG2=130 gridLevel2=y addKink=y isTanhKnee=y advSigmoid=n 
*----------------------------------------------------------------------------------
RE1  7 0  1G    ; DUMMY SO NODE 7 HAS 2 CONNECTIONS
E1   7 0  VALUE=  ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(G2,K)/KP*LOG(1+EXP((1/MU+(VCT+V(G,K))/SQRT(KVB+V(G2,K)*V(G2,K)))*KP))}
RE2  6 0  1G    ; DUMMY SO NODE 6 HAS 2 CONNECTIONS
E2  6 0  VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))} ; Kg1 times KIT current
RE21 21 0 1
E21  21 0 VALUE={V(6)/KG1*ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2)} ; Ip with knee but no slope and no kink
RE22 22 0 1 ; E22: kink curr deviation for plate
E22  22 0 VALUE={V(21)*LIMIT(KNK-V(G,K)*KNG,0,0.3)*(-ATAN((V(P,K)-KNPL)/KNSL)+ATAN((V(P,K)-KNPR)/KNSR))} 
G1   P  K  VALUE={V(21)*(1+KLAMG*V(P,K))+KLAM*V(P,K) + V(22)}
* Alexander Gurskii screen current, see audioXpress 2/2011, with slope and kink added
RE43 43 K 1G ; Dummy
E43  43 G2 VALUE={0} ; Dummy
G2   43 K  VALUE={V(6)/KG2*(KVC-ATAN((V(P,K)+KNEX)/KNEE)*TANH(V(P,K)/KNEE2))/(1+KLAMG*V(P,K))-V(22)}
RCP  P K  1G     ; FOR CONVERGENCE
C1   K G  {CCG}  ; CATHODE-GRID 1
C2   G P  {CGP}  ; GRID 1-PLATE
C3   K P  {CCP}  ; CATHODE-PLATE
RE23 G 0 1G 
GG G K VALUE={(IGA+IGB/(IGC+V(P,K)))*(MU/KG1)*
+(PWR(V(G,K)-VGOFF,IGEX)+PWRS(V(G,K)-VGOFF,IGEX))}
.ENDS
*$

Thank you very much! I use to think I am smart but compared to people like you I'm a beginner!
Great service to the members here.

Jan
 
Strange Results with E90CC Spice Model

Hello,

I get very strange results with an E90CC spice model of unknown origin.

When the tube enters the grid current region - which happens frequently in circuits like flip-flop or other digital circuits - negative voltages may show up although no negative supply is present. Sometimes even kilo-volts. Looks like a current source working into near-infinite resistance or so.

Can somebody spot where the problem is in the parameters and how to fix it ?
Or come up with an alternative model. Cannot find anything on the web.

In the attached files there is also Ayumi E92CC which works well, but it is a different tube ...

Thank you ...
 

Attachments

  • E90CC.zip
    1.7 KB · Views: 60
  • Draft5.png
    Draft5.png
    51.8 KB · Views: 126
Last edited:
Disabled Account
Joined 2013
The grid current of the c90cc you posted is just RGI model so it's not accurate up to certain positive bias, while AN grid model for E92CC is good. This is E90CC model with advance grid current model, try it:

Code:
**** ECC90 ** Advanced Grid Current **********************************
* Created on 07/09/2021 00:01 using paint_kit.jar 3.1
* [URL="http://www.dmitrynizh.com/tubeparams_image.htm"]Model Paint Tools: Trace Tube Parameters over Plate Curves, Interactively[/URL]
* Plate Curves image file: E90CC.png
* Data source link: 
*----------------------------------------------------------------------------------
.SUBCKT E90CC 1 2 3 ; Plate Grid Cathode
+ PARAMS: CCG=3.4P  CGP=2.5P CCP=0.35P 
+ MU=29.43 KG1=525 KP=164 KVB=148.5 VCT=0.6 EX=1.386 
+ VGOFF=-0.6 IGA=0.00096 IGB=0.171 IGC=5.36 IGEX=1.32 
* Vp_MAX=300 Ip_MAX=20 Vg_step=1 Vg_start=0 Vg_count=13
* Rp=4000 Vg_ac=55 P_max=2 Vg_qui=-48 Vp_qui=300
* X_MIN=53 Y_MIN=22 X_SIZE=815 Y_SIZE=544 FSZ_X=1296 FSZ_Y=736 XYGrid=false
* showLoadLine=n showIp=y isDHT=n isPP=n isAsymPP=n showDissipLimit=y 
* showIg1=y gridLevel2=y isInputSnapped=n  
* XYProjections=n harmonicPlot=n dissipPlot=n 
*----------------------------------------------------------------------------------
E1 7 0 VALUE={V(1,3)/KP*LOG(1+EXP(KP*(1/MU+(VCT+V(2,3))/SQRT(KVB+V(1,3)*V(1,3)))))} 
RE1 7 0 1G  ; TO AVOID FLOATING NODES
G1 1 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG1} 
RCP 1 3 1G   ; TO AVOID FLOATING NODES
C1 2 3 {CCG} ; CATHODE-GRID 
C2 2 1 {CGP} ; GRID=PLATE 
C3 1 3 {CCP} ; CATHODE-PLATE 
RE2 2 0 1G 
EGC 8 0 VALUE={V(2,3)-VGOFF} ; POSITIVE GRID THRESHOLD
GG 2 3 VALUE={(IGA+IGB/(IGC+V(1,3)))*(MU/KG1)*(PWR(V(8),IGEX)+PWRS(V(8),IGEX))}
.ENDS 
*$
 

Attachments

  • E90CC paint-1.png
    E90CC paint-1.png
    641.3 KB · Views: 130
'pentrode' ?

Well I did have a close look and could not find this typo error in LTspice XVII. Or did I look at the wrong place?

The symbol itself is correctly named pentode.asy (in the Misc folder) but when you insert this symbol into a schematic the instance name is Pentrode. So the typo is in the .asy symbol file.

You could edit the pentode.asy symbol file to correct the typo but since this is a built-in symbol it will get overwritten each time you update LTspice. In a real simulation you will rename the instance to whatever tube you are using, so there isn't much point in fiddling with this. Maybe AD will eventually correct the pentode symbol file.
 
Disabled Account
Joined 2013
Comment on the lines, instead copy the line(s) . On the waveform windows, right click, "Add Trace" and paste the line as "Expression(s) to Add". You add one line or more, each line separated by a "space", similar lines as below:

Limit(11m,(300V-V1)/33.68K,0) Limit(11m,(263V-V1)/24.812K,0)
 

Attachments

  • 6n1p loadline-2.png
    6n1p loadline-2.png
    51.4 KB · Views: 141