I was thinking about what a better scaling script should do
- lock OG, IBU, boil time, fermentable %'s, IBU contribution of each hop addition
- user input desired batch size and use OG to calculate total sugar content in fermenter
- add back transfer losses/dead space for water and sugar based on equipment profile
- add back boiloff based on rate in equipment profile, calculate diluted preboil gravity
- use the new preboil values to scale amount of each hop addition to maintain IBU contribution
- add back lauter dead space losses for water and sugar based on equipment profile
- Use sparge effectiveness (new profile variable) plus grain absorption setting in a formula to work out: grain weight, water and sugar losses to grain. Add water and sugar to running totals
- Use mash efficiency (new profile variable) convert total converted sugar to max sugar potential
- scale fermentables using %'s and PPG to meet max sugar potential
It is a little complicated but certainly feasible. I may even try it out in excel on my recipes if it can save me some time from rewriting every one.