My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tunneldiode.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2008 by Michael Margraf
3  email : michael.margraf@alumni.tu-berlin.de
4  ***************************************************************************/
5 
6 /***************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  ***************************************************************************/
14 
15 #include "tunneldiode.h"
16 
18 {
19  Description = QObject::tr("resonance tunnel diode");
20 
21  Props.append(new Property("Ip", "4 mA", true,
22  QObject::tr("peak current")));
23  Props.append(new Property("Iv", "0.6 mA", true,
24  QObject::tr("valley current")));
25  Props.append(new Property("Vv", "0.8 V", true,
26  QObject::tr("valley voltage")));
27  Props.append(new Property("Wr", "2.7e-20", false,
28  QObject::tr("resonance energy in Ws")));
29  Props.append(new Property("eta", "1e-20", false,
30  QObject::tr("Fermi energy in Ws")));
31  Props.append(new Property("dW", "4.5e-21", false,
32  QObject::tr("resonance width in Ws")));
33  Props.append(new Property("Tmax", "0.95", false,
34  QObject::tr("maximum of transmission")));
35  Props.append(new Property("de", "0.9", false,
36  QObject::tr("fitting factor for electron density")));
37  Props.append(new Property("dv", "2.0", false,
38  QObject::tr("fitting factor for voltage drop")));
39  Props.append(new Property("nv", "16", false,
40  QObject::tr("fitting factor for diode current")));
41 
42  Props.append(new Property("Cj0", "80 fF", false,
43  QObject::tr("zero-bias depletion capacitance")));
44  Props.append(new Property("M", "0.5", false,
45  QObject::tr("grading coefficient")));
46  Props.append(new Property("Vj", "0.5 V", false,
47  QObject::tr("junction potential")));
48  Props.append(new Property("te", "0.6 ps", false,
49  QObject::tr("life-time of electrons")));
50 
51  Props.append(new Property("Temp", "26.85", false,
52  QObject::tr("simulation temperature in degree Celsius")));
53  Props.append(new Property("Area", "1.0", false,
54  QObject::tr("default area for diode")));
55 
56  Lines.append(new Line(-30, 0,-12, 0,QPen(Qt::darkBlue,2)));
57  Lines.append(new Line( 12, 0, 30, 0,QPen(Qt::darkBlue,2)));
58  Lines.append(new Line(-12, -9,-12, 9,QPen(Qt::darkBlue,2)));
59  Lines.append(new Line( 0, -9, 0, 9,QPen(Qt::darkBlue,2)));
60  Lines.append(new Line( 12, -9, 12, 9,QPen(Qt::darkBlue,2)));
61  Lines.append(new Line(-12, -9, 12, 9,QPen(Qt::darkBlue,2)));
62  Lines.append(new Line(-12, 9, 12, -9,QPen(Qt::darkBlue,2)));
63 
64  Ports.append(new Port(-30, 0));
65  Ports.append(new Port( 30, 0));
66 
67  x1 = -30; y1 = -11;
68  x2 = 30; y2 = 11;
69 
70  tx = x1+4;
71  ty = y2+4;
72  Model = "RTD";
73  Name = "D";
74 }
75 
76 // -------------------------------------------------------------------
78 {
79  return new TunnelDiode();
80 }
81 
82 Element* TunnelDiode::info(QString& Name, char* &BitmapFile, bool getNewOne)
83 {
84  Name = QObject::tr("Tunnel Diode");
85  BitmapFile = (char *) "tunneldiode";
86 
87  if(getNewOne) return new TunnelDiode();
88  return 0;
89 }