duheng
2024-12-24 f47abf649b85ce5fd21725fedaebba359a6dfd1d
Hydro/Yw.EPAnet.Calcu.Core/03-calcu/NetworkPathAnalyseExtensions.cs
@@ -81,7 +81,7 @@
                    length += p.Length;
            }
            nodeEnd.Distance = length;
            chartNodes.Add(nodeEnd);
            for (int i=0;i<links.Count;i++)
@@ -96,8 +96,8 @@
                    //根据p.diameter和p.flow计算流速
                    double velocity = dictLinks[ p.Id].Flow/ (Math.PI * Math.Pow(p.Diameter / 2, 2));
                    //根据流速计算局部水头损失
                    double minorloss1 = p.StartMinorloss* Math.Pow(velocity, 2) / 2 / 9.81;
                    double minorloss2 = p.EndMinorloss * Math.Pow(velocity, 2) / 2 / 9.81;
                    double minorloss1 = dictLinks[p.Id].StartMinorLoss;
                    double minorloss2 = dictLinks[p.Id].EndMinorLoss;
                    if (i < links.Count - 1)