• 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.

Triode spice models for Circuit maker

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
I have circuitmaker 2000, and this works for me

* 6DJ8 Spice 3F4 model
.SUBCKT X6DJ8 P G K
Bp P K I=(0.06867321543e-3)*uramp(V(P,K)*ln(1.0+(-0.03262478644)+exp((7.453794563)+(7.453794563)*((31.84399594)+(-13.80505589e-3)*V(G,K))*V(G,K)/V(P,K)))/(7.453794563))^(1.37713474)

C1 G K 3.1E-12
C2 G P 1.4E-12
C3 P K 0.18E-12

.ends X6DJ8

another version

*Vacuum Tube Triode (Audio freq.) pkg:VT-9 (A:1,2,3)(B:6,7,8)
.SUBCKT X6DJ8a 1 3 4
B1 2 4 I=((URAMP((V(2,4)/31)+V(3,4)))^1.5)/120
C1 3 4 3.1E-12
C2 3 1 1.4E-12
C3 1 4 0.18E-12
R1 3 5 10E+3
D1 1 2 DX
D2 4 2 DX2
D3 5 4 DX
.MODEL DX D(IS=1.0E-12 RS=1.0)
.MODEL DX2 D(IS=1.0E-9 RS=1.0)
.ENDS X6DJ8a


12AT7:

*Vacuum Tube Triode (Audio freq.) pkg:VT-9 (A:1,2,3)(B:6,7,8)
.SUBCKT X12AT7A 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)* 45.093 )

BEP EP 0 V=(V(EM)^ 1.4 )*V(RP)* 0.00000863

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.0000000000004

CGK G K 0.0000000000023

CGA G A 0.0000000000016

.ENDS X12AT7A


don't have anything for the 6N3P

Other models I do have are at:
http://home.netcom.com/~wb2jia/tubes/spice.txt
http://home.netcom.com/~wb2jia/tubes/spice2.txt
http://home.netcom.com/~wb2jia/tubes/spice3.txt
http://home.netcom.com/~wb2jia/tubes/spice4.txt
 
I think wa2ise is my saver. I use circuit maker and I do not understand an indication in the spice data, so I can not create a new model of valve.
If I take your:
*Vacuum Tube Triode (Audio freq.) pkg:VT-9 (A:1,2,3)(B:6,7,8)
.SUBCKT X6DJ8a 1 3 4
B1 2 4 I=((URAMP((V(2,4)/31)+V(3,4)))^1.5)/120
C1 3 4 3.1E-12
C2 3 1 1.4E-12
C3 1 4 0.18E-12
R1 3 5 10E+3
D1 1 2 DX
D2 4 2 DX2
D3 5 4 DX
.MODEL DX D(IS=1.0E-12 RS=1.0)
.MODEL DX2 D(IS=1.0E-9 RS=1.0)
.ENDS X6DJ8a

first line: 31 is the ampli factor : ok?
but what is 120?
c1/2/3: the capacitors
R: the ri of the valve
thanks for your help
 
Hi,

I found some models I needed and also found the explanations I was looking for. So I can save them in my circuit maker.
But: edit macro; Save macro, expand macro, and macro lock do not work. These positions remain grayed out.
Only new macro; Macro utilities etc work.
What can I do ?
 
Hi,

I found some models I needed and also found the explanations I was looking for. So I can save them in my circuit maker.
But: edit macro; Save macro, expand macro, and macro lock do not work. These positions remain grayed out.
Only new macro; Macro utilities etc work.
What can I do ?
I simply open "triode.sub" with a text editor and add a model. Attached is my file with much more accurate models than the one above. Feel free to grab the ones you need.
 

Attachments

  • TRIODE.zip
    2.7 KB · Views: 153
ok groucho, I don't why I do not know why it did not work????
now what is the procedure for introduce the datas in circuit maker?
the informations in the tutorial circuit maker are grey and when I try to modify the existing datas, a window open with '' only to read ''
Forget the tutorial. Just copy and paste the models you want from the "triode.sub" I posted to the triode.sub in your "models" directory.
 
Forget the tutorial. Just copy and paste the models you want from the "triode.sub" I posted to the triode.sub in your "models" directory.

If running Windows 10, then that may explain problems re read only. To add data to TRIODE.SUB, I have to copy it elsewhere and then work on it with Notepad, then save and copy it back and over-ride the original TRIODE.SUB file. That worked for me. Now I can add new data to SUB files using that method, even remove stuff I don't want. Hope that helps?
 
Hello,
I sorry for my late response but I was missing + computer problems.
Yes it is Windows 10.
I do not find TRIODE SUB. Yiu can see on my copy the TRIODE that I registered in MODELS. That oes not work.
I dont find anywhere a ''SUB'' file in the Library or models...
Thank you for your help
 

Attachments

  • Sans titre.png
    Sans titre.png
    159.3 KB · Views: 91
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.