183 |
183 |
184 |
184 |
185 function abvol($og, $fg) { |
185 function abvol($og, $fg) { |
186 $factor = $og * 3157 * pow(10, -5) + 9.716 * pow(10, -2); |
186 $factor = $og * 3157 * pow(10, -5) + 9.716 * pow(10, -2); |
187 return ($og * 1000 - $fg * 1000) * $factor; |
187 return ($og * 1000 - $fg * 1000) * $factor; |
188 //if ((4.749804 - $fg) <> 0) |
|
189 // return 486.8693 * ($og - $fg) / (4.749804 - $fg); |
|
190 //return 0; |
|
191 } |
188 } |
192 |
189 |
193 |
190 |
194 /* |
191 /* |
195 * Kleurwerking naar SRM |
192 * Kleurwerking naar SRM |
298 $sgfactor = ($kookdichtheid - 1.05) / 0.2 + 1; |
295 $sgfactor = ($kookdichtheid - 1.05) / 0.2 + 1; |
299 $hopratefactor = (($cfactor * $ibu) / 260) + 1; // $ibu is Tinseth bitterness. Weird. |
296 $hopratefactor = (($cfactor * $ibu) / 260) + 1; // $ibu is Tinseth bitterness. Weird. |
300 $tempfactor = (32.8/550)*0.02+1; |
297 $tempfactor = (32.8/550)*0.02+1; |
301 $ibu = ($boilfactor * $alpha * $mass * 0.1) / ($volume * $sgfactor * $hopratefactor * $tempfactor); |
298 $ibu = ($boilfactor * $alpha * $mass * 0.1) / ($volume * $sgfactor * $hopratefactor * $tempfactor); |
302 } |
299 } |
303 /* TODO: Noonan and Mosher */ |
|
304 |
|
305 return $ibu; |
300 return $ibu; |
306 } |
301 } |
307 |
302 |
308 |
303 |
309 |
304 |