and I notice that P is included in one equation and left out in the next equation. However if you use atm it should work well with P included in both. The formula gives RH, but you can find Tw numerically. Say you are trying to find the wet bulb temperature for Td=45 deg C and RH=67%. Then let RHS=formula given and start with Tw=45 (represents RH=100%) and decrease Tw iteratively until RHS<=67. Find Tw at that point.
You can use a wet bulb calculator to check how accurate the above formula is (pretty good).
Your inputs into the program will be Td, RH and P. (P in atm). (Td is dry bulb T and Tw is wet bulb T.)
You can use a wet bulb calculator to check how accurate the above formula is (pretty good).
Your inputs into the program will be Td, RH and P. (P in atm). (Td is dry bulb T and Tw is wet bulb T.)
Code in Pascal:
Tw:=Td;
repeat
Tw:=Tw-0.001;
A:=611.2*exp(17.502*Tw/(240.97+Tw))-66.8745*(1+0.00115*Tw)*P*(Td-Tw);
B:=6.112*exp(17.502*Td/(240.97+Td));
RHS:=A/B;
until (RHS<=rh);
{Now print Tw}
No comments:
Post a Comment