Beispiel #1
0
        public double GetNuRoughness(
            FlowUnitsType fType,
            PressUnitsType pType,
            double spGrav)
        {
            switch (Type)
            {
            case LinkType.FCV:
                return(NUConvert.RevertFlow(fType, Kc));

            case LinkType.PRV:
            case LinkType.PSV:
            case LinkType.PBV:
                return(NUConvert.RevertPressure(pType, spGrav, Kc));
            }
            return(Kc);
        }
Beispiel #2
0
 public double GetNuInitVolume(UnitsType type)
 {
     return(NUConvert.RevertVolume(type, V0));
 }
Beispiel #3
0
 public double GetNuElevation(UnitsType units)
 {
     return(NUConvert.RevertDistance(units, Elevation));
 }
Beispiel #4
0
 public void SetNuLenght(UnitsType utype, double value)
 {
     Lenght = NUConvert.ConvertDistance(utype, value);
 }
Beispiel #5
0
 public double GetNuLength(UnitsType utype)
 {
     return(NUConvert.RevertDistance(utype, Lenght));
 }
Beispiel #6
0
 public void SetNuShutoffHead(UnitsType utype, double value)
 {
     H0 = NUConvert.ConvertDistance(utype, value);
 }
Beispiel #7
0
 public void SetNuMaxFlow(FlowUnitsType utype, double value)
 {
     Qmax = NUConvert.ConvertFlow(utype, value);
 }
Beispiel #8
0
 public void SetNuFlowCoefficient(UnitsType utype, double value)
 {
     FlowCoefficient = NUConvert.ConvertPower(utype, value);
 }
Beispiel #9
0
 public void SetNuMaximumHead(UnitsType type, double value)
 {
     Hmax = NUConvert.RevertDistance(type, value);
 }
Beispiel #10
0
 public void SetNuInitVolume(UnitsType type, double value)
 {
     V0 = NUConvert.ConvertVolume(type, value);
 }
Beispiel #11
0
 public void SetNuInitHead(UnitsType type, double value)
 {
     H0 = NUConvert.RevertDistance(type, value);
 }
Beispiel #12
0
 public void SetNuArea(UnitsType type, double value)
 {
     Area = NUConvert.ConvertArea(type, value);
 }
Beispiel #13
0
 public double GetNuMixCompartimentSize(UnitsType type)
 {
     return(NUConvert.RevertVolume(type, V1Max));
 }
Beispiel #14
0
 public double GetNuMinVolume(UnitsType type)
 {
     return(NUConvert.RevertVolume(type, Vmin));
 }
Beispiel #15
0
 public double GetNuMinimumHead(UnitsType type)
 {
     return(NUConvert.RevertDistance(type, Hmin));
 }
Beispiel #16
0
 public double GetNuMaxFlow(FlowUnitsType utype)
 {
     return(NUConvert.RevertFlow(utype, Qmax));
 }
Beispiel #17
0
 public double GetNuShutoffHead(UnitsType utype)
 {
     return(NUConvert.RevertDistance(utype, Hmax));
 }
Beispiel #18
0
 public void SetNuMaxVolume(UnitsType type, double value)
 {
     Vmax = NUConvert.ConvertVolume(type, value);
 }
Beispiel #19
0
 public void SetNuInitialFlow(FlowUnitsType utype, double value)
 {
     Q0 = NUConvert.ConvertFlow(utype, value);
 }
Beispiel #20
0
 public void SetNuMinimumHead(UnitsType type, double value)
 {
     Hmin = NUConvert.ConvertArea(type, value);
 }
Beispiel #21
0
 public void SetNuMaxHead(UnitsType utype, double value)
 {
     Hmax = NUConvert.ConvertDistance(utype, value);
 }
Beispiel #22
0
 public void SetNuMixCompartimentSize(UnitsType type, double value)
 {
     V1Max = NUConvert.ConvertVolume(type, value);
 }
Beispiel #23
0
 public double GetNuDiameter(UnitsType utype)
 {
     return(NUConvert.RevertDiameter(utype, Diameter));
 }
Beispiel #24
0
 public double GetBaseNu(FlowUnitsType units)
 {
     return(NUConvert.RevertFlow(units, Base));
 }
Beispiel #25
0
 public void SetNuDiameter(UnitsType utype, double value)
 {
     Diameter = NUConvert.ConvertDistance(utype, value);
 }
Beispiel #26
0
 public void SetBaseNu(FlowUnitsType units, double value)
 {
     Base = NUConvert.ConvertFlow(units, value);
 }
Beispiel #27
0
 public double GetNuFlowCoefficient(UnitsType utype)
 {
     return(NUConvert.RevertPower(utype, FlowCoefficient));
 }
Beispiel #28
0
 public double GetNuInitialFlow(FlowUnitsType utype)
 {
     return(NUConvert.RevertFlow(utype, Q0));
 }
Beispiel #29
0
 public void SetNuElevation(UnitsType units, double elev)
 {
     Elevation = NUConvert.ConvertDistance(units, elev);
 }
Beispiel #30
0
 public double GetNuInitHead(UnitsType type)
 {
     return(NUConvert.RevertDistance(type, H0));
 }