Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/msline.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                           msline.cpp  -  description
00003                              -------------------
00004     begin                : Sat Aug 23 2003
00005     copyright            : (C) 2003 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 "msline.h"
00019 
00020 
00021 MSline::MSline()
00022 {
00023   Description = QObject::tr("microstrip line");
00024 
00025   Lines.append(new Line(-30,  0,-18,  0,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line( 18,  0, 30,  0,QPen(Qt::darkBlue,2)));
00027   Lines.append(new Line(-13, -8, 23, -8,QPen(Qt::darkBlue,2)));
00028   Lines.append(new Line(-23,  8, 13,  8,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line(-13, -8,-23,  8,QPen(Qt::darkBlue,2)));
00030   Lines.append(new Line( 23, -8, 13,  8,QPen(Qt::darkBlue,2)));
00031 
00032   Ports.append(new Port(-30, 0));
00033   Ports.append(new Port( 30, 0));
00034 
00035   x1 = -30; y1 =-11;
00036   x2 =  30; y2 = 11;
00037 
00038   tx = x1+4;
00039   ty = y2+4;
00040   Model = "MLIN";
00041   Name  = "MS";
00042 
00043   Props.append(new Property("Subst", "Subst1", true,
00044   QObject::tr("name of substrate definition")));
00045   Props.append(new Property("W", "1 mm", true,
00046   QObject::tr("width of the line")));
00047   Props.append(new Property("L", "10 mm", true,
00048   QObject::tr("length of the line")));
00049   Props.append(new Property("Model", "Hammerstad", false,
00050   QObject::tr("quasi-static microstrip model")+
00051         " [Hammerstad, Wheeler, Schneider]"));
00052   Props.append(new Property("DispModel", "Kirschning", false,
00053   QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
00054   "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
00055   Props.append(new Property("Temp", "26.85", false,
00056   QObject::tr("simulation temperature in degree Celsius")));
00057 }
00058 
00059 MSline::~MSline()
00060 {
00061 }
00062 
00063 Component* MSline::newOne()
00064 {
00065   return new MSline();
00066 }
00067 
00068 Element* MSline::info(QString& Name, char* &BitmapFile, bool getNewOne)
00069 {
00070   Name = QObject::tr("Microstrip Line");
00071   BitmapFile = (char *) "msline";
00072 
00073   if(getNewOne)  return new MSline();
00074   return 0;
00075 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines