| | |
| | | var vm = new PumpSerialParallelInfoViewModel(); |
| | | vm.Id = item.Id; |
| | | vm.Name = item.Name; |
| | | vm.Color = item.Color; |
| | | vm.IsBp = item.IsBp; |
| | | vm.RatedSpeed = item.RatedSpeed; |
| | | vm.CurrentSpeed = item.CurrentSpeed; |
| | | vm.CurrentHz = Math.Round(item.CurrentSpeed / item.RatedSpeed * 50, 2); |
| | | vm.Qh = new Geometry.CubicSpline2d(item.Qh); |
| | | vm.Qe = new Geometry.CubicSpline2d(item.Qe); |
| | | vm.Qp = new Geometry.CubicSpline2d(item.Qp); |
| | | vm.Color = item.Color; |
| | | vm.RatedN = item.RatedN; |
| | | vm.CurrentN = item.CurrentN; |
| | | vm.CurrentHz = Math.Round(item.CurrentN / item.RatedN * 50, 2); |
| | | vm.CurveQH = new Geometry.CubicSpline2d(item.CurveQH); |
| | | vm.CurveQE = new Geometry.CubicSpline2d(item.CurveQE); |
| | | vm.CurveQP = new Geometry.CubicSpline2d(item.CurveQP); |
| | | vm.ExtendRatio = 100; |
| | | vm.Calc(); |
| | | _all_binding_list.Add(vm); |
| | |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <param name="query_pt"></param> |
| | | public void SetQueryInfo(string id, PumpGroupPt query_pt) |
| | | public void SetQueryInfo(string id, PumpQueryPointViewModel query_pt) |
| | | { |
| | | if (query_pt == null) |
| | | return; |
| | |
| | | return _all_binding_list.Select(x => new PumpSerialParallelInfoViewModel(x)).ToList(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |