Esempio n. 1
0
        /// <summary>
        /// Calcluate the amount of water that needs to be added to raise the mash to a target temperature.
        /// http://www.mashspargeboil.com/calculating-strike-water-temperature/
        /// </summary>
        /// <returns></returns>
        private void CalculateInfusion()
        {
            float grainAmountKG = GrainAmount / 1000;
            float boilingWater  = TemperatureConverter.ConvertBack(100.0f, null);

            InfusionAmount = (float)((TargetTemp - WaterTemp) * (0.42 * grainAmountKG + WaterAmount) / (boilingWater - TargetTemp));
            RaisePropertyChanged("InfusionAmount");
        }
Esempio n. 2
0
        public HydrometerVM()
        {
            this._ErrorMessage = string.Format("In order to provide useful results, we can only correct temperatures below {0}° and calibration temperatures between {1}° and {2}°",
                                               TemperatureConverter.ConvertBack(80), TemperatureConverter.ConvertBack(10), TemperatureConverter.ConvertBack(24));

            //default values
            this.Temperature = 50;
            this.Calibration = 20;
            this.Gravity     = 1.040f;
        }