예제 #1
0
 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_);
 }
예제 #2
0
 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);
 }