My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msstep.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  msstep.cpp - description
3  -------------------
4  begin : Sat Aug 23 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "msstep.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip impedance step");
24 
25  Lines.append(new Line(-30, 0,-18, 0,QPen(QPen::darkBlue,2)));
26  Lines.append(new Line( 18, 0, 30, 0,QPen(QPen::darkBlue,2)));
27  Lines.append(new Line(-18,-12, 0,-12,QPen(QPen::darkBlue,2)));
28  Lines.append(new Line(-18, 12, 0, 12,QPen(QPen::darkBlue,2)));
29  Lines.append(new Line(-18,-12,-18, 12,QPen(QPen::darkBlue,2)));
30  Lines.append(new Line( 0, -7, 18, -7,QPen(QPen::darkBlue,2)));
31  Lines.append(new Line( 0, 7, 18, 7,QPen(QPen::darkBlue,2)));
32  Lines.append(new Line( 18, -7, 18, 7,QPen(QPen::darkBlue,2)));
33  Lines.append(new Line( 0,-12, 0, -7,QPen(QPen::darkBlue,2)));
34  Lines.append(new Line( 0, 7, 0, 12,QPen(QPen::darkBlue,2)));
35 
36  Lines.append(new Line(-22, -4,-26, 4,QPen(QPen::darkBlue,2)));
37 
38  Ports.append(new Port(-30, 0));
39  Ports.append(new Port( 30, 0));
40 
41  x1 = -30; y1 =-13;
42  x2 = 30; y2 = 13;
43 
44  tx = x1+4;
45  ty = y2+4;
46  Model = "MSTEP";
47  Name = "MS";
48 
49  Props.append(new Property("Subst", "Subst1", true,
50  QObject::tr("substrate")));
51  Props.append(new Property("W1", "2 mm", true,
52  QObject::tr("width 1 of the line")));
53  Props.append(new Property("W2", "1 mm", true,
54  QObject::tr("width 2 of the line")));
55  Props.append(new Property("MSModel", "Hammerstad", false,
56  QObject::tr("quasi-static microstrip model")+
57  " [Hammerstad, Wheeler, Schneider]"));
58  Props.append(new Property("MSDispModel", "Kirschning", false,
59  QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
60  "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
61 }
62 
64 {
65 }
66 
68 {
69  return new MSstep();
70 }
71 
72 Element* MSstep::info(QString& Name, char* &BitmapFile, bool getNewOne)
73 {
74  Name = QObject::tr("Microstrip Step");
75  BitmapFile = (char *) "msstep";
76 
77  if(getNewOne) return new MSstep();
78  return 0;
79 }