def calculateWindSpeedAtStackHeight(stabilityClass,windRefSpeed,stackHeight,WindRefHeight=10,terrain='urban'): windProfileExponent = getWindProfileExponent(stabilityClass,terrain) #print(WindRefHeight) windSpeed = windRefSpeed * pow((stackHeight/WindRefHeight),windProfileExponent) return config.customRounding(windSpeed)
def round(self, value): return config.customRounding(value)
def calculateIsopleths(sigma_y, gas, c_x_0_0_t,unit): lc50, ldhl, loc = calculateIsoplethConcentration(gas,unit) y_loc = calculateIsoplethsHelper(sigma_y, loc, c_x_0_0_t) y_ldhl = calculateIsoplethsHelper(sigma_y, ldhl, c_x_0_0_t) y_lc50 = calculateIsoplethsHelper(sigma_y, lc50, c_x_0_0_t) return config.customRounding(y_lc50), config.customRounding(y_ldhl), config.customRounding(y_loc)