| | |
| | | double p1_mpa = 0; |
| | | CurrentViewModel moinitor_press_inlet = |
| | | this._bindingData.Find(x => x.Entity.MonitorType == Model.eMonitorType.压力 && x.Entity.Property == TProduct.Model.MonitorTypeProperty.进口); |
| | | if (moinitor_press_inlet != null && |
| | | moinitor_press_inlet.Entity != null && |
| | | moinitor_press_inlet.Entity.PipeDia != null && |
| | | moinitor_press_inlet.Entity.PipeDia > 10) |
| | | { |
| | | double mm_inlet_dia = moinitor_press_inlet.Entity.PipeDia.Value; |
| | | rPipeInV = OtherPressCoeff * total_flow_m3h / mm_inlet_dia / mm_inlet_dia; |
| | | } |
| | | //if (moinitor_press_inlet != null && |
| | | // moinitor_press_inlet.Entity != null && |
| | | // moinitor_press_inlet.Entity.PipeDia != null && |
| | | // moinitor_press_inlet.Entity.PipeDia > 10) |
| | | //{ |
| | | // double mm_inlet_dia = moinitor_press_inlet.Entity.PipeDia.Value; |
| | | // rPipeInV = OtherPressCoeff * total_flow_m3h / mm_inlet_dia / mm_inlet_dia; |
| | | //} |
| | | |
| | | if (_ratedParas.IsInletPress) |
| | | {//可能测点有,配有标高 |
| | |
| | | double p2_mpa = Eventech.Common.UnitHHelper.toMPa(press_unit, moinitor_press_outlet.DispValue.Value); |
| | | |
| | | double rPipeOutV = 0; |
| | | if (moinitor_press_outlet.Entity.PipeDia != null && moinitor_press_outlet.Entity.PipeDia > 10) |
| | | { |
| | | double mm_outlet_dia = moinitor_press_outlet.Entity.PipeDia.Value; |
| | | rPipeOutV = OtherPressCoeff * total_flow_m3h / mm_outlet_dia / mm_outlet_dia; |
| | | } |
| | | //if (moinitor_press_outlet.Entity.PipeDia != null && moinitor_press_outlet.Entity.PipeDia > 10) |
| | | //{ |
| | | // double mm_outlet_dia = moinitor_press_outlet.Entity.PipeDia.Value; |
| | | // rPipeOutV = OtherPressCoeff * total_flow_m3h / mm_outlet_dia / mm_outlet_dia; |
| | | //} |
| | | |
| | | //高差 |
| | | double gc = 0; |
| | | if (moinitor_press_outlet.Entity.Elevation != null) |
| | | { |
| | | gc += moinitor_press_outlet.Entity.Elevation.Value; |
| | | } |
| | | if (moinitor_press_inlet != null && |
| | | moinitor_press_inlet.Entity != null && |
| | | moinitor_press_inlet.Entity.Elevation != null) |
| | | { |
| | | gc -= moinitor_press_inlet.Entity.Elevation.Value; |
| | | } |
| | | //if (moinitor_press_outlet.Entity.Elevation != null) |
| | | //{ |
| | | // gc += moinitor_press_outlet.Entity.Elevation.Value; |
| | | //} |
| | | //if (moinitor_press_inlet != null && |
| | | // moinitor_press_inlet.Entity != null && |
| | | // moinitor_press_inlet.Entity.Elevation != null) |
| | | //{ |
| | | // gc -= moinitor_press_inlet.Entity.Elevation.Value; |
| | | //} |
| | | |
| | | double rVDif = (rPipeOutV * rPipeOutV - rPipeInV * rPipeInV) / (TProduct.ConstantParas.g * 2.0); |
| | | double total_head = Math.Round(UnitConvert_MPa2M(p2_mpa - p1_mpa) + rVDif + gc, 2); |