Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/triac.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                                  triac.cpp
00003                                 -----------
00004     begin                : Sun Dec 23 2007
00005     copyright            : (C) 2007 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "triac.h"
00019 
00020 
00021 Triac::Triac()
00022 {
00023   Description = QObject::tr("triac (bidirectional thyristor)");
00024 
00025   Lines.append(new Line(  0,-30,  0, -6,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line(  0, 30,  0,  6,QPen(Qt::darkBlue,2)));
00027 
00028   Lines.append(new Line(-18,  6, 18,  6,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line(-18, -6, 18, -6,QPen(Qt::darkBlue,2)));
00030   Lines.append(new Line( -9,  6,-18, -6,QPen(Qt::darkBlue,2)));
00031   Lines.append(new Line( -9,  6,  0, -6,QPen(Qt::darkBlue,2)));
00032   Lines.append(new Line(  9, -6,  0,  6,QPen(Qt::darkBlue,2)));
00033   Lines.append(new Line(  9, -6, 18,  6,QPen(Qt::darkBlue,2)));
00034 
00035   Lines.append(new Line(-13, 10, -9,  6,QPen(Qt::darkBlue,2)));
00036   Lines.append(new Line(-30, 10,-13, 10,QPen(Qt::darkBlue,2)));
00037 
00038   Ports.append(new Port(  0,-30));
00039   Ports.append(new Port(  0, 30));
00040   Ports.append(new Port(-30, 10));
00041 
00042   x1 = -30; y1 = -30;
00043   x2 =  20; y2 =  30;
00044 
00045   tx = x2+4;
00046   ty = y1+4;
00047   Model = "Triac";
00048   Name  = "D";
00049 
00050   Props.append(new Property("Vbo", "400 V", false,
00051   QObject::tr("(bidirectional) breakover voltage")));
00052   Props.append(new Property("Igt", "50 uA", true,
00053   QObject::tr("(bidirectional) gate trigger current")));
00054   Props.append(new Property("Cj0", "10 pF", false,
00055   QObject::tr("parasitic capacitance")));
00056   Props.append(new Property("Is", "1e-10 A", false,
00057   QObject::tr("saturation current")));
00058   Props.append(new Property("N", "2", false,
00059   QObject::tr("emission coefficient")));
00060   Props.append(new Property("Ri", "10 Ohm", false,
00061   QObject::tr("intrinsic junction resistance")));
00062   Props.append(new Property("Rg", "5 Ohm", false,
00063   QObject::tr("gate resistance")));
00064   Props.append(new Property("Temp", "26.85", false,
00065   QObject::tr("simulation temperature")));
00066 }
00067 
00068 Component* Triac::newOne()
00069 {
00070   return new Triac();
00071 }
00072 
00073 Element* Triac::info(QString& Name, char* &BitmapFile, bool getNewOne)
00074 {
00075   Name = QObject::tr("Triac");
00076   BitmapFile = (char *) "triac";
00077 
00078   if(getNewOne)  return new Triac();
00079   return 0;
00080 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines