Skip to content

Instantly share code, notes, and snippets.

@sleiendecker
Last active June 20, 2019 15:28
Show Gist options
  • Save sleiendecker/9547bb2310923073e244e67e35c739a2 to your computer and use it in GitHub Desktop.
Save sleiendecker/9547bb2310923073e244e67e35c739a2 to your computer and use it in GitHub Desktop.
Function for determining strike water temp when brewing burrrr
(function getStrikeTemp() {
const grist = {
// weight of grist (lbs)
weight: 17,
// volume used in mash (gal)
gallons: 7.61,
// temperature of the grains (f)
grainTemp: 74,
// target mash temperature (f)
mashTemp: 155
};
let modifiedGrist = grist.weight * 0.4,
waterWeight = grist.gallons * 8.32,
solution = (((modifiedGrist + waterWeight) * grist.mashTemp) - (modifiedGrist * grist.grainTemp)) / waterWeight,
strikeTemp = Math.ceil(solution * 100) / 100
console.log(`****STRIKE TEMP: ${strikeTemp}****`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment