constant.py 2.4 KB

1234567891011121314151617181920212223242526272829303132
  1. # ==========算法中涉及的相关变量==========
  2. # EnergyMode = {'极限节能': 1, '标准节能': 2, '安全节能': 3} # 控制模式决定温度限制值,先写死,后续作为产品配置参数
  3. # 在进行温湿度计算时,按照以下温度和湿度范围进行筛选,避免异常数据导致计算发生错误
  4. TerminalTempRange = {'lowerLimit': 0, 'upperLimit': 50}
  5. TerminalHumiRange = {'lowerLimit': 0, 'upperLimit': 100}
  6. # 在进行温湿度限值修正时,用到以下阈值,先写死,后续视情况优化
  7. ModifyTempHumiPara = {'threshold': 0.5, 'quantile': 0.75} # 分别代表阈值和分位数
  8. # 根据监测点情况进行水温计算时,用到以下系数,分别代表温度超标、湿度超标、露点超标、温度不超标、湿度不超标
  9. Coefficient = {'outTemp': 1, 'outHumi': 0.1, 'outDewPoint': 1.25, 'inTemp': 0.5, 'inHumi': 0.05}
  10. # 温湿度超标情况判断结果
  11. ExcessDescription = {'0': '未超标', '1': '温度超标', '2': '露点超标', '3': '湿度超标'}
  12. ExpectedStructure = {
  13. "terminalInfo": ["ahuMeterId", "ahuName", "ahuStartTime", "coolingTempUpper", "coolingHumiUpper", "tempReal",
  14. "humiReal"],
  15. "controlConfigInfo": ["handleService", "controlMode", "isHardwareControl", "calPeriod", "minControlStep",
  16. "chillerWaterTempSetInitial", "chillerWaterTempSetUpper", "chillerWaterTempSetLower",
  17. "energyMode", "controlBasis", "tempMargin", "humiMargin", "mainTempMode", "samplePeriod",
  18. "upTempControlPeriod", "downTempControlPeriod"],
  19. "chillerConfigInfo": ["waterTempControlMode", "isContinuousRun", "coolingShutdownOffset", "coolingRestartOffset",
  20. "safetyPreDiffLowerLimit", "safetyLoadRatioLowerLimit", "chillerTempStep"],
  21. "chillerSafetyPara": ["circuitNumber", "circuitParameter"],
  22. "stationInfo": ["userName", "coolingStationName", "stationId", "runMode", "triggerTime",
  23. "chilledWaterMainTempOut", "chilledWaterMainTempIn", "allChillersInfo"],
  24. "chillerInfo": ["chillerId", "chillerName", "capacityRated", "refriType", "chillerWaterTempSet",
  25. "chillerOffTimeLatest", "offSetTempLatestCooling", "chillerWaterTempOut", "chillerWaterTempIn",
  26. "runStatus", "chillerPowerRatio", "loadRate", "upControlTimeLatest", "downControlTimeLatest"],
  27. }