Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 bondwire.cpp 00003 -------------- 00004 begin : Dec 22 2006 00005 copyright : (C) 2006 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "bondwire.h" 00019 00020 00021 BondWire::BondWire() 00022 { 00023 Description = QObject::tr("bond wire"); 00024 00025 Lines.append(new Line(-30, 0,-8, 0,QPen(Qt::darkBlue,3))); 00026 Lines.append(new Line( 30, 0, 8, 0,QPen(Qt::darkBlue,3))); 00027 00028 Arcs.append(new Arc(-11,-10, 22, 26, 16*30,16*120,QPen(Qt::darkBlue,1))); 00029 Arcs.append(new Arc(-19,-13, 10, 13,16*205,16*130,QPen(Qt::darkBlue,1))); 00030 Arcs.append(new Arc( 9,-13, 10, 13,16*205,16*130,QPen(Qt::darkBlue,1))); 00031 00032 Ports.append(new Port(-30, 0)); 00033 Ports.append(new Port( 30, 0)); 00034 00035 x1 = -30; y1 =-13; 00036 x2 = 30; y2 = 5; 00037 00038 tx = x1+4; 00039 ty = y2+4; 00040 Model = "BOND"; 00041 Name = "Line"; 00042 00043 Props.append(new Property("L", "3 mm", true, 00044 QObject::tr("length of the wire"))); 00045 Props.append(new Property("D", "50 um", true, 00046 QObject::tr("diameter of the wire"))); 00047 Props.append(new Property("H", "2 mm", true, 00048 QObject::tr("height above ground plane"))); 00049 Props.append(new Property("rho", "0.022e-6", false, 00050 QObject::tr("specific resistance of the metal"))); 00051 Props.append(new Property("mur", "1", false, 00052 QObject::tr("relative permeability of the metal"))); 00053 Props.append(new Property("Model", "FREESPACE", false, 00054 QObject::tr("bond wire model")+" [FREESPACE, MIRROR, DESCHARLES]")); 00055 Props.append(new Property("Subst", "Subst1", true, 00056 QObject::tr("substrate"))); 00057 Props.append(new Property("Temp", "26.85", false, 00058 QObject::tr("simulation temperature in degree Celsius"))); 00059 } 00060 00061 Component* BondWire::newOne() 00062 { 00063 return new BondWire(); 00064 } 00065 00066 Element* BondWire::info(QString& Name, char* &BitmapFile, bool getNewOne) 00067 { 00068 Name = QObject::tr("Bond Wire"); 00069 BitmapFile = (char *) "bondwire"; 00070 00071 if(getNewOne) return new BondWire(); 00072 return 0; 00073 }