コード例 #1
0
        public void PressureAndTemperature(Region 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,
                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.GetEntryAtTemperatureAndPressure(temperature, pressure);
            ValidateEntry(expected, actual);
        }