ladybug-legacy
ladybug-legacy copied to clipboard
Make The Bio-Chart's Comfort Polygon Generated by PMV
This includes work on the part of @ayezioro in that the upper and lower temperature limits of the comfort polygon can be determined with the current PMV function in LB_LB. It also includes @chriswmackey making a function to take a max humidity ratio and a temperature and returning a relative humidity limit. This will allow @ayezioro to make the left and right boundaries of the comfort polygon.
@ayezioro , I am just letting you know that I put a function into LB_LB that can calculate what your relative humidity should be for a given humidity ratio, barometric pressure, and temperature. The function is under the comfortModels class and is as follows: calcRelHumidFromHumidRatio(self, absHumid, barPress, temperature)
To use this function to trim your comfort polygon, you are going to take a given max or min humidity ratio from the ASHRAE standard or from user input. For barPress, you will take and the barometric pressure in Pascals (either from the weather file or just take the air pressure at sea level as default). Next, you will take the temperature from the lower limit of your chart and the upper limit of your chart and pass each of these through the function with the previous criteria. The function will output two corresponding relative humidity values. Next, you plot these two points (of temperature and relative humidity) onto your bio chart and draw a line between them. You then use this line to trim the left and right sides of your polygon.
Let me know if you have any questions.
I think we might just move the bio chart out of WIP in it's current non-PMV state. Then we will implement this all correctly from the ground up in LB[+]
Hi @chriswmackey, Relly on your judgment :-) -A.