qucs_s/qucs/components/msstep.cpp
2023-06-09 13:54:29 +03:00

82 lines
3.0 KiB
C++

/***************************************************************************
msstep.cpp - description
-------------------
begin : Sat Aug 23 2003
copyright : (C) 2003 by Michael Margraf
email : michael.margraf@alumni.tu-berlin.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "msstep.h"
#include "extsimkernels/spicecompat.h"
MSstep::MSstep()
{
Description = QObject::tr("microstrip impedance step");
Simulator = spicecompat::simQucsator;
Lines.append(new qucs::Line(-30, 0,-18, 0,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 18, 0, 30, 0,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line(-18,-12, 0,-12,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line(-18, 12, 0, 12,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line(-18,-12,-18, 12,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 0, -7, 18, -7,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 0, 7, 18, 7,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 18, -7, 18, 7,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 0,-12, 0, -7,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line( 0, 7, 0, 12,QPen(Qt::darkBlue,2)));
Lines.append(new qucs::Line(-22, -4,-26, 4,QPen(Qt::darkBlue,2)));
Ports.append(new Port(-30, 0));
Ports.append(new Port( 30, 0));
x1 = -30; y1 =-13;
x2 = 30; y2 = 13;
tx = x1+4;
ty = y2+4;
Model = "MSTEP";
Name = "MS";
Props.append(new Property("Subst", "Subst1", true,
QObject::tr("substrate")));
Props.append(new Property("W1", "2 mm", true,
QObject::tr("width 1 of the line")));
Props.append(new Property("W2", "1 mm", true,
QObject::tr("width 2 of the line")));
Props.append(new Property("MSModel", "Hammerstad", false,
QObject::tr("quasi-static microstrip model")+
" [Hammerstad, Wheeler, Schneider]"));
Props.append(new Property("MSDispModel", "Kirschning", false,
QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
"Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
}
MSstep::~MSstep()
{
}
Component* MSstep::newOne()
{
return new MSstep();
}
Element* MSstep::info(QString& Name, char* &BitmapFile, bool getNewOne)
{
Name = QObject::tr("Microstrip Step");
BitmapFile = (char *) "msstep";
if(getNewOne) return new MSstep();
return 0;
}