Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
coaxialline.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  coaxialline.cpp
3  -----------------
4  begin : Sun Jan 29 2006
5  copyright : (C) 2006 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 "coaxialline.h"
19 
20 
22 {
23  Description = QObject::tr("coaxial transmission line");
24 
25  Arcs.append(new Arc(-20, -9, 8, 18, 0, 16*360,QPen(Qt::darkBlue,2)));
26  Arcs.append(new Arc( 11, -9, 8, 18,16*270, 16*180,QPen(Qt::darkBlue,2)));
27 
28  Lines.append(new Line(-30, 0,-16, 0,QPen(Qt::darkBlue,2)));
29  Lines.append(new Line( 19, 0, 30, 0,QPen(Qt::darkBlue,2)));
30  Lines.append(new Line(-16, -9, 16, -9,QPen(Qt::darkBlue,2)));
31  Lines.append(new Line(-16, 9, 16, 9,QPen(Qt::darkBlue,2)));
32 
33  Ports.append(new Port(-30, 0));
34  Ports.append(new Port( 30, 0));
35 
36  x1 = -30; y1 =-12;
37  x2 = 30; y2 = 12;
38 
39  tx = x1+4;
40  ty = y2+4;
41  Model = "COAX";
42  Name = "Line";
43 
44  Props.append(new Property("er", "2.29", true,
45  QObject::tr("relative permittivity of dielectric")));
46  Props.append(new Property("rho", "0.022e-6", false,
47  QObject::tr("specific resistance of conductor")));
48  Props.append(new Property("mur", "1", false,
49  QObject::tr("relative permeability of conductor")));
50  Props.append(new Property("D", "2.95 mm", false,
51  QObject::tr("inner diameter of shield")));
52  Props.append(new Property("d", "0.9 mm", false,
53  QObject::tr("diameter of inner conductor")));
54  Props.append(new Property("L", "1500 mm", true,
55  QObject::tr("mechanical length of the line")));
56  Props.append(new Property("tand", "4e-4", false,
57  QObject::tr("loss tangent")));
58  Props.append(new Property("Temp", "26.85", false,
59  QObject::tr("simulation temperature in degree Celsius")));
60 }
61 
63 {
64 }
65 
67 {
68  return new CoaxialLine();
69 }
70 
71 Element* CoaxialLine::info(QString& Name, char* &BitmapFile, bool getNewOne)
72 {
73  Name = QObject::tr("Coaxial Line");
74  BitmapFile = (char *) "coaxial";
75 
76  if(getNewOne) return new CoaxialLine();
77  return 0;
78 }
Q3PtrList< Line > Lines
Definition: component.h:67
Definition: element.h:55
int y1
Definition: element.h:153
Q3PtrList< struct Arc > Arcs
Definition: component.h:68
int tx
Definition: component.h:78
int y2
Definition: element.h:153
Definition: element.h:72
int x1
Definition: element.h:153
int ty
Definition: component.h:78
Q3PtrList< Property > Props
Definition: component.h:72
Definition: element.h:48
Superclass of all schematic drawing elements.
Definition: element.h:142
Q3PtrList< Port > Ports
Definition: component.h:70
Component * newOne()
Definition: coaxialline.cpp:66
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: coaxialline.cpp:71
QString Name
Definition: component.h:80
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
int x2
Definition: element.h:153