Ejemplo n.º 1
0
 //the default constructor is for humid air
 public HumidGasCalculator(Substance gas, Substance moisture, MoistureProperties moistureProperties)
 {
     this.gas                  = gas;
     this.moisture             = moisture;
     this.moistureProperties   = moistureProperties;
     moistureMolarMass         = moisture.MolarWeight;
     gasMolarMass              = gas.MolarWeight;
     moistureGasMolarMassRatio = moistureMolarMass / gasMolarMass;
     //moistureProperties = new MoistureProperties(moisture);
     gasProperties = new GasProperties(gas);
     //this.specificHeatOfMoisture = moistureProperties.GetSpecificHeatOfVapor();
     //this.specificHeatOfDryGas = gasProperties.GetSpecificHeatOfDryGas(293.15);
 }
Ejemplo n.º 2
0
        //the default constructor is for humid air
        //public HumidGasCalculator(Substance gas, Substance moisture, MoistureProperties moistureProperties) {
        public HumidGasCalculator(Substance gas, Substance moisture)
        {
            this.gas      = gas;
            this.moisture = moisture;
            //this.moistureProperties = moistureProperties;
            moistureMolarMass         = moisture.MolarWeight;
            gasMolarMass              = gas.MolarWeight;
            moistureGasMolarMassRatio = moistureMolarMass / gasMolarMass;

            psychrometricRatio = gasSolventPsychrometricRatioTable[gas.Name][moisture.Name];

            moistureProperties = new MoistureProperties(moisture);
            gasProperties      = new GasProperties(gas);
            //this.specificHeatOfMoisture = moistureProperties.GetSpecificHeatOfVapor();
            //this.specificHeatOfDryGas = gasProperties.GetSpecificHeatOfDryGas(293.15);
        }