Qucs-GUI
0.0.18
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
qucs
components
dc_sim.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
dc_sim.cpp - description
3
-------------------
4
begin : Sat Aug 23 2003
5
copyright : (C) 2003 by Michael Margraf
6
email : michael.margraf@alumni.tu-berlin.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#include <QtGui>
18
#include "
dc_sim.h
"
19
#include "
main.h
"
20
21
22
DC_Sim::DC_Sim
()
23
{
24
Description
= QObject::tr(
"dc simulation"
);
25
26
QString s =
Description
;
27
int
a = s.find(
" "
);
28
int
b = s.findRev(
" "
);
29
if
(a != -1 && b != -1) {
30
if
(a > (
int
) s.length() - b) b = a;
31
}
32
if
(a < 8 || s.length() - b < 8) b = -1;
33
if
(b != -1) s[b] =
'\n'
;
34
35
Texts
.append(
new
Text
(0, 0, s.left(b), Qt::darkBlue,
QucsSettings
.
largeFontSize
));
36
if
(b != -1)
37
Texts
.append(
new
Text
(0, 0, s.mid(b+1), Qt::darkBlue,
QucsSettings
.
largeFontSize
));
38
39
x1
= -10;
y1
= -9;
40
x2
=
x1
+128;
y2
=
y1
+41;
41
42
tx
= 0;
43
ty
=
y2
+1;
44
Model
=
".DC"
;
45
Name
=
"DC"
;
46
47
Props
.append(
new
Property
(
"Temp"
,
"26.85"
,
false
,
48
QObject::tr(
"simulation temperature in degree Celsius"
)));
49
Props
.append(
new
Property
(
"reltol"
,
"0.001"
,
false
,
50
QObject::tr(
"relative tolerance for convergence"
)));
51
Props
.append(
new
Property
(
"abstol"
,
"1 pA"
,
false
,
52
QObject::tr(
"absolute tolerance for currents"
)));
53
Props
.append(
new
Property
(
"vntol"
,
"1 uV"
,
false
,
54
QObject::tr(
"absolute tolerance for voltages"
)));
55
Props
.append(
new
Property
(
"saveOPs"
,
"no"
,
false
,
56
QObject::tr(
"put operating points into dataset"
)+
57
" [yes, no]"
));
58
Props
.append(
new
Property
(
"MaxIter"
,
"150"
,
false
,
59
QObject::tr(
"maximum number of iterations until error"
)));
60
Props
.append(
new
Property
(
"saveAll"
,
"no"
,
false
,
61
QObject::tr(
"save subcircuit nodes into dataset"
)+
62
" [yes, no]"
));
63
Props
.append(
new
Property
(
"convHelper"
,
"none"
,
false
,
64
QObject::tr(
"preferred convergence algorithm"
)+
65
" [none, gMinStepping, SteepestDescent, LineSearch, Attenuation, SourceStepping]"
));
66
Props
.append(
new
Property
(
"Solver"
,
"CroutLU"
,
false
,
67
QObject::tr(
"method for solving the circuit matrix"
)+
68
" [CroutLU, DoolittleLU, HouseholderQR, HouseholderLQ, GolubSVD]"
));
69
}
70
71
DC_Sim::~DC_Sim
()
72
{
73
}
74
75
Component
*
DC_Sim::newOne
()
76
{
77
return
new
DC_Sim
();
78
}
79
80
Element
*
DC_Sim::info
(QString& Name,
char
* &BitmapFile,
bool
getNewOne)
81
{
82
Name = QObject::tr(
"dc simulation"
);
83
BitmapFile = (
char
*)
"dc"
;
84
85
if
(getNewOne)
return
new
DC_Sim
();
86
return
0;
87
}
DC_Sim::info
static Element * info(QString &, char *&, bool getNewOne=false)
Definition:
dc_sim.cpp:80
Element::y1
int y1
Definition:
element.h:153
QucsSettings
tQucsSettings QucsSettings
Definition:
main.cpp:52
dc_sim.h
Component::tx
int tx
Definition:
component.h:78
Element::y2
int y2
Definition:
element.h:153
Element::x1
int x1
Definition:
element.h:153
main.h
Definitions and declarations for the main application.
Component::ty
int ty
Definition:
component.h:78
Component::Props
Q3PtrList< Property > Props
Definition:
component.h:72
DC_Sim::DC_Sim
DC_Sim()
Definition:
dc_sim.cpp:22
Property
Definition:
element.h:94
Text
Definition:
element.h:82
Component
Definition:
component.h:33
Element
Superclass of all schematic drawing elements.
Definition:
element.h:142
DC_Sim::newOne
Component * newOne()
Definition:
dc_sim.cpp:75
DC_Sim::~DC_Sim
~DC_Sim()
Definition:
dc_sim.cpp:71
Component::Name
QString Name
Definition:
component.h:80
Component::Texts
Q3PtrList< Text > Texts
Definition:
component.h:71
Component::Model
QString Model
Definition:
component.h:80
Component::Description
QString Description
Definition:
component.h:81
tQucsSettings::largeFontSize
float largeFontSize
Definition:
main.h:47
Element::x2
int x2
Definition:
element.h:153
Generated on Mon Sep 1 2014 20:05:19 for Qucs-GUI by
1.8.6