373 pfactor += my_factor_cryohop / 100.0; |
373 pfactor += my_factor_cryohop / 100.0; |
374 } |
374 } |
375 |
375 |
376 // Ideas from Zymurgy March-April 2018. These are not exact formulas! |
376 // Ideas from Zymurgy March-April 2018. These are not exact formulas! |
377 double whirlibus = 0.0; |
377 double whirlibus = 0.0; |
378 if (Use == HOP_USEAT_AROMA || Use == HOP_USEAT_WHIRLPOOL) { // Flameout or any whirlpool |
378 if (Use == HOP_USEAT_AROMA) { |
379 |
379 if (Whirlpool9) { // Flameout hops are 2 minutes in this range. |
|
380 whirlibus += (alpha * mass * 20) / liters * (2.0 / 50.0); |
|
381 } |
|
382 if (Whirlpool7) { // Flameout hops are 4 minutes in this range. |
|
383 whirlibus += (alpha * mass * 6) / liters * (4.0 / 50.0); |
|
384 } |
|
385 } |
|
386 if (Use == HOP_USEAT_WHIRLPOOL) { // Flameout or any whirlpool |
380 if (Whirlpool9) { |
387 if (Whirlpool9) { |
381 // 20 mg/l/50 min |
388 // 20 mg/l/50 min |
382 whirlibus += (alpha * mass * 20) / liters * (Whirlpool9 / 50.0); |
389 whirlibus += (alpha * mass * 20) / liters * (Whirlpool9 / 50.0); |
383 qDebug() << "Whirlpool9" << alpha * mass * 20 << " liter:" << liters << " time:" << Whirlpool9 << " ibu" << (alpha * mass * 20) / liters * (Whirlpool9 / 50.0); |
390 //qDebug() << "Whirlpool9" << alpha * mass * 20 << " liter:" << liters << " time:" << Whirlpool9 << " ibu" << (alpha * mass * 20) / liters * (Whirlpool9 / 50.0); |
384 } else { |
|
385 if (Use == 3) { // Flameout hops are 2 minutes in this range. |
|
386 whirlibus += (alpha * mass * 20) / liters * (2.0 / 50.0); |
|
387 } |
|
388 } |
391 } |
389 if (Whirlpool7) { |
392 if (Whirlpool7) { |
390 // 6 mg/l/50 min |
393 // 6 mg/l/50 min |
391 whirlibus += (alpha * mass * 6) / liters * (Whirlpool7 / 50.0); |
394 whirlibus += (alpha * mass * 6) / liters * (Whirlpool7 / 50.0); |
392 qDebug() << "Whirlpool7" << alpha * mass * 6 << " liter:" << liters << " time:" << Whirlpool7 << " ibu" << (alpha * mass * 6) / liters * (Whirlpool7 / 50.0); |
395 //qDebug() << "Whirlpool7" << alpha * mass * 6 << " liter:" << liters << " time:" << Whirlpool7 << " ibu" << (alpha * mass * 6) / liters * (Whirlpool7 / 50.0); |
393 } else { |
|
394 if (Use == 3) { // Flameout hops are 4 minutes in this range. |
|
395 whirlibus += (alpha * mass * 6) / liters * (4.0 / 50.0); |
|
396 } |
|
397 } |
396 } |
398 if (Whirlpool6) { |
397 if (Whirlpool6) { |
399 // 2 mg/l/50 min |
398 // 2 mg/l/50 min |
400 whirlibus += (alpha * mass * 2) / liters * (Whirlpool6 / 50.0); |
399 whirlibus += (alpha * mass * 2) / liters * (Whirlpool6 / 50.0); |
401 //console.log('Whirlpool6:' + alpha * mass * 2 + ' liter:' + liters + ' time:' + Whirlpool6 + ' ibu' + (alpha * mass * 2) / liters * (Whirlpool6 / 50)); |
|
402 } |
400 } |
403 } |
401 } |
404 |
402 |
405 if (Method == 0) { // Tinseth |
403 if (Method == 0) { // Tinseth |
406 /* http://realbeer.com/hops/research.html */ |
404 /* http://realbeer.com/hops/research.html */ |