mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
2008-06-26 Stefan Jahn <stefan@lkcc.org>
* rectline.cpp (RectLine): Added new rectangular waveguide provided by Bastien. git-svn-id: https://qucs.svn.sourceforge.net/svnroot/qucs/trunk@1540 b5b04e8c-4942-46c9-ab4f-83783d557d1c
This commit is contained in:
parent
ebbf577de5
commit
0dd522a60f
2
NEWS
2
NEWS
@ -26,7 +26,7 @@ files.
|
||||
Version 0.0.15
|
||||
--------------
|
||||
|
||||
* new components: EPFL-EKV NMOS/PMOS V2.6
|
||||
* new components: EPFL-EKV NMOS/PMOS V2.6, rectangular waveguide
|
||||
* new libraries added: PMOSFETs, NMOSFETs, Regulators, Varistors and
|
||||
Ideal
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2008-06-26 Stefan Jahn <stefan@lkcc.org>
|
||||
|
||||
* rectline.cpp (RectLine): Added new rectangular waveguide
|
||||
provided by Bastien.
|
||||
|
||||
2008-06-14 Stefan Jahn <stefan@lkcc.org>
|
||||
|
||||
* EKV26pMOS.cpp (EKV26pMOS), EKV26nMOS.cpp (EKV26nMOS): Added new
|
||||
|
@ -49,7 +49,7 @@ libcomponents_a_SOURCES = phaseshifter.cpp gyrator.cpp componentdialog.cpp \
|
||||
hicumL2p1.cpp HBT_X.cpp verilogfile.cpp vexp.cpp iexp.cpp eqndefined.cpp \
|
||||
vfile.cpp ifile.cpp mod_amp.cpp hic2_full.cpp thyristor.cpp triac.cpp \
|
||||
diac.cpp log_amp.cpp hic0_full.cpp potentiometer.cpp rfedd.cpp rfedd2p.cpp \
|
||||
MESFET.cpp EKV26nMOS.cpp EKV26pMOS.cpp
|
||||
MESFET.cpp EKV26nMOS.cpp EKV26pMOS.cpp rectline.cpp
|
||||
|
||||
nodist_libcomponents_a_SOURCES = $(MOCFILES)
|
||||
|
||||
@ -71,7 +71,7 @@ noinst_HEADERS = $(MOCHEADERS) resistor.h components.h capacitor.h vccs.h \
|
||||
twistedpair.h bondwire.h hicumL2p1.h HBT_X.h verilogfile.h vexp.h iexp.h \
|
||||
eqndefined.h vfile.h ifile.h mod_amp.h hic2_full.h thyristor.h triac.h \
|
||||
diac.h log_amp.h hic0_full.h potentiometer.h rfedd.h rfedd2p.h MESFET.h \
|
||||
EKV26nMOS.h EKV26pMOS.h
|
||||
EKV26nMOS.h EKV26pMOS.h rectline.h
|
||||
|
||||
INCLUDES = $(X11_INCLUDES) $(QT_INCLUDES) -I$(top_srcdir)/qucs
|
||||
|
||||
|
@ -1441,6 +1441,7 @@ Component* getComponentFromName(QString& Line)
|
||||
// letter of their name
|
||||
switch(first) {
|
||||
case 'R' : if(cstr.isEmpty()) c = new Resistor();
|
||||
else if(cstr == "ECTLINE") c = new RectLine();
|
||||
else if(cstr == "us") c = new Resistor(false); // backward capatible
|
||||
else if(cstr == "SFF") c = new RS_FlipFlop();
|
||||
else if(cstr == "elais") c = new Relais();
|
||||
|
@ -59,6 +59,7 @@
|
||||
#include "tline_4port.h"
|
||||
#include "twistedpair.h"
|
||||
#include "coaxialline.h"
|
||||
#include "rectline.h"
|
||||
#include "substrate.h"
|
||||
#include "msline.h"
|
||||
#include "mscoupled.h"
|
||||
@ -130,6 +131,7 @@
|
||||
#include "rfedd.h"
|
||||
#include "rfedd2p.h"
|
||||
|
||||
|
||||
#include "hicumL2p1.h"
|
||||
#include "HBT_X.h"
|
||||
#include "mod_amp.h"
|
||||
|
@ -46,7 +46,7 @@ SOURCES = phaseshifter.cpp gyrator.cpp componentdialog.cpp \
|
||||
hicumL2p1.cpp HBT_X.cpp verilogfile.cpp vexp.cpp iexp.cpp eqndefined.cpp \
|
||||
vfile.cpp ifile.cpp mod_amp.cpp hic2_full.cpp thyristor.cpp triac.cpp \
|
||||
diac.cpp log_amp.cpp hic0_full.cpp potentiometer.cpp rfedd.cpp rfedd2p.cpp \
|
||||
MESFET.cpp EKV26nMOS.cpp EKV26pMOS.cpp
|
||||
MESFET.cpp EKV26nMOS.cpp EKV26pMOS.cpp rectline.cpp
|
||||
|
||||
# List of special Qt files.
|
||||
MOCHEADERS = componentdialog.h spicedialog.h optimizedialog.h spicefile.h
|
||||
|
74
qucs/components/rectline.cpp
Normal file
74
qucs/components/rectline.cpp
Normal file
@ -0,0 +1,74 @@
|
||||
/***************************************************************************
|
||||
rectline.cpp
|
||||
-----------------
|
||||
copyright : (C) 2008 by ROUCARIES Bastien
|
||||
email : roucaries.bastien@gmail.com
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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 "rectline.h"
|
||||
|
||||
|
||||
RectLine::RectLine()
|
||||
{
|
||||
Description = QObject::tr("Rectangular Waveguide");
|
||||
|
||||
Lines.append(new Line(-30, 0,-16, 0,QPen(QPen::darkBlue,2)));
|
||||
Lines.append(new Line( 19, 0, 30, 0,QPen(QPen::darkBlue,2)));
|
||||
Lines.append(new Line(-16, -9, 16, -9,QPen(QPen::darkBlue,2)));
|
||||
Lines.append(new Line(-16, 9, 16, 9,QPen(QPen::darkBlue,2)));
|
||||
|
||||
Ports.append(new Port(-30, 0));
|
||||
Ports.append(new Port( 30, 0));
|
||||
|
||||
x1 = -30; y1 =-12;
|
||||
x2 = 30; y2 = 12;
|
||||
|
||||
tx = x1+4;
|
||||
ty = y2+4;
|
||||
Model = "RECTLINE";
|
||||
Name = "Line";
|
||||
|
||||
Props.append(new Property("a", "2.95 mm", true,
|
||||
QObject::tr("widest side")));
|
||||
Props.append(new Property("b", "0.9 mm", true,
|
||||
QObject::tr("shortest side")));
|
||||
Props.append(new Property("L", "1500 mm", true,
|
||||
QObject::tr("mechanical length of the line")));
|
||||
Props.append(new Property("er", "1", false,
|
||||
QObject::tr("relative permittivity of dielectric")));
|
||||
Props.append(new Property("mur", "1", false,
|
||||
QObject::tr("relative permeability of conductor")));
|
||||
Props.append(new Property("tand", "0", false,
|
||||
QObject::tr("loss tangent")));
|
||||
Props.append(new Property("rho", "0.022e-6", false,
|
||||
QObject::tr("specific resistance of conductor")));
|
||||
Props.append(new Property("Temp", "26.85", false,
|
||||
QObject::tr("simulation temperature in degree Celsius")));
|
||||
}
|
||||
|
||||
RectLine::~RectLine()
|
||||
{
|
||||
}
|
||||
|
||||
Component* RectLine::newOne()
|
||||
{
|
||||
return new RectLine();
|
||||
}
|
||||
|
||||
Element* RectLine::info(QString& Name, char* &BitmapFile, bool getNewOne)
|
||||
{
|
||||
Name = QObject::tr("Rectangular Waveguide");
|
||||
BitmapFile = (char *) "rectline";
|
||||
|
||||
if(getNewOne) return new RectLine();
|
||||
return 0;
|
||||
}
|
32
qucs/components/rectline.h
Normal file
32
qucs/components/rectline.h
Normal file
@ -0,0 +1,32 @@
|
||||
/***************************************************************************
|
||||
rectline.h
|
||||
------------
|
||||
begin : Thu Jun 26 2008
|
||||
copyright : (C) 2008 by Bastien ROUCARIES
|
||||
email : bastien.roucaries@gmail.com
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef RECTLINE_H
|
||||
#define RECTLINE_H
|
||||
|
||||
#include "component.h"
|
||||
|
||||
|
||||
class RectLine : public Component {
|
||||
public:
|
||||
RectLine();
|
||||
~RectLine();
|
||||
Component* newOne();
|
||||
static Element* info(QString&, char* &, bool getNewOne=false);
|
||||
};
|
||||
|
||||
#endif
|
@ -331,6 +331,7 @@ pInfoFunc Probes[] =
|
||||
|
||||
pInfoFunc TransmissionLines[] =
|
||||
{&TLine::info, &TLine_4Port::info, &TwistedPair::info, &CoaxialLine::info,
|
||||
&RectLine::info,
|
||||
&Substrate::info, &MSline::info, &MScoupled::info, &MScorner::info,
|
||||
&MSmbend::info, &MSstep::info, &MStee::info, &MScross::info, &MSopen::info,
|
||||
&MSgap::info, &MSvia::info, &Coplanar::info, &CPWopen::info,
|
||||
|
@ -6444,6 +6444,18 @@ Use: qucsedit [-r] fitxer
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Guiaondas rectángular</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6666,6 +6666,18 @@ Použití: qucsedit [-r] soubor
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Obdélníkový vodič</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6702,6 +6702,18 @@ Verwendung: qucsedit [-r] Datei
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Hohlleiter</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6448,6 +6448,18 @@ Use: qucsedit [-r] archivo
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Guiaondas rectángular</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6472,6 +6472,18 @@ Invocation : qucsedit [-r] fichier
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Guide rectangulaire</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6315,6 +6315,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6442,6 +6442,18 @@ Digitális szimuláció</translation>
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Szögletes hullámvezető</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6617,6 +6617,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Guida d'onda Rettangolare</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6398,6 +6398,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">角ウェーブガイド</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6504,6 +6504,18 @@ Stosowanie: qucsedit [-r] plik
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Falowód prostokątny</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6323,6 +6323,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsApp</name>
|
||||
|
@ -6399,6 +6399,18 @@ Folosire: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6701,6 +6701,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Прямоугольный волновод</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6280,6 +6280,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Rektangulär vågledare</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6295,6 +6295,18 @@ Kullanım: qucsedit [-r] kütük
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Dikdörtgen Dalga Kılavuzu</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsActions</name>
|
||||
|
@ -6302,6 +6302,18 @@ Usage: qucsedit [-r] file
|
||||
<source>noise figure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>widest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>shortest side</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rectangular Waveguide</source>
|
||||
<translation type="unfinished">Прямокутний хвилевід</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QucsApp</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user