コード例 #1
0
        public double GetRelativeHumidityFromDryBulbAndDewPoint(double dryBulbTemperature, double dewPoint)
        {
            double pSaturation = moistureProperties.GetSaturationPressure(dryBulbTemperature);
            double pPartial    = moistureProperties.GetSaturationPressure(dewPoint);

            return(pPartial / pSaturation);
        }
コード例 #2
0
        //this is a generic constructor for all possible drying gases

        /*public HumidGasCalculator(double moistureMolarMass, double gasMolarMass, double specificHeatOfMoisture, double specificHeatOfDryGas) {
         * this.moistureMolarMass = moistureMolarMass;
         * this.gasMolarMass = gasMolarMass;
         * this.specificHeatOfMoisture = moistureProperties.GetSpecificHeatOfVapor();
         * this.specificHeatOfDryGas = gasProperties.GetSpecificHeatOfDryGas();
         * moistureGasMolarMassRatio = moistureMolarMass/gasMolarMass;
         * }*/

        public double GetHumidityFromDryBulbWetBulbAndPressure(double dryBulbTemperature, double wetBulbTemperature, double totalPressure)
        {
            double pSaturation        = moistureProperties.GetSaturationPressure(wetBulbTemperature);
            double saturationHumidity = moistureGasMolarMassRatio * pSaturation / (totalPressure - pSaturation);
            double evapHeat           = moistureProperties.GetEvaporationHeat(wetBulbTemperature);
            double cpGas      = gasProperties.GetSpecificHeatOfDryGas((dryBulbTemperature + wetBulbTemperature) / 2.0);
            double cpMoisture = moistureProperties.GetSpecificHeatOfVapor((dryBulbTemperature + wetBulbTemperature) / 2.0);
            double humidity   = (evapHeat * saturationHumidity - cpGas * (dryBulbTemperature - wetBulbTemperature)) /
                                (evapHeat + cpMoisture * (dryBulbTemperature - wetBulbTemperature));

            return(humidity);
        }