| | |
| | | |
| | | var station_info = _service_station.Get(); |
| | | var station1 = station_info.Station1; |
| | | var station2 = station_info.Station2; |
| | | var station1_same_type_flag_group_first = GlobalHelper.Station1SameTypeFlagGroupFirst; |
| | | var station2_same_type_flag_group_first = GlobalHelper.Station2SameTypeFlagGroupFirst; |
| | | var station2 = station_info.Station2; |
| | | var station1_schedule_config = _service_schedule_config.GetStation1(); |
| | | var station2_schedule_config = _service_schedule_config.GetStation2(); |
| | | var station1_flag_list = GlobalHelper.Station1FlagList; |
| | |
| | | |
| | | helper.Initial(open_flag_list, station1_schedule_config); |
| | | |
| | | var optimal_combine = helper.GetOptAnaCombine(station1, station1_same_type_flag_group_first, flag_inlet_water_level_dict, target_flow, target_head); |
| | | var optimal_combine = helper.GetOptAnaCombine(station1, flag_inlet_water_level_dict, target_flow, target_head); |
| | | if (optimal_combine == null) |
| | | { |
| | | station1_scada_schedule.Set(); |
| | |
| | | RequestID = 0, |
| | | Station = IStation.eDockingStation.Ch1s, |
| | | TotalFlow = optimal_combine.TotalFlow, |
| | | TotalHead = optimal_combine.TotalHead, |
| | | TotalPressure = optimal_combine.TotalPressure, |
| | | TotalPower = optimal_combine.TotalPower, |
| | | TotalEfficiency = optimal_combine.TotalEfficiency, |
| | | WP = optimal_combine.WP, |
| | |
| | | Flag = fre_pump.Flag, |
| | | Flow = fre_pump.Flow, |
| | | Head = fre_pump.Head, |
| | | PressureDiff = fre_pump.PressureDiff, |
| | | Power = fre_pump.Power, |
| | | Efficiency = fre_pump.Efficiency, |
| | | Frequency = fre_pump.Frequency, |
| | | Speed = fre_pump.Speed |
| | | Efficiency = fre_pump.Eff, |
| | | Hz = fre_pump.Frequency, |
| | | Rpm = fre_pump.Speed |
| | | }; |
| | | station1_scada_schedule.SchedulePumpList.Add(schedule_pump); |
| | | } |
| | |
| | | var open_flag_list = IntListHelper.ToList(run_flags); |
| | | |
| | | helper.Initial(open_flag_list, station2_schedule_config); |
| | | var optimal_combine = helper.GetOptAnaCombine(station2, station2_same_type_flag_group_first, flag_inlet_water_level_dict, target_flow, target_head); |
| | | var optimal_combine = helper.GetOptAnaCombine(station2, flag_inlet_water_level_dict, target_flow, target_head); |
| | | if (optimal_combine == null) |
| | | { |
| | | continue; |
| | |
| | | RequestID = 0, |
| | | Station = IStation.eDockingStation.Ch2s, |
| | | TotalFlow = optimal_combine.TotalFlow, |
| | | TotalHead = optimal_combine.TotalHead, |
| | | TotalPressure = optimal_combine.TotalPressure, |
| | | TotalPower = optimal_combine.TotalPower, |
| | | TotalEfficiency = optimal_combine.TotalEfficiency, |
| | | WP = optimal_combine.WP, |
| | |
| | | Flag = fre_pump.Flag, |
| | | Flow = fre_pump.Flow, |
| | | Head = fre_pump.Head, |
| | | PressureDiff = fre_pump.PressureDiff, |
| | | Power = fre_pump.Power, |
| | | Efficiency = fre_pump.Efficiency, |
| | | Frequency = fre_pump.Frequency, |
| | | Speed = fre_pump.Speed |
| | | Efficiency = fre_pump.Eff, |
| | | Hz = fre_pump.Frequency, |
| | | Rpm = fre_pump.Speed |
| | | }; |
| | | station2_scada_schedule.SchedulePumpList.Add(schedule_pump); |
| | | } |
| | |
| | | var ana_fre_pump = ana_fre_pump_list.Find(x => x.Flag == flag); |
| | | if (ana_fre_pump != null) |
| | | { |
| | | speed_ratio = (float)(ana_fre_pump.Frequency / 50); |
| | | speed_ratio = (float)(ana_fre_pump.Hz / 50); |
| | | station1_scada_schedule.TotalPowerM += ana_fre_pump.Power; |
| | | } |
| | | pattern_dict[pattern_id] = new float[] { speed_ratio }; |
| | |
| | | var ana_fre_pump = ana_fre_pump_list.Find(x => x.Flag == flag); |
| | | if (ana_fre_pump != null) |
| | | { |
| | | speed_ratio = (float)(ana_fre_pump.Frequency / 50); |
| | | speed_ratio = (float)(ana_fre_pump.Hz / 50); |
| | | } |
| | | pattern_dict[pattern_id] = new float[] { speed_ratio }; |
| | | } |
| | |
| | | var ana_fre_pump = ana_fre_pump_list.Find(x => x.Flag == flag); |
| | | if (ana_fre_pump != null) |
| | | { |
| | | speed_ratio = (float)(ana_fre_pump.Frequency / 50); |
| | | speed_ratio = (float)(ana_fre_pump.Hz / 50); |
| | | station1_scada_schedule.TotalPowerM += ana_fre_pump.Power; |
| | | } |
| | | pattern_dict[pattern_id] = new float[] { speed_ratio }; |
| | |
| | | var ana_fre_pump = ana_fre_pump_list.Find(x => x.Flag == flag); |
| | | if (ana_fre_pump != null) |
| | | { |
| | | speed_ratio = (float)(ana_fre_pump.Frequency / 50); |
| | | speed_ratio = (float)(ana_fre_pump.Hz / 50); |
| | | } |
| | | pattern_dict[pattern_id] = new float[] { speed_ratio }; |
| | | } |