Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

6E5P tetrode model.

 
Post new topic   Reply to topic     Forum Index -> Sim City
View previous topic :: View next topic  
Author Message
dave slagle



Joined: 22 Jan 2005
Posts: 1357
Location: NYC

PostPosted: Mon Mar 01, 2010 3:29 am    Post subject: 6E5P tetrode model. Reply with quote

I found the below model and cannot for the life of me get it to work. Any help greatly appreciated.

I know it uses a different pin configuration but renumbering both the model and / or the .ASY didn't help.

The error states:

Fatal Error: Too many parameters for subcircuit type "6e5p" (instance: xu1)

here is the model.

*$
.SUBCKT 6E5P 1 2 3 4 ; P G1 C G2 (Tetrode) 05-Dec-2004
+ PARAMS: MU= 42.48 EX= 1.350 KG1= 145.2 KP=191.93 KG2= 4500
+ KVB= 46.4 VCT= 0.00 RGI=1000
+ CCG=15P CPG1=0.6P CCP=2.5P
RE1 7 0 1MEG
E1 7 0 VALUE= ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(4,3)/KP*LOG(1+EXP((1/MU+V(2,3)/V(4,3))*KP))}
G1 1 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG1*1.57*TANH(2*V(1,3)/(KVB*3.14159))}
G2 4 3 VALUE={(EXP(EX*(LOG((V(4,3)/MU)+V(2,3)))))/KG2}
RCP 1 3 1G ; FOR CONVERGENCE
C1 2 3 {CCG} ; CATHODE-GRID 1
C2 1 2 {CPG1} ; GRID 1-PLATE
C3 1 3 {CCP} ; CATHODE-PLATE
R1 2 5 {RGI} ; FOR GRID CURRENT
D3 5 3 DX ; FOR GRID CURRENT
.MODEL DX D(IS=1N RS=1 CJO=10PF TT=1N)
.ENDS

_________________
Get Your Fix
www.hifiheroin.com
Back to top
View user's profile Send private message Visit poster's website
reVintage



Joined: 07 Sep 2007
Posts: 336
Location: Sweden

PostPosted: Mon Mar 01, 2010 7:49 am    Post subject: Reply with quote

Hey Dave,

Had to give it another try when I saw this post. This one works with the standard tetrode asy. Just changed the pin designations and ATAN:

.SUBCKT 6E5P 1 4 2 3
+ PARAMS: MU= 42.48 EX= 1.350 KG1= 145.2 KP=191.93 KG2= 4500
+ KVB= 46.4 VCT= 0.00 RGI=1000
+ CCG=15P CPG1=0.6P CCP=2.5P
RE1 7 0 1MEG
E1 7 0 VALUE= ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(4,3)/KP*LOG(1+EXP((1/MU+V(2,3)/V(4,3))*KP))}
G1 1 3 VALUE={(PWR(V(7),EX)+PWRS(V(7),EX))/KG1*1.57*ATAN(2*V(1,3)/(KVB*3.14159))}
G2 4 3 VALUE={(EXP(EX*(LOG((V(4,3)/MU)+V(2,3)))))/KG2}
RCP 1 3 1G ; FOR CONVERGENCE
C1 2 3 {CCG} ; CATHODE-GRID 1
C2 1 2 {CPG1} ; GRID 1-PLATE
C3 1 3 {CCP} ; CATHODE-PLATE
R1 2 5 {RGI} ; FOR GRID CURRENT
D3 5 3 DX ; FOR GRID CURRENT
.MODEL DX D(IS=1N RS=1 CJO=10PF TT=1N)
.ENDS

_________________
Brgds
Lars
Back to top
View user's profile Send private message Visit poster's website
dave slagle



Joined: 22 Jan 2005
Posts: 1357
Location: NYC

PostPosted: Mon Mar 01, 2010 4:11 pm    Post subject: Reply with quote

still get the same error.

care to post a working sample?

dave

_________________
Get Your Fix
www.hifiheroin.com
Back to top
View user's profile Send private message Visit poster's website
reVintage



Joined: 07 Sep 2007
Posts: 336
Location: Sweden

PostPosted: Mon Mar 01, 2010 4:38 pm    Post subject: Reply with quote

Absolutely! Will be back home in a few hours. Must doublecheck.

BY the way have you changed your tetrode .asy back to original?

EDIT: Check attachment!



6E5Ppre.asc
 Description:

