Hello, I’m using the 6P1 tube from Korg, Noritake, and received the LTspice library from them. It doesn’t work well in Qspice, so I tried converting the file to the Qspice environment using ChatGPT, but unfortunately, after many modifications, it didn’t work. Attached here below the original file. Can anyone help me get the file working in Qspice? The command LTspice used is “B” Behavior and there is no end.
*Nutube 6P1 triode model V2.0
*2018/1/17 KORG Inc.
*accuracy improved
*continuity at Vgg=0 improved
.SUBCKT Nutube12 A G K
BGG GG 0 V=V(G,K)-2
BEP EP 0 V=URAMP(V(A,K)-1.5)
BEG EG 0 V=URAMP(V(G,K))
BM1 M1 0 V=V(EP)**-0.1129
BM2 M2 0 V=(URAMP(V(GG)+V(EP)/15.4))**1.613
BP P 0 V=42e-6*URAMP(V(GG)+V(EP)/18)**1.5
BIK IK 0 V=U(V(GG))V(P)+(1-U(V(GG)))45.26e-6V(M1)V(M2)
BIG IG 0 V=25e-6URAMP(V(GG))*1.5(V(GG)/(URAMP(V(EP)+V(GG))+1e-15)1.2+0.3)
BIAK A K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(22.9e-6V(EP)**1.5)))+1e-15V(A,K)
BIGK G K I=V(IG)
CAPCITANCE
CGA G A 2.52p
CGK G K 9.08p
CAK A K 4.32p
The Nutube12 is a generic spice model that can work directly in Spice. The only mistake preventing it from running in Spice is a missing .ends Nutube12. The other two lines are just typos and an unused B-source. Whether you correct them or not is not important.
If you don’t know how to import a model to Qspice, read this reference. Don’t rely on AI for SPICE simulation; I don’t see that it can handle this topic yet.
Hi Kelvin, Thanks for your support, the library you sent to me is okay, this is also verified by mr. Hiruta from Korg Inc. I was aware of the .ends command but not with the BEG EG.
I build the application note from Korg and the circuit doesn’t work, finally I found the problem, the cathode resistor R9 was connected to the +3.3V instead of the ground. Now the circuit works okay.
I made a Qspice symbol from the subckt provided by Hiruta-san, and verified the I-V characteristics against the datasheet on page 3, and the basic circuit example on page 6. I have uploaded this work to expedite exploration for anyone interested in working on this model.