Ejemplo n.º 1
0
 private static bool IsRegion1(Temperature temperature, Pressure pressure)
 {
     return(temperature.Value >= 273.15 &&
            temperature.Value <= 623.15 &&
            Math.Round(pressure.Value, 9) >= Math.Round(Region4.CalculateSaturationPressure(temperature.Value), 9) &&
            pressure.Value <= 100);
 }
Ejemplo n.º 2
0
 private static bool IsRegion2(Temperature temperature, Pressure pressure)
 {
     return
         ((
              temperature.Value >= 273.15 && temperature.Value <= 623.15 &&
              pressure.Value > 0 && pressure.Value <= Region4.CalculateSaturationPressure(temperature.Value)
              )
          ||
          (
              temperature.Value >= 623.15 && temperature.Value <= 863.15 &&
              pressure.Value > 0 && pressure.Value <= BoundaryRegion2Region3.CalculateBoundaryPressure(temperature.Value)
          )
          ||
          (
              temperature.Value > 863.15 && temperature.Value <= 1073.15 &&
              pressure.Value > 0 && pressure.Value <= 100
          ));
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Get saturation line substance properties
        /// </summary>
        public Substance(Temperature temperature, State state)
        {
            Pressure pressure = new Pressure(Region4.CalculateSaturationPressure(temperature.Value));

            Region4Calculations(temperature, pressure, state);
        }