src/Utils.h

changeset 343
67e645b9d23f
parent 340
b9af88bfe972
child 350
37b3c690b02c
--- a/src/Utils.h	Thu Jul 07 19:42:19 2022 +0200
+++ b/src/Utils.h	Fri Jul 08 13:24:45 2022 +0200
@@ -55,14 +55,19 @@
 
     /**
      * @brief Calculate IBU's of a hop at 100°C using the Tinseth formula.
+     *        Use a time window, for example T1 = 60, T2 = 70 gives the ibus increment for
+     *        a hop that is already 60 minutes in the wort for the next 10 minutes time.
+     *        This is useful for calculating flamout, chilling and hopstands.
+     * @param Form HOP_FORMS_PELLET HOP_FORMS_PLUG HOP_FORMS_LEAF HOP_FORMS_LEAF_WET HOP_FORMS_CRYO HOP_FORMS_EXTRACT
      * @param SG the density
      * @param Volume in liters
      * @param Amount in kilograms
-     * @param Time in minutes
+     * @param T1 in minutes start of time window
+     * @param T2 in minutes end of time window
      * @param Alpha in procent
      * @return The calculated IBU's
      */
-    double TinsethIBU(double SG, double Volume, double Amount, double Time, double Alpha);
+    double TinsethIBU(int Form, double SG, double Volume, double Amount, double T1, double T2, double Alpha);
 
     /**
      * @brief Calculate IBU's of a hop during the whole production process.

mercurial