My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
phototransistor.core.h
Go to the documentation of this file.
1 /*
2  * phototransistor.core.h - device class definitions for phototransistor module
3  *
4  * This is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  */
10 
11 #ifndef __phototransistor_H__
12 #define __phototransistor_H__
13 
14 class phototransistor : public circuit
15 {
16  public:
18 
19  void initDC (void);
20  void restartDC (void);
21  void calcDC (void);
22  void saveOperatingPoints (void);
23  void loadOperatingPoints (void);
24  void calcOperatingPoints (void);
25  void initAC (void);
26  void calcAC (nr_double_t);
27  void initSP (void);
28  void calcSP (nr_double_t);
29  void calcNoiseAC (nr_double_t);
30  void calcNoiseSP (nr_double_t);
31  void initTR (void);
32  void calcTR (nr_double_t);
33  void initHB (int);
34  void calcHB (int);
35 
36  private:
37  void initVerilog (void);
38  void calcVerilog (void);
39  void initModel (void);
40  void loadVariables (void);
41  void initializeModel (void);
42  void initializeInstance (void);
43  void initialStep (void);
44  void finalStep (void);
45  matrix calcMatrixY (nr_double_t);
46  matrix calcMatrixCy (nr_double_t);
47 
48  private:
49  int doHB;
50  int doAC;
51  int doTR;
52 
53  nr_double_t _freq;
54  nr_double_t _rhs[9];
55  nr_double_t _qhs[9];
56  nr_double_t _ghs[9];
57  nr_double_t _chs[9];
58  nr_double_t _jstat[9][9];
59  nr_double_t _jdyna[9][9];
60  nr_double_t _white_pwr[9][9];
61  nr_double_t _flicker_pwr[9][9];
62  nr_double_t _flicker_exp[9][9];
63  nr_double_t _charges[9][9];
64  nr_double_t _caps[9][9][9][9];
65 
66  // device model parameters
67  nr_double_t Bf;
68  nr_double_t Br;
69  nr_double_t Is;
70  nr_double_t Nf;
71  nr_double_t Nr;
72  nr_double_t Vaf;
73  nr_double_t Var;
74  nr_double_t Mje;
75  nr_double_t Vje;
76  nr_double_t Cje;
77  nr_double_t Mjc;
78  nr_double_t Vjc;
79  nr_double_t Cjc;
80  nr_double_t Tr;
81  nr_double_t Tf;
82  nr_double_t Ikf;
83  nr_double_t Ikr;
84  nr_double_t Rc;
85  nr_double_t Re;
86  nr_double_t Rb;
87  nr_double_t Kf;
88  nr_double_t Ffe;
89  nr_double_t Af;
90  nr_double_t Responsivity;
91  nr_double_t P0;
92  nr_double_t P1;
93  nr_double_t P2;
94  nr_double_t P3;
95  nr_double_t P4;
96 
97  // global model variables
98 
99  //
100  double con1;
101  //
102  double con2;
103  //
104  double con3;
105  //
106  double con4;
107  //
108  double con5;
109  //
110  double con6;
111  //
112  double con8;
113  //
114  double con9;
115  //
116  double con10;
117  //
118  double TwoQ;
119  //
120  double FourKT;
121  //
122  double GMIN;
123 
124 
125 };
126 
127 #endif /* __phototransistor_H__ */