Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Go to the documentation of this file.
1 /*
2  * mosfet.h - mosfet class definitions
3  *
4  * Copyright (C) 2004, 2005, 2006, 2008 Stefan Jahn <stefan@lkcc.org>
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this package; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * $Id$
22  *
23  */
25 #ifndef __MOSFET_H__
26 #define __MOSFET_H__
28 class mosfet : public qucs::circuit
29 {
30  public:
31  CREATOR (mosfet);
32  void calcSP (nr_double_t);
33  void calcNoiseSP (nr_double_t);
34  void calcDC (void);
35  void initDC (void);
36  void restartDC (void);
37  void initModel (void);
38  void saveOperatingPoints (void);
39  void calcOperatingPoints (void);
40  void loadOperatingPoints (void);
41  void initAC (void);
42  void calcAC (nr_double_t);
43  void calcNoiseAC (nr_double_t);
44  void initTR (void);
45  void calcTR (nr_double_t);
47  private:
48  nr_double_t transientChargeTR (int, nr_double_t&, nr_double_t, nr_double_t);
49  nr_double_t transientChargeSR (int, nr_double_t&, nr_double_t, nr_double_t);
50  qucs::matrix calcMatrixY (nr_double_t);
51  qucs::matrix calcMatrixCy (nr_double_t);
53  private:
55  nr_double_t gbs, gbd, gm, gds, gmb, Ids, DrainControl, SourceControl;
56  nr_double_t Leff, MOSdir, beta, Cox, Phi, Ga, Vto, Rs, Rd;
57  nr_double_t Qgd, Qgs, Qbd, Qbs, Qgb, Ibs, Ibd;
58  nr_double_t Ugd, Ugs, Ubs, Ubd, Uds, Ugb;
63 };
65 #endif /* __MOSFET_H__ */
nr_double_t Ugs
Definition: mosfet.h:58
nr_double_t transientChargeTR(int, nr_double_t &, nr_double_t, nr_double_t)
Definition: mosfet.cpp:689
nr_double_t DrainControl
Definition: mosfet.h:55
nr_double_t UgsPrev
Definition: mosfet.h:54
nr_double_t Phi
Definition: mosfet.h:56
void calcNoiseSP(nr_double_t)
Definition: mosfet.cpp:95
nr_double_t gds
Definition: mosfet.h:55
nr_double_t Uon
Definition: mosfet.h:54
nr_double_t Rs
Definition: mosfet.h:56
int transientMode
Definition: mosfet.h:59
nr_double_t Ga
Definition: mosfet.h:56
nr_double_t beta
Definition: mosfet.h:56
nr_double_t Qbd
Definition: mosfet.h:57
nr_double_t Ubs
Definition: mosfet.h:58
void restartDC(void)
Definition: mosfet.cpp:123
nr_double_t Udsat
Definition: mosfet.h:54
nr_double_t UgdPrev
Definition: mosfet.h:54
nr_double_t gbs
Definition: mosfet.h:55
nr_double_t gmb
Definition: mosfet.h:55
void initAC(void)
Definition: mosfet.cpp:643
nr_double_t gm
Definition: mosfet.h:55
qucs::circuit * rg
Definition: mosfet.h:62
nr_double_t MOSdir
Definition: mosfet.h:56
nr_double_t SourceControl
Definition: mosfet.h:55
nr_double_t Ugb
Definition: mosfet.h:58
void calcDC(void)
Definition: mosfet.cpp:379
nr_double_t Rd
Definition: mosfet.h:56
qucs::circuit * rd
Definition: mosfet.h:61
base class for qucs circuit elements.
Definition: circuit.h:92
void calcTR(nr_double_t)
Definition: mosfet.cpp:660
qucs::matrix calcMatrixCy(nr_double_t)
Definition: mosfet.cpp:99
qucs::circuit * rs
Definition: mosfet.h:60
void initDC(void)
Definition: mosfet.cpp:132
nr_double_t Qgb
Definition: mosfet.h:57
nr_double_t Ubd
Definition: mosfet.h:58
nr_double_t Vto
Definition: mosfet.h:56
nr_double_t Ibd
Definition: mosfet.h:57
nr_double_t UbdPrev
Definition: mosfet.h:54
void calcSP(nr_double_t)
Definition: mosfet.cpp:47
void saveOperatingPoints(void)
Definition: mosfet.cpp:543
nr_double_t Qgs
Definition: mosfet.h:57
nr_double_t Ugd
Definition: mosfet.h:58
Dense complex matrix class This class defines a matrix object with its methods, operators and operati...
Definition: matrix.h:92
void initTR(void)
Definition: mosfet.cpp:655
nr_double_t Ibs
Definition: mosfet.h:57
nr_double_t transientChargeSR(int, nr_double_t &, nr_double_t, nr_double_t)
Definition: mosfet.cpp:700
nr_double_t Qgd
Definition: mosfet.h:57
void calcAC(nr_double_t)
Definition: mosfet.cpp:647
void calcOperatingPoints(void)
Definition: mosfet.cpp:566
nr_double_t Ids
Definition: mosfet.h:55
nr_double_t UdsPrev
Definition: mosfet.h:54
nr_double_t Uds
Definition: mosfet.h:58
nr_double_t UbsPrev
Definition: mosfet.h:54
void initModel(void)
Definition: mosfet.cpp:190
nr_double_t gbd
Definition: mosfet.h:55
void calcNoiseAC(nr_double_t)
Definition: mosfet.cpp:651
nr_double_t Cox
Definition: mosfet.h:56
nr_double_t Qbs
Definition: mosfet.h:57
void loadOperatingPoints(void)
Definition: mosfet.cpp:557
nr_double_t Leff
Definition: mosfet.h:56
qucs::matrix calcMatrixY(nr_double_t)
Definition: mosfet.cpp:51