duheng
2025-03-28 b825d70578b0ddf6d479569887c194f919795dad
WinFrmUI/PBS.WinFrmUI.Hydro/05-system-curve/00-core/SystemCurvePage.cs
@@ -13,6 +13,7 @@
                _curveLowerPressure = l;
                _curveAveragePressure = a;
            };
        }
@@ -65,7 +66,7 @@
            var file_path = _facility.ModelPath;
            var minDemand = 0;   // 最小总需水量(m³/h)
            var maxDemand = _facility.MaxWaterDemand ?? 45;  // 最大总需水量(m³/h) 
            var calcCount = 20000;           // 计算次数
            var calcCount = 1000;           // 计算次数
            var maxHeight = 22.5; //顶楼标高
            var requiredEndPressure = _facility.TerminalPressure ?? 15; //静压 
            CalcSystemCurve(file_path, minDemand, maxDemand, maxHeight, requiredEndPressure, calcCount);
@@ -90,8 +91,6 @@
            double requiredEndPressure,
            int calcCount)
        {
            var pressure = 0d;
            var nodeConfig = new List<WaterDistributionCalculator.NodeConfig>();
            var waterPointCalcList = new List<WaterPointCalcViewModel>(calcCount);
            using (var helper = new Yw.Epanet.InteropXHelper())
@@ -156,7 +155,6 @@
                    foreach (var node in nodeConfig)
                    {
                        var userNodeIndex = node.NodeIndex;
                        pressure = 0;
                        //自由压力=绝对压力-标高
                        //默认起始点压力为最低水位,所以用 绝对压力 当自由压力 (绝对压力=自由压力+标高)