Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/substrate.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                           substrate.cpp  -  description
00003                              -------------------
00004     begin                : Sat Aug 23 2003
00005     copyright            : (C) 2003 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 "substrate.h"
00019 
00020 
00021 Substrate::Substrate()
00022 {
00023   Description = QObject::tr("substrate definition");
00024 
00025   Lines.append(new Line(-30,-16, 30,-16,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line(-30,-12, 30,-12,QPen(Qt::darkBlue,2)));
00027   Lines.append(new Line(-30, 16, 30, 16,QPen(Qt::darkBlue,2)));
00028   Lines.append(new Line(-30, 12, 30, 12,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line(-30,-16,-30, 16,QPen(Qt::darkBlue,2)));
00030   Lines.append(new Line( 30,-16, 30, 16,QPen(Qt::darkBlue,2)));
00031 
00032   Lines.append(new Line(-30,-16, 16,-40,QPen(Qt::darkBlue,2)));
00033   Lines.append(new Line( 30,-16, 80,-40,QPen(Qt::darkBlue,2)));
00034   Lines.append(new Line( 30,-12, 80,-36,QPen(Qt::darkBlue,2)));
00035   Lines.append(new Line( 30, 12, 80,-16,QPen(Qt::darkBlue,2)));
00036   Lines.append(new Line( 30, 16, 80,-12,QPen(Qt::darkBlue,2)));
00037   Lines.append(new Line( 16,-40, 80,-40,QPen(Qt::darkBlue,2)));
00038   Lines.append(new Line( 80,-40, 80,-12,QPen(Qt::darkBlue,2)));
00039   
00040   Lines.append(new Line(-30,  0,-18,-12,QPen(Qt::darkBlue,1)));
00041   Lines.append(new Line(-22, 12,  2,-12,QPen(Qt::darkBlue,1)));
00042   Lines.append(new Line( -2, 12, 22,-12,QPen(Qt::darkBlue,1)));
00043   Lines.append(new Line( 18, 12, 30,  0,QPen(Qt::darkBlue,1)));
00044 
00045   Lines.append(new Line( 30,  1, 37,  8,QPen(Qt::darkBlue,1)));
00046   Lines.append(new Line( 37,-15, 52,  0,QPen(Qt::darkBlue,1)));
00047   Lines.append(new Line( 52,-22, 66, -8,QPen(Qt::darkBlue,1)));
00048   Lines.append(new Line( 66,-30, 80,-16,QPen(Qt::darkBlue,1)));
00049 
00050   x1 = -34; y1 =-44;
00051   x2 =  84; y2 = 20;
00052 
00053   tx = x1+4;
00054   ty = y2+4;
00055   Model = "SUBST";
00056   Name  = "Subst";
00057 
00058   Props.append(new Property("er", "9.8", true,
00059     QObject::tr("relative permittivity")));
00060   Props.append(new Property("h", "1 mm", true,
00061     QObject::tr("thickness in meters")));
00062   Props.append(new Property("t", "35 um", true,
00063     QObject::tr("thickness of metalization")));
00064   Props.append(new Property("tand", "2e-4", true,
00065     QObject::tr("loss tangent")));
00066   Props.append(new Property("rho", "0.022e-6", true,
00067     QObject::tr("specific resistance of metal")));
00068   Props.append(new Property("D", "0.15e-6", true,
00069     QObject::tr("rms substrate roughness")));
00070 }
00071 
00072 Substrate::~Substrate()
00073 {
00074 }
00075 
00076 Component* Substrate::newOne()
00077 {
00078   return new Substrate();
00079 }
00080 
00081 Element* Substrate::info(QString& Name, char* &BitmapFile, bool getNewOne)
00082 {
00083   Name = QObject::tr("Substrate");
00084   BitmapFile = (char *) "substrate";
00085 
00086   if(getNewOne)  return new Substrate();
00087   return 0;
00088 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines