예제 #1
0
 public void SatTemperature(SaturationRegion region, double temperature,
     double pressure, double specificVolume, double internalEnergy, double enthalpy,
     double entropy, double isochoricHeatCapacity, double isobaricHeatCapacity,
     double speedOfSound,
     double vaporFraction, double liquidFraction, double solidFraction)
 {
     PVTEntry expected = new PVTEntry()
     {
         Region = (Region)region,
         Temperature = temperature,
         Pressure = pressure,
         SpecificVolume = specificVolume,
         InternalEnergy = internalEnergy,
         Enthalpy = enthalpy,
         Entropy = entropy,
         IsochoricHeatCapacity = isochoricHeatCapacity,
         IsobaricHeatCapacity = isobaricHeatCapacity,
         SpeedOfSound = speedOfSound,
         VaporMassFraction = vaporFraction,
         LiquidMassFraction = liquidFraction,
         SolidMassFraction = solidFraction,
         Density = 1 / specificVolume
     };
     PVTEntry actual = _steamTable.GetEntryAtSatTemp(temperature, region);
     ValidateEntry(expected, actual);
 }