| | |
| | | |
| | | |
| | | //计算(带修正 ) |
| | | static public bool CalcPoints(PumpGroupPt ratedParas, double n, |
| | | static public bool CalcPoints(PumpQueryPointViewModel ratedParas, double n, |
| | | ref List<Yw.Geometry.Point2d> pt_qh_list, |
| | | ref List<Yw.Geometry.Point2d> pt_qe_list, |
| | | ref List<Yw.Geometry.Point2d> pt_qp_list, |
| | |
| | | } |
| | | |
| | | |
| | | static public bool CalcPoints(PumpGroupPt ratedParas, double n, |
| | | ref List<PumpGroupPt> correctPoints, bool isSxp, int stageNumber) |
| | | static public bool CalcPoints(PumpQueryPointViewModel ratedParas, double n, |
| | | ref List<PumpQueryPointViewModel> correctPoints, bool isSxp, int stageNumber) |
| | | { |
| | | List<Yw.Geometry.Point2d> pt_qh_list = null; |
| | | List<Yw.Geometry.Point2d> pt_qe_list = null; |
| | |
| | | return false; |
| | | int iCout = pt_qh_list.Count; |
| | | |
| | | correctPoints = new List<PumpGroupPt>(); |
| | | correctPoints = new List<PumpQueryPointViewModel>(); |
| | | for (int i = 0; i < iCout; i++) |
| | | { |
| | | correctPoints.Add(new PumpGroupPt() |
| | | correctPoints.Add(new PumpQueryPointViewModel() |
| | | { |
| | | ID = i, |
| | | Id = i.ToString(), |
| | | Q = pt_qh_list[i].X, |
| | | H = pt_qh_list[i].Y, |
| | | E = pt_qe_list[i].Y, |
| | |
| | | } |
| | | |
| | | //计算(带修正) |
| | | static public bool CalcPoints(PumpGroupPt ratedParas, double n, double? K0, |
| | | static public bool CalcPoints(PumpQueryPointViewModel ratedParas, double n, double? K0, |
| | | ref List<Yw.Geometry.Point2d> pt_qh_list, |
| | | ref List<Yw.Geometry.Point2d> pt_qe_list, |
| | | ref List<Yw.Geometry.Point2d> pt_qp_list, |
| | |
| | | } |
| | | |
| | | //原始(不修正) |
| | | private static bool Create(PumpGroupPt ratedParas1, double n, |
| | | private static bool Create(PumpQueryPointViewModel ratedParas1, double n, |
| | | ref List<Yw.Geometry.Point2d> pt_qh_list, ref List<Yw.Geometry.Point2d> pt_qe_list, ref List<Yw.Geometry.Point2d> pt_qp_list, ref List<Yw.Geometry.Point2d> pointsNPSH, bool isSxp, int stageNumber) |
| | | { |
| | | pt_qh_list = null; |
| | |
| | | int count = 0; |
| | | int i = 0; |
| | | |
| | | double calcP = ratedParas1.P; |
| | | double calcE = ratedParas1.E; |
| | | double calcP = ratedParas1.P.Value; |
| | | double calcE = ratedParas1.E.Value; |
| | | double calcQ = ratedParas1.Q; |
| | | if (isSxp) |
| | | calcQ = ratedParas1.Q / 2; |