- Timestamp:
- 11/27/13 16:18:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r17346 r17395 93 93 double GetTempPT1000(double R) const 94 94 { 95 const double R0 = 1000; // 1kOhm 96 97 const double a = 3.893e-3; 98 99 return (R/R0 - 1)/a; 95 // This is precise within the range 5degC and 25degC 96 // by 3e-3 degC. At 0degC and 30degC it overestimates the 97 // temperature by 0.025 degC. At -10degC it is ~0.9degC 98 // and at 40degC ~0.05degC. 99 const double x = R/1000; 100 return -193.804 + 96.0651*x + 134.673*x*x - 36.9091*x*x*x; 101 102 //const double R0 = 1000; // 1kOhm 103 //const double a = 3.893e-3; 104 //return (R/R0 - 1)/a; 100 105 } 101 106
Note:
See TracChangeset
for help on using the changeset viewer.