My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msline.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  msline.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 "msline.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip line");
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, 23, -8,QPen(QPen::darkBlue,2)));
28  Lines.append(new Line(-23, 8, 13, 8,QPen(QPen::darkBlue,2)));
29  Lines.append(new Line(-13, -8,-23, 8,QPen(QPen::darkBlue,2)));
30  Lines.append(new Line( 23, -8, 13, 8,QPen(QPen::darkBlue,2)));
31 
32  Ports.append(new Port(-30, 0));
33  Ports.append(new Port( 30, 0));
34 
35  x1 = -30; y1 =-11;
36  x2 = 30; y2 = 11;
37 
38  tx = x1+4;
39  ty = y2+4;
40  Model = "MLIN";
41  Name = "MS";
42 
43  Props.append(new Property("Subst", "Subst1", true,
44  QObject::tr("name of substrate definition")));
45  Props.append(new Property("W", "1 mm", true,
46  QObject::tr("width of the line")));
47  Props.append(new Property("L", "10 mm", true,
48  QObject::tr("length of the line")));
49  Props.append(new Property("Model", "Hammerstad", false,
50  QObject::tr("quasi-static microstrip model")+
51  " [Hammerstad, Wheeler, Schneider]"));
52  Props.append(new Property("DispModel", "Kirschning", false,
53  QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
54  "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
55  Props.append(new Property("Temp", "26.85", false,
56  QObject::tr("simulation temperature in degree Celsius")));
57 }
58 
60 {
61 }
62 
64 {
65  return new MSline();
66 }
67 
68 Element* MSline::info(QString& Name, char* &BitmapFile, bool getNewOne)
69 {
70  Name = QObject::tr("Microstrip Line");
71  BitmapFile = (char *) "msline";
72 
73  if(getNewOne) return new MSline();
74  return 0;
75 }