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); }
public double GetNuInitVolume(UnitsType type) { return(NUConvert.RevertVolume(type, V0)); }
public double GetNuElevation(UnitsType units) { return(NUConvert.RevertDistance(units, Elevation)); }
public void SetNuLenght(UnitsType utype, double value) { Lenght = NUConvert.ConvertDistance(utype, value); }
public double GetNuLength(UnitsType utype) { return(NUConvert.RevertDistance(utype, Lenght)); }
public void SetNuShutoffHead(UnitsType utype, double value) { H0 = NUConvert.ConvertDistance(utype, value); }
public void SetNuMaxFlow(FlowUnitsType utype, double value) { Qmax = NUConvert.ConvertFlow(utype, value); }
public void SetNuFlowCoefficient(UnitsType utype, double value) { FlowCoefficient = NUConvert.ConvertPower(utype, value); }
public void SetNuMaximumHead(UnitsType type, double value) { Hmax = NUConvert.RevertDistance(type, value); }
public void SetNuInitVolume(UnitsType type, double value) { V0 = NUConvert.ConvertVolume(type, value); }
public void SetNuInitHead(UnitsType type, double value) { H0 = NUConvert.RevertDistance(type, value); }
public void SetNuArea(UnitsType type, double value) { Area = NUConvert.ConvertArea(type, value); }
public double GetNuMixCompartimentSize(UnitsType type) { return(NUConvert.RevertVolume(type, V1Max)); }
public double GetNuMinVolume(UnitsType type) { return(NUConvert.RevertVolume(type, Vmin)); }
public double GetNuMinimumHead(UnitsType type) { return(NUConvert.RevertDistance(type, Hmin)); }
public double GetNuMaxFlow(FlowUnitsType utype) { return(NUConvert.RevertFlow(utype, Qmax)); }
public double GetNuShutoffHead(UnitsType utype) { return(NUConvert.RevertDistance(utype, Hmax)); }
public void SetNuMaxVolume(UnitsType type, double value) { Vmax = NUConvert.ConvertVolume(type, value); }
public void SetNuInitialFlow(FlowUnitsType utype, double value) { Q0 = NUConvert.ConvertFlow(utype, value); }
public void SetNuMinimumHead(UnitsType type, double value) { Hmin = NUConvert.ConvertArea(type, value); }
public void SetNuMaxHead(UnitsType utype, double value) { Hmax = NUConvert.ConvertDistance(utype, value); }
public void SetNuMixCompartimentSize(UnitsType type, double value) { V1Max = NUConvert.ConvertVolume(type, value); }
public double GetNuDiameter(UnitsType utype) { return(NUConvert.RevertDiameter(utype, Diameter)); }
public double GetBaseNu(FlowUnitsType units) { return(NUConvert.RevertFlow(units, Base)); }
public void SetNuDiameter(UnitsType utype, double value) { Diameter = NUConvert.ConvertDistance(utype, value); }
public void SetBaseNu(FlowUnitsType units, double value) { Base = NUConvert.ConvertFlow(units, value); }
public double GetNuFlowCoefficient(UnitsType utype) { return(NUConvert.RevertPower(utype, FlowCoefficient)); }
public double GetNuInitialFlow(FlowUnitsType utype) { return(NUConvert.RevertFlow(utype, Q0)); }
public void SetNuElevation(UnitsType units, double elev) { Elevation = NUConvert.ConvertDistance(units, elev); }
public double GetNuInitHead(UnitsType type) { return(NUConvert.RevertDistance(type, H0)); }