My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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(QPen::darkBlue,3)));
26  Lines.append(new Line( 30, 0, 8, 0,QPen(QPen::darkBlue,3)));
27 
28  Arcs.append(new Arc(-11,-10, 22, 26, 16*30,16*120,QPen(QPen::darkBlue,1)));
29  Arcs.append(new Arc(-19,-13, 10, 13,16*205,16*130,QPen(QPen::darkBlue,1)));
30  Arcs.append(new Arc( 9,-13, 10, 13,16*205,16*130,QPen(QPen::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 }