src/Utils.h

changeset 343
67e645b9d23f
parent 340
b9af88bfe972
child 350
37b3c690b02c
equal deleted inserted replaced
342:0d14f1f565c4 343:67e645b9d23f
53 */ 53 */
54 double IBU_reduction(double Tc); 54 double IBU_reduction(double Tc);
55 55
56 /** 56 /**
57 * @brief Calculate IBU's of a hop at 100°C using the Tinseth formula. 57 * @brief Calculate IBU's of a hop at 100°C using the Tinseth formula.
58 * Use a time window, for example T1 = 60, T2 = 70 gives the ibus increment for
59 * a hop that is already 60 minutes in the wort for the next 10 minutes time.
60 * This is useful for calculating flamout, chilling and hopstands.
61 * @param Form HOP_FORMS_PELLET HOP_FORMS_PLUG HOP_FORMS_LEAF HOP_FORMS_LEAF_WET HOP_FORMS_CRYO HOP_FORMS_EXTRACT
58 * @param SG the density 62 * @param SG the density
59 * @param Volume in liters 63 * @param Volume in liters
60 * @param Amount in kilograms 64 * @param Amount in kilograms
61 * @param Time in minutes 65 * @param T1 in minutes start of time window
66 * @param T2 in minutes end of time window
62 * @param Alpha in procent 67 * @param Alpha in procent
63 * @return The calculated IBU's 68 * @return The calculated IBU's
64 */ 69 */
65 double TinsethIBU(double SG, double Volume, double Amount, double Time, double Alpha); 70 double TinsethIBU(int Form, double SG, double Volume, double Amount, double T1, double T2, double Alpha);
66 71
67 /** 72 /**
68 * @brief Calculate IBU's of a hop during the whole production process. 73 * @brief Calculate IBU's of a hop during the whole production process.
69 * @param Use HOP_USEAT_MASH HOP_USEAT_FWH HOP_USEAT_BOIL HOP_USEAT_AROMA HOP_USEAT_WHIRLPOOL HOP_USEAT_DRY_HOP HOP_USEAT_BOTTLING 74 * @param Use HOP_USEAT_MASH HOP_USEAT_FWH HOP_USEAT_BOIL HOP_USEAT_AROMA HOP_USEAT_WHIRLPOOL HOP_USEAT_DRY_HOP HOP_USEAT_BOTTLING
70 * @param Form HOP_FORMS_PELLET HOP_FORMS_PLUG HOP_FORMS_LEAF HOP_FORMS_LEAF_WET HOP_FORMS_CRYO HOP_FORMS_EXTRACT 75 * @param Form HOP_FORMS_PELLET HOP_FORMS_PLUG HOP_FORMS_LEAF HOP_FORMS_LEAF_WET HOP_FORMS_CRYO HOP_FORMS_EXTRACT

mercurial