public MerkelInputData(bool isDemo, bool isInternationalSystemOfUnits_IS_) { IsDemo = isDemo; IsInternationalSystemOfUnits_IS = isInternationalSystemOfUnits_IS_; IsElevation = true; HotWaterTemperatureDataValue = new HotWaterTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); ColdWaterTemperatureDataValue = new ColdWaterTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); WetBulbTemperatureDataValue = new WetBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); ElevationDataValue = new ElevationDataValue(IsDemo, IsInternationalSystemOfUnits_IS); LiquidToGasRatioDataValue = new LiquidToGasRatioDataValue(IsDemo, IsInternationalSystemOfUnits_IS); BarometricPressureDataValue = new BarometricPressureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); }
public bool ConvertValues(bool isIS, bool isElevation) { bool isChanged = false; if (IsInternationalSystemOfUnits_IS != isIS) { IsInternationalSystemOfUnits_IS = isIS; HotWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); ColdWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); LiquidToGasRatioDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); ElevationDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); WetBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); BarometricPressureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); isChanged = true; } if (IsElevation != isElevation) { IsElevation = isElevation; double value = 0.0; string message; if (IsElevation) { if (IsInternationalSystemOfUnits_IS) { value = UnitConverter.ConvertKilopascalToElevationInMeters(BarometricPressureDataValue.Current); } else { value = UnitConverter.ConvertBarometricPressureToElevationInFeet(UnitConverter.CalculatePressureCelcius(BarometricPressureDataValue.Current)); } ElevationDataValue.UpdateCurrentValue(value, out message); } else { if (IsInternationalSystemOfUnits_IS) { value = UnitConverter.ConvertElevationInMetersToKilopascal(ElevationDataValue.Current); } else { value = UnitConverter.CalculatePressureFahrenheit(UnitConverter.ConvertElevationInFeetToBarometricPressure(ElevationDataValue.Current)); } BarometricPressureDataValue.UpdateCurrentValue(value, out message); } isChanged = true; } return(isChanged); }
public PsychrometricsInputData(bool isDemo, bool isInternationalSystemOfUnits_IS_) { IsDemo = isDemo; IsInternationalSystemOfUnits_IS_ = isInternationalSystemOfUnits_IS_; IsElevation = true; CalculationType = PsychrometricsCalculationType.Psychrometrics_WetBulbTemperature_DryBulbTemperature; EnthalpyDataValue = new EnthalpyDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); ElevationDataValue = new ElevationDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); BarometricPressureDataValue = new BarometricPressureDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); RelativeHumidityDataValue = new RelativeHumidityDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); WetBulbTemperatureDataValue = new WetBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); DryBulbTemperatureDataValue = new DryBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS_); }
public MechanicalDraftPerformanceCurveDesignInputData(bool isDemo, bool isInternationalSystemOfUnits_IS_) { IsDemo = isDemo; IsInternationalSystemOfUnits_IS = IsInternationalSystemOfUnits_IS; WaterAirFlowRateDataValue = new WaterAirFlowRateDataValue(IsDemo, IsInternationalSystemOfUnits_IS); HotWaterTemperatureDataValue = new HotWaterTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); ColdWaterTemperatureDataValue = new ColdWaterTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); WetBulbTemperatureDataValue = new WetBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); DryBulbTemperatureDataValue = new DryBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); FanDriverPowerDataValue = new FanDriverPowerDataValue(IsDemo, IsInternationalSystemOfUnits_IS); BarometricPressureDataValue = new BarometricPressureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); LiquidToGasRatioRateDataValue = new LiquidToGasRatioDataValue(IsDemo, IsInternationalSystemOfUnits_IS); }
public bool ConvertValues(bool isInternationalSystemOfUnits_IS_) { if (IsInternationalSystemOfUnits_IS_ != isInternationalSystemOfUnits_IS_) { IsInternationalSystemOfUnits_IS_ = isInternationalSystemOfUnits_IS_; EnthalpyDataValue.ConvertValue(IsInternationalSystemOfUnits_IS_); ElevationDataValue.ConvertValue(IsInternationalSystemOfUnits_IS_); BarometricPressureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS_); WetBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS_); DryBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS_); return(true); } return(false); }
public DemandCurveInputData(bool isDemo, bool isInternationalSystemOfUnits_IS_) { IsDemo = isDemo; IsInternationalSystemOfUnits_IS = isInternationalSystemOfUnits_IS_; IsElevation = true; WetBulbTemperatureDataValue = new WetBulbTemperatureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); RangeDataValue = new RangeDataValue(IsDemo, IsInternationalSystemOfUnits_IS); ElevationDataValue = new ElevationDataValue(IsDemo, IsInternationalSystemOfUnits_IS); BarometricPressureDataValue = new BarometricPressureDataValue(IsDemo, IsInternationalSystemOfUnits_IS); C1DataValue = new C1DataValue(IsDemo, IsInternationalSystemOfUnits_IS); SlopeDataValue = new SlopeDataValue(IsDemo, IsInternationalSystemOfUnits_IS); MinimumDataValue = new MinimumDataValue(IsDemo, IsInternationalSystemOfUnits_IS); MaximumDataValue = new MaximumDataValue(IsDemo, IsInternationalSystemOfUnits_IS); LiquidToGasRatioDataValue = new LiquidToGasRatioDataValue(IsDemo, IsInternationalSystemOfUnits_IS); }
public bool ConvertValue(bool isInternationalSystemOfUnits_IS_, bool doConversion = false) { bool isChanged = false; if (IsInternationalSystemOfUnits_IS != isInternationalSystemOfUnits_IS_) { IsInternationalSystemOfUnits_IS = isInternationalSystemOfUnits_IS_; WaterAirFlowRateDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); HotWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); ColdWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); WetBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); DryBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); FanDriverPowerDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); BarometricPressureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); LiquidToGasRatioRateDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); isChanged = true; } return(isChanged); }
public bool ConvertValues(bool isIS) { bool isChanged = false; if (IsInternationalSystemOfUnits_IS != isIS) { IsInternationalSystemOfUnits_IS = isIS; WaterFlowRateDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); HotWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); ColdWaterTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); WetBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); DryBulbTemperatureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); FanDriverPowerDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); BarometricPressureDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); LiquidToGasRatioDataValue.ConvertValue(IsInternationalSystemOfUnits_IS, true); //MechanicalDraftPerformanceCurveDesignInputData.ConvertValue(IsInternationalSystemOfUnits_IS, true); isChanged = true; } return(isChanged); }