NewYorkDave
Well-known member
In response to a request I made elsewhere, here is a 12AV7 model by Mr. Robert Casey. I've tried it out in Circuitmaker with some circuits I've built in real life, and the simulated performance has been very close to how the real circuits behaved.
--------------------------------------------------------------
*Vacuum Tube Triode (Audio freq.) pkg:VT-9 (A:1,2,3)(B:6,7,8)
.SUBCKT X12Av7A A G K
* ANODE MODEL
BLIM LI 0 V=(URAMP(V(A)-V(K))^ 1 )* 0.0037
BGG GG 0 V=V(G)-V(K)--0.5
BRP1 RP1 0 V=URAMP(-V(GG)* 0.09869 )
BRP2 RP2 0 V=V(RP1)-URAMP(V(RP1)-0.999)
BRPF RP 0 V=(1-V(RP2)^ 1 )+URAMP(V(GG))* 0.1
BGR GR 0 V=URAMP(V(GG))-URAMP(-(V(GG)*(1+V(GG)* 0.012937 )))
BEM EM 0 V=URAMP(V(A)-V(K)+V(GR)* 25.093 )
BEP EP 0 V=(V(EM)^ 1.4 )*V(RP)* 0.00001863
BEL1 EL1 0 V=URAMP(V(EP))
BEL EL 0 V=V(EL1)-URAMP(V(EL1)-V(LI))
BLD LD 0 V=URAMP(V(EP)-V(LI))
BAK A K I=V(EL)
* GRID MODEL
BGF GF 0 V=(URAMP(V(G)-V(K)--0.5 )^1.5)* 0.00012
BG G K I=V(GF)+V(LD)
* CAPS
CAK A K 0.00000000000024
CGK G K 0.00000000000323
CGA G A 0.0000000000019
.ENDS X12Av7A
--------------------------------------------------------------
*Vacuum Tube Triode (Audio freq.) pkg:VT-9 (A:1,2,3)(B:6,7,8)
.SUBCKT X12Av7A A G K
* ANODE MODEL
BLIM LI 0 V=(URAMP(V(A)-V(K))^ 1 )* 0.0037
BGG GG 0 V=V(G)-V(K)--0.5
BRP1 RP1 0 V=URAMP(-V(GG)* 0.09869 )
BRP2 RP2 0 V=V(RP1)-URAMP(V(RP1)-0.999)
BRPF RP 0 V=(1-V(RP2)^ 1 )+URAMP(V(GG))* 0.1
BGR GR 0 V=URAMP(V(GG))-URAMP(-(V(GG)*(1+V(GG)* 0.012937 )))
BEM EM 0 V=URAMP(V(A)-V(K)+V(GR)* 25.093 )
BEP EP 0 V=(V(EM)^ 1.4 )*V(RP)* 0.00001863
BEL1 EL1 0 V=URAMP(V(EP))
BEL EL 0 V=V(EL1)-URAMP(V(EL1)-V(LI))
BLD LD 0 V=URAMP(V(EP)-V(LI))
BAK A K I=V(EL)
* GRID MODEL
BGF GF 0 V=(URAMP(V(G)-V(K)--0.5 )^1.5)* 0.00012
BG G K I=V(GF)+V(LD)
* CAPS
CAK A K 0.00000000000024
CGK G K 0.00000000000323
CGA G A 0.0000000000019
.ENDS X12Av7A