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