float TempData(float vol)
{
float temp=0;
double Rt=0;
double Rp=10000;
float T2=273.15+25;
float Bx=3950;
float Ka=273.15;
//double R=0;
Rt=vol*10000/(3.3-vol);
// R= log((double)Rt/Rp);
temp=(1/(log((double)Rt/Rp)/3435+(1/T2)))-Ka-10.0f;
if(temp<=0.0f)
{
temp = 0.1f;
}
return temp;
}
|