Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bondwire.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  bondwire.cpp
3  --------------
4  begin : Dec 22 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 "bondwire.h"
19 
20 
22 {
23  Description = QObject::tr("bond wire");
24 
25  Lines.append(new Line(-30, 0,-8, 0,QPen(Qt::darkBlue,3)));
26  Lines.append(new Line( 30, 0, 8, 0,QPen(Qt::darkBlue,3)));
27 
28  Arcs.append(new Arc(-11,-10, 22, 26, 16*30,16*120,QPen(Qt::darkBlue,1)));
29  Arcs.append(new Arc(-19,-13, 10, 13,16*205,16*130,QPen(Qt::darkBlue,1)));
30  Arcs.append(new Arc( 9,-13, 10, 13,16*205,16*130,QPen(Qt::darkBlue,1)));
31 
32  Ports.append(new Port(-30, 0));
33  Ports.append(new Port( 30, 0));
34 
35  x1 = -30; y1 =-13;
36  x2 = 30; y2 = 5;
37 
38  tx = x1+4;
39  ty = y2+4;
40  Model = "BOND";
41  Name = "Line";
42 
43  Props.append(new Property("L", "3 mm", true,
44  QObject::tr("length of the wire")));
45  Props.append(new Property("D", "50 um", true,
46  QObject::tr("diameter of the wire")));
47  Props.append(new Property("H", "2 mm", true,
48  QObject::tr("height above ground plane")));
49  Props.append(new Property("rho", "0.022e-6", false,
50  QObject::tr("specific resistance of the metal")));
51  Props.append(new Property("mur", "1", false,
52  QObject::tr("relative permeability of the metal")));
53  Props.append(new Property("Model", "FREESPACE", false,
54  QObject::tr("bond wire model")+" [FREESPACE, MIRROR, DESCHARLES]"));
55  Props.append(new Property("Subst", "Subst1", true,
56  QObject::tr("substrate")));
57  Props.append(new Property("Temp", "26.85", false,
58  QObject::tr("simulation temperature in degree Celsius")));
59 }
60 
62 {
63  return new BondWire();
64 }
65 
66 Element* BondWire::info(QString& Name, char* &BitmapFile, bool getNewOne)
67 {
68  Name = QObject::tr("Bond Wire");
69  BitmapFile = (char *) "bondwire";
70 
71  if(getNewOne) return new BondWire();
72  return 0;
73 }
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
Component * newOne()
Definition: bondwire.cpp:61
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
QString Name
Definition: component.h:80
BondWire()
Definition: bondwire.cpp:21
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: bondwire.cpp:66
int x2
Definition: element.h:153