My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msgap.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  msgap.cpp - description
3  -------------------
4  begin : Sat Jul 17 2004
5  copyright : (C) 2004 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 "msgap.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip gap");
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(-13, -8, 0, -8,QPen(QPen::darkBlue,2)));
28  Lines.append(new Line( 10, -8, 23, -8,QPen(QPen::darkBlue,2)));
29  Lines.append(new Line(-23, 8,-10, 8,QPen(QPen::darkBlue,2)));
30  Lines.append(new Line( 0, 8, 13, 8,QPen(QPen::darkBlue,2)));
31 
32  Lines.append(new Line(-13, -8,-23, 8,QPen(QPen::darkBlue,2)));
33  Lines.append(new Line( 23, -8, 13, 8,QPen(QPen::darkBlue,2)));
34  Lines.append(new Line( 0, -8,-10, 8,QPen(QPen::darkBlue,2)));
35  Lines.append(new Line( 10, -8, 0, 8,QPen(QPen::darkBlue,2)));
36 
37  Lines.append(new Line(-22, -4,-26, 4,QPen(QPen::darkBlue,2)));
38 
39  Ports.append(new Port(-30, 0));
40  Ports.append(new Port( 30, 0));
41 
42  x1 = -30; y1 =-11;
43  x2 = 30; y2 = 11;
44 
45  tx = x1+4;
46  ty = y2+4;
47  Model = "MGAP";
48  Name = "MS";
49 
50  Props.append(new Property("Subst", "Subst1", true,
51  QObject::tr("name of substrate definition")));
52  Props.append(new Property("W1", "1 mm", true,
53  QObject::tr("width of the line 1")));
54  Props.append(new Property("W2", "1 mm", true,
55  QObject::tr("width of the line 2")));
56  Props.append(new Property("S", "1 mm", true,
57  QObject::tr("spacing between the microstrip ends")));
58  Props.append(new Property("MSModel", "Hammerstad", false,
59  QObject::tr("quasi-static microstrip model")+
60  " [Hammerstad, Wheeler, Schneider]"));
61  Props.append(new Property("MSDispModel", "Kirschning", false,
62  QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
63  "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
64 }
65 
67 {
68 }
69 
71 {
72  return new MSgap();
73 }
74 
75 Element* MSgap::info(QString& Name, char* &BitmapFile, bool getNewOne)
76 {
77  Name = QObject::tr("Microstrip Gap");
78  BitmapFile = (char *) "msgap";
79 
80  if(getNewOne) return new MSgap();
81  return 0;
82 }