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