Download
 Filename:  6E5Ppre.asc
 Filesize:  2.84 KB
 Downloaded:  34 Time(s)


_________________
Brgds
Lars
Back to top
View user's profile Send private message Visit poster's website
dave slagle



Joined: 22 Jan 2005
Posts: 1357
Location: NYC

PostPosted: Tue Mar 02, 2010 2:11 am    Post subject: Reply with quote

It works now.

IT wasn't the model, I was using Stephies T-Curves file which has the tetrode, TriodeNH and heatered triode all on the same page and this model must have a few extra parameters in it so I was exceeding the spice limit. I deleted one of the other tubes and all was fine.

Unfortunately it isn't very close to the published curves Sad

dave

_________________
Get Your Fix
www.hifiheroin.com
Back to top
View user's profile Send private message Visit poster's website
reVintage



Joined: 07 Sep 2007
Posts: 336
Location: Sweden

PostPosted: Tue Mar 02, 2010 7:23 am    Post subject: Reply with quote

I admit, tried another and the result was the same. So all this for nothing Crying or Very sad .
_________________
Brgds
Lars
Back to top
View user's profile Send private message Visit poster's website
sbench



Joined: 28 Jan 2005
Posts: 191

PostPosted: Tue Mar 02, 2010 5:46 pm    Post subject: Reply with quote

The other problem with that model (which IIRC is generated from a java script) is that it doesn't really model grid 2 very well. I had to modify that model to make it at all useful.

Let me see if I can do anything useful on it.

Stephie
Back to top
View user's profile Send private message
sbench



Joined: 28 Jan 2005
Posts: 191

PostPosted: Tue Mar 02, 2010 7:03 pm    Post subject: Reply with quote

P.S. Anyone have a good set of curves for that critter?
Back to top
View user's profile Send private message
dave slagle



Joined: 22 Jan 2005
Posts: 1357
Location: NYC

PostPosted: Tue Mar 02, 2010 7:08 pm    Post subject: Reply with quote

here are some sheets.


6E5P.pdf
 Description:

Download
 Filename:  6E5P.pdf
 Filesize:  84.73 KB
 Downloaded:  57 Time(s)


6E5P-E.pdf
 Description:

Download
 Filename:  6E5P-E.pdf
 Filesize:  277.74 KB
 Downloaded:  54 Time(s)


_________________
Get Your Fix
www.hifiheroin.com
Back to top
View user's profile Send private message Visit poster's website
sbench



Joined: 28 Jan 2005
Posts: 191

PostPosted: Wed Mar 03, 2010 9:26 pm    Post subject: Reply with quote

This seems to be considerably closer to the published curves
note I've edited this. Left off the .subckt line when i cut-and-pasted the file.

.SUBCKT 6E5P 1 4 2 3
+ PARAMS: MU= 44 EX= 1.40 KG1=212 KP=200 ; KG2= 4500 kg2 isn't used, kg1 models overall gm
+ KVB= 20 VCT= 0.00 RGI=1000 ; kvb models plate resistance
+ CCG=15P CPG1=0.6P CCP=2.5P
RE1 7 0 1MEG
E1 7 0 VALUE= ; E1 BREAKS UP LONG EQUATION FOR G1.
+{V(4,3)/KP*LOG(1+EXP((1/MU+V(2,3)/V(4,3))*KP))}
G1 1 3 VALUE={limit((PWR(V(7),EX)+PWRS(V(7),EX))/KG1*1.57*ATAN(2*V(1,3)/(KVB*3.14159)),0,v(1,3)/840)} ; added limit-better models lower plate voltage limit condition
*G2 4 3 VALUE={(EXP(EX*(LOG((V(4,3)/MU)+V(2,3)))))/KG2} * this equation sucks
G2 4 3 value= {(I(G1)*32/(V(1,3) + 6))} ; this models change in current with change in plate first var changes ig2, second pushes right/left
RCP 1 3 1G ; FOR CONVERGENCE
C1 2 3 {CCG} ; CATHODE-GRID 1
C2 1 2 {CPG1} ; GRID 1-PLATE
C3 1 3 {CCP} ; CATHODE-PLATE
R1 2 5 {RGI} ; FOR GRID CURRENT
D3 5 3 DX ; FOR GRID CURRENT
.MODEL DX D(IS=1N RS=1 CJO=10PF TT=1N)
.ENDS

Enjoy,
Stephie <3
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Sim City All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group