Last active
June 20, 2019 15:28
-
-
Save sleiendecker/9547bb2310923073e244e67e35c739a2 to your computer and use it in GitHub Desktop.
Function for determining strike water temp when brewing burrrr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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