mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
94 lines
3.6 KiB
C++
94 lines
3.6 KiB
C++
/***************************************************************************
|
|
cpwopen.cpp
|
|
---------------
|
|
begin : Sun May 01 2005
|
|
copyright : (C) 2005 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 "cpwopen.h"
|
|
#include "extsimkernels/spicecompat.h"
|
|
|
|
|
|
CPWopen::CPWopen()
|
|
{
|
|
Description = QObject::tr("coplanar open");
|
|
Simulator = spicecompat::simQucsator;
|
|
|
|
Lines.append(new qucs::Line(-30, 0,-18, 0,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-13, -8, 0, -8,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-23, 8,-10, 8,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-13, -8,-23, 8,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 0, -8,-10, 8,QPen(Qt::darkBlue,2)));
|
|
|
|
Lines.append(new qucs::Line(-25,-13, 11,-13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-25, 13, -5, 13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 11,-13, -5, 13,QPen(Qt::darkBlue,2)));
|
|
|
|
Lines.append(new qucs::Line(-24,-21,-16,-13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-16,-21, -8,-13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( -8,-21, 0,-13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 0,-21, 8,-13,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 8,-21, 15,-14,QPen(Qt::darkBlue,2)));
|
|
|
|
Lines.append(new qucs::Line( 10,-11, 15, -6,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 7, -6, 15, 2,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 4, -1, 15, 10,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( 1, 4, 15, 18,QPen(Qt::darkBlue,2)));
|
|
|
|
Lines.append(new qucs::Line(-25, 18,-22, 21,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-22, 13,-14, 21,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line(-14, 13, -6, 21,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( -6, 13, 2, 21,QPen(Qt::darkBlue,2)));
|
|
Lines.append(new qucs::Line( -2, 9, 10, 21,QPen(Qt::darkBlue,2)));
|
|
|
|
Ports.append(new Port(-30, 0));
|
|
|
|
x1 = -30; y1 =-24;
|
|
x2 = 17; y2 = 24;
|
|
|
|
tx = x1+4;
|
|
ty = y2+4;
|
|
Model = "COPEN";
|
|
Name = "CL";
|
|
|
|
Props.append(new Property("Subst", "Subst1", true,
|
|
QObject::tr("name of substrate definition")));
|
|
Props.append(new Property("W", "1 mm", true,
|
|
QObject::tr("width of the line")));
|
|
Props.append(new Property("S", "1 mm", true,
|
|
QObject::tr("width of a gap")));
|
|
Props.append(new Property("G", "5 mm", true,
|
|
QObject::tr("width of gap at end of line")));
|
|
Props.append(new Property("Backside", "Air", false,
|
|
QObject::tr("material at the backside of the substrate")+
|
|
" [Metal, Air]"));
|
|
}
|
|
|
|
CPWopen::~CPWopen()
|
|
{
|
|
}
|
|
|
|
Component* CPWopen::newOne()
|
|
{
|
|
return new CPWopen();
|
|
}
|
|
|
|
Element* CPWopen::info(QString& Name, char* &BitmapFile, bool getNewOne)
|
|
{
|
|
Name = QObject::tr("Coplanar Open");
|
|
BitmapFile = (char *) "cpwopen";
|
|
|
|
if(getNewOne) return new CPWopen();
|
|
return 0;
|
|
}
|