src/Utils.cpp

changeset 498
c6f957fa7442
parent 454
2dfead81c72f
equal deleted inserted replaced
497:cbd7644d99ca 498:c6f957fa7442
875 P = round(P * 100.0) / 100.0; 875 P = round(P * 100.0) / 100.0;
876 //qDebug() << " GetPressureBar(" << gl << "," << T << ") P:" << P; 876 //qDebug() << " GetPressureBar(" << gl << "," << T << ") P:" << P;
877 return P; 877 return P;
878 } 878 }
879 879
880
881 double Utils::HydroCorrection(double mg, double tr, double tc)
882 {
883 double trf = tr * 1.8 + 32;
884 double tcf = tc * 1.8 + 32;
885
886 return mg * ((1.00130346 - 1.34722124E-4 * trf + 2.04052596E-6 * trf * trf - 2.32820948E-9 * trf * trf * trf) /
887 (1.00130346 - 1.34722124E-4 * tcf + 2.04052596E-6 * tcf * tcf - 2.32820948E-9 * tcf * tcf * tcf));
888 }
889
890

mercurial