Line | |
---|
1 | #include "transfelec.h"
|
---|
2 |
|
---|
3 | // D. Yvon, CE Saclay, DAPNIA/SPP, 08/99
|
---|
4 |
|
---|
5 | // Parametres du circuit electrique de lecture SST
|
---|
6 | // Valeurs Importantes du circuit electrique: 4 filtres
|
---|
7 |
|
---|
8 | static double T1=0.15; static double C1=1.5e-9; // Farad
|
---|
9 | static double T2=5.e-4; // secondes
|
---|
10 | static double R2=1.E9; // Ohm
|
---|
11 | static double T3=4.7e-3; // secondes
|
---|
12 | static double R4=1.e5; static double R3=1.8e3; // Ohm
|
---|
13 | static double T4=4.84e-3;
|
---|
14 |
|
---|
15 |
|
---|
16 | Dcomplex TransFuncElec::TsFunc(double w){
|
---|
17 | Dcomplex tempComp= H1(w)*H2(w)*H3(w)*H4(w); // Omega en radian/s
|
---|
18 | return tempComp;
|
---|
19 | }
|
---|
20 |
|
---|
21 | Dcomplex TransFuncElec::H1(double w) {
|
---|
22 | Dcomplex tempComp=jImagPur*T1*w/(1.+jImagPur*T1*w); // passe haut
|
---|
23 | return tempComp;
|
---|
24 | }
|
---|
25 |
|
---|
26 | Dcomplex TransFuncElec::H2(double w) {
|
---|
27 | return R2/(1.+jImagPur*T2*w); // passe bas leger
|
---|
28 | }
|
---|
29 |
|
---|
30 | Dcomplex TransFuncElec::H3(double w) {
|
---|
31 | return 1.+ R4/(R3*(1.+jImagPur*T3*w)); // passe bas dominant n°1
|
---|
32 | }
|
---|
33 |
|
---|
34 | Dcomplex TransFuncElec::H4(double w) {
|
---|
35 | if (w==0.) return 0.;
|
---|
36 | else return 1./(1.+jImagPur*T4*w); // passe bas dominant n°2
|
---|
37 | }
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.