Skip to content

Commit

Permalink
Merge pull request #80 from theophae/ABVNewCalculationMethod
Browse files Browse the repository at this point in the history
Closes #48: more accurate ABV calculation
  • Loading branch information
rocketman768 committed Oct 5, 2015
2 parents bb879b9 + 03b74bf commit c00260b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/recipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1419,10 +1419,9 @@ void Recipe::recalcABV_pct()
{
double ret;

// George Fix: Brewing Science and Practice, page 686.
// The multiplicative factor actually varies from
// 125 for weak beers to 135 for strong beers.
ret = 130*(_og_fermentable - _fg_fermentable);
// The complex formula, and variations comes from Ritchie Products Ltd, (Zymurgy, Summer 1995, vol. 18, no. 2)
// Michael L. Hall’s article Brew by the Numbers: Add Up What’s in Your Beer, and Designing Great Beers by Daniels.
ret = (76.08 * (_og_fermentable - _fg_fermentable) / (1.775 - _og_fermentable)) * (_fg_fermentable / 0.794);

if ( ret != _ABV_pct )
{
Expand Down

0 comments on commit c00260b

Please sign in to comment.