示例#1
0
def test_pmv():
    """ Test the PMV function using the reference table from the ASHRAE 55 2017"""
    for row in data_test_pmv:
        assert (round(
            pmv(row["tdb"], row["tr"], row["vr"], row["rh"], row["met"],
                row["clo"]),
            1,
        )) == row["pmv"]
示例#2
0
 def calculatePMV(self):
     vr = v_relative(self.relativeAirVelocity, self.metabolicRate)
     result = pmv(self.tempAir, self.tempRadiant, vr, self.relativeHumidity, self.metabolicRate, self.clothingInsulation, wme=0, standard='ASHRAE', units='SI')
     return result
示例#3
0
def test_pmv():
    """ Test the PMV function using the reference table from the ASHRAE 55 2017"""
    for row in data_test_pmv:
        assert (round(
            pmv(row['tdb'], row['tr'], row['vr'], row['rh'], row['met'],
                row['clo']), 1)) == row['pmv']