Skip to content

Instantly share code, notes, and snippets.

@jcipar
jcipar / brewing-salts-3
Created March 7, 2015 12:28
The third Brewing Salts prototype. This one separates mash and sparge modification, and calculates residual alkalinity.
/**
This is a program that automatically determines appropriate mineral additions for brewing water.
I was playing with Bru'n Water, trying to determine how to adjust my water (Boston MWRA), and
was frustrated with the somewhat manual trial-and-error process. With this program I type in my
current and desired water profiles, and it automatically determines a suggested list of
salt and acidadditions. It solves the problem of salt additions, but it is not a replacement
for tools like Bru'n Water: it does not verify the water report, and currently will only suggest
mash adjustments, and ignores sparge water completely.
@jcipar
jcipar / brewing-salts-2
Last active August 29, 2015 14:16
Calculates mash water adjustments, including a target residual alkalinity
/**
This is a program that automatically determines appropriate mineral additions for brewing water.
I was playing with Bru'n Water, trying to determine how to adjust my water (Boston MWRA), and
was frustrated with the somewhat manual trial-and-error process. With this program I type in my
current and desired water profiles, and it automatically determines a suggested list of
salt and acidadditions. It solves the problem of salt additions, but it is not a replacement
for tools like Bru'n Water: it does not verify the water report, and currently will only suggest
mash adjustments, and ignores sparge water completely.
@jcipar
jcipar / brewing-salts.glpk
Last active August 29, 2015 14:15
GLPK code to find appropriate mineral additions.
/**
This is a program that automatically determines appropriate mineral additions for brewing water.
I was playing with Bru'n Water, trying to determine how to adjust my water (Boston MWRA), and
was frustrated with the somewhat manual trial-and-error process. With this program I type in my
current and desired water profiles, and it automatically determines a suggested list of
salt additions. It solves the problem of salt additions, but it is not a replacement for tools
like Bru'n Water: it does not verify the water report, and everything regarding pH is completely
out-of-scope.