Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 mscoupled.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 "mscoupled.h" 00019 00020 00021 MScoupled::MScoupled() 00022 { 00023 Description = QObject::tr("coupled microstrip line"); 00024 00025 Lines.append(new Line(-30,-12,-16,-12,QPen(Qt::darkBlue,2))); 00026 Lines.append(new Line(-30,-30,-30,-12,QPen(Qt::darkBlue,2))); 00027 Lines.append(new Line( 20,-12, 30,-12,QPen(Qt::darkBlue,2))); 00028 Lines.append(new Line( 30,-30, 30,-12,QPen(Qt::darkBlue,2))); 00029 Lines.append(new Line(-11,-20, 25,-20,QPen(Qt::darkBlue,2))); 00030 Lines.append(new Line(-21, -4, 15, -4,QPen(Qt::darkBlue,2))); 00031 Lines.append(new Line(-11,-20,-21, -4,QPen(Qt::darkBlue,2))); 00032 Lines.append(new Line( 25,-20, 15, -4,QPen(Qt::darkBlue,2))); 00033 00034 Lines.append(new Line(-30, 12,-20, 12,QPen(Qt::darkBlue,2))); 00035 Lines.append(new Line(-30, 30,-30, 12,QPen(Qt::darkBlue,2))); 00036 Lines.append(new Line( 16, 12, 30, 12,QPen(Qt::darkBlue,2))); 00037 Lines.append(new Line( 30, 30, 30, 12,QPen(Qt::darkBlue,2))); 00038 Lines.append(new Line(-15, 4, 21, 4,QPen(Qt::darkBlue,2))); 00039 Lines.append(new Line(-25, 20, 11, 20,QPen(Qt::darkBlue,2))); 00040 Lines.append(new Line(-15, 4,-25, 20,QPen(Qt::darkBlue,2))); 00041 Lines.append(new Line( 21, 4, 11, 20,QPen(Qt::darkBlue,2))); 00042 00043 Ports.append(new Port(-30,-30)); 00044 Ports.append(new Port( 30,-30)); 00045 Ports.append(new Port( 30, 30)); 00046 Ports.append(new Port(-30, 30)); 00047 00048 x1 = -30; y1 =-33; 00049 x2 = 30; y2 = 33; 00050 00051 tx = x1+4; 00052 ty = y2+4; 00053 Model = "MCOUPLED"; 00054 Name = "MS"; 00055 00056 Props.append(new Property("Subst", "Subst1", true, 00057 QObject::tr("name of substrate definition"))); 00058 Props.append(new Property("W", "1 mm", true, 00059 QObject::tr("width of the line"))); 00060 Props.append(new Property("L", "10 mm", true, 00061 QObject::tr("length of the line"))); 00062 Props.append(new Property("S", "1 mm", true, 00063 QObject::tr("spacing between the lines"))); 00064 Props.append(new Property("Model", "Kirschning", false, 00065 QObject::tr("microstrip model")+" [Kirschning, Hammerstad]")); 00066 Props.append(new Property("DispModel", "Kirschning", false, 00067 QObject::tr("microstrip dispersion model")+ 00068 " [Kirschning, Getsinger]")); 00069 Props.append(new Property("Temp", "26.85", false, 00070 QObject::tr("simulation temperature in degree Celsius"))); 00071 } 00072 00073 MScoupled::~MScoupled() 00074 { 00075 } 00076 00077 Component* MScoupled::newOne() 00078 { 00079 return new MScoupled(); 00080 } 00081 00082 Element* MScoupled::info(QString& Name, char* &BitmapFile, bool getNewOne) 00083 { 00084 Name = QObject::tr("Coupled Microstrip Line"); 00085 BitmapFile = (char *) "mscoupled"; 00086 00087 if(getNewOne) return new MScoupled(); 00088 return 0; 00089 }