Calculators

Discussions pertaining to the homedistiller wiki.

Moderator: Site Moderator

Post Reply
Uncle Jesse
Site Admin
Posts: 3922
Joined: Wed Apr 21, 2004 3:00 pm

Calculators

Post by Uncle Jesse »

A while back Husker emailed me a new php file for the calculators. He said it should fix them.

https://homedistiller.org/wiki/index.php/calcs.php

I put it there. Could folks please check and see how things are working? If it works, we should link it from the wiki home page, agreed?
If only the best birds sang, the woods would be silent.
User avatar
NZChris
Master of Distillation
Posts: 13038
Joined: Tue Apr 23, 2013 2:42 am
Location: New Zealand

Re: Calculators

Post by NZChris »

The dilution calculator has always been flawed. E.g. at 80%, 1l has 800ml of alcohol. To dilute that to 40% you need to finish with the 800ml in 2l. While the calculation might seem logical, in practice, by adding 1l, you would get close to 1.960l at a bit over 40.8%.

I'm sure it's a lot easier to design a calculator that can tell you the final volume to aim for than it is to come up with an algorithm for water to add. I can do both calculations without help from an online calculator, but I don't think I'm capable of writing an algorithm for water to add.
User avatar
GCB3
Site Donor
Site Donor
Posts: 475
Joined: Mon Jan 15, 2018 7:06 pm
Location: Low Country

Re: Calculators

Post by GCB3 »

Hey Jesse,
The ethanol temperature conversion calculator is still kicking you back to the parent site homepage when you hit calculate.
Thanks for working on this.
User avatar
Bushman
Admin
Posts: 17975
Joined: Tue Mar 30, 2010 5:29 am
Location: Pacific Northwest

Re: Calculators

Post by Bushman »

GCB3 wrote: Sat Aug 08, 2020 4:32 am Hey Jesse,
The ethanol temperature conversion calculator is still kicking you back to the parent site homepage when you hit calculate.
Thanks for working on this.
Good catch, with very little programming experience I thought I could look at the code but I do not have access (probably a good safety net). Also if you click on the HD table link within that formula it sends you to a Not Found page.
NineInchNails

Re: Calculators

Post by NineInchNails »

Yeah it's still doing that today. I just checked.

Question ... is there a vapor temp to ABV calculator on the Parent Site? I looked a couple times and couldn't find one.

Also is there a boiler temp to ABV calculator or would that be the same as vapor?
Mr Sippy
Bootlegger
Posts: 117
Joined: Wed Dec 28, 2016 3:54 pm

Re: Calculators

Post by Mr Sippy »

VLE_Calc.zip
(11.78 KiB) Downloaded 130 times
Here is a boiler temp to ABV calculator for a pot still that I wrote but have not yet tested. The equations involved for these type of thermodynamic problems are based on experimentation/observation under lab conditions. So without additional end-user coefficients/parameters, they all are only approximations, albeit close ones. I compared results from my own calculator to Perry and from other sources (see the screenshots). At lower concentrations of ethanol, my calculations differ from Perry by 0.2 - 0.4 degrees C.
Shot1.png
Shot2.png
This calculator uses an atmospheric pressure correction so you're not constrained to 'sea level' results. Enter known pressure in mmHg or have pressure calculated from elevation (meters) and air temperature (degrees C). The data must be entered in integers- NO decimal points. There's not much in error handling, so if the program hangs up, just close and start again. The program then generates a VLE_Calc.dat text file containing all the data fields. Copy to Excel to plot boil curve or use as a lookup table.

The application is in C and uses standard thermodynamic algorithm: Antoines Eq. to find temperature and saturated vapor pressures, and modified Raoults Law to find vapor concentration. Raoults is modified with van Laar activity coefficients to model for non-ideal behavoir. Molar to ABV conversion uses Edwin Croissant's data.

As a note: Perry's data is heavy at the lower concentrations of ethanol where the slope seems to change the most. The data also seems to index on key inflection points. I have a suspicion that a linear interpolation between Perry's data points would yield a reasonably approximate result also.

For those who like to keep an eye on data I hope you find this calculator useful.
Be Kind, Tell the Truth, Sip Good Whiskey
zapata
Distiller
Posts: 1664
Joined: Fri Jul 07, 2017 1:06 pm

Re: Calculators

Post by zapata »

This german distiller site that was linked a few days ago has awesome calculators. (Including the simple vapor temp / ABV requested above, and a dilution calculator that factors shrinkage) Somebody official wanna put on a clean shirt, knock on the door and ask if we can copy (and translate) them?

https://hobbybrennen.ch/Rechner/

Destillationssimulator2 in particular is simple and polished (though I'd love to see a thumper version of it). Destillationssimulator1 makes a nice graph with cuts based on various parameters. Begleitstoffesimulator is just a stupid good simulator with relative volatilities of 50 or so congeners. Really though, if we can't copy and translate or at least emulate, I'm just going to use theirs for everything going forward, it's a very useful site even with the language barrier.
User avatar
Corsaire
Site Donor
Site Donor
Posts: 1131
Joined: Tue Jun 20, 2017 1:20 pm
Location: Belgium

Re: Calculators

Post by Corsaire »

Just send Hügelwilli a pm? He's on here every now and then.
haggy
Swill Maker
Posts: 167
Joined: Thu Sep 10, 2020 5:05 am
Location: Pennsylvania

Re: Calculators

Post by haggy »

zapata wrote: Mon Oct 12, 2020 8:37 pm This german distiller site that was linked a few days ago has awesome calculators. (Including the simple vapor temp / ABV requested above, and a dilution calculator that factors shrinkage) Somebody official wanna put on a clean shirt, knock on the door and ask if we can copy (and translate) them?

https://hobbybrennen.ch/Rechner/

Destillationssimulator2 in particular is simple and polished (though I'd love to see a thumper version of it). Destillationssimulator1 makes a nice graph with cuts based on various parameters. Begleitstoffesimulator is just a stupid good simulator with relative volatilities of 50 or so congeners. Really though, if we can't copy and translate or at least emulate, I'm just going to use theirs for everything going forward, it's a very useful site even with the language barrier.
Please check out my pot/thumper calculator model in the Research and Theory Forum " Hail the Mighty Thumper " topic. I have been developing this model the past 3/4 months. My pot simulation part agrees exactly with hobbybrennen calculator. I developed the thumper model from basic chemistry principles.

Kareltje supplied many of his run data sets and my model agreed with his thumper data. I also searched many HD posts and found thumper data from Usge, Beerswimmer , Chauncey, Yonder and some others. I have run the model on all these run sets and it compares well to reality.

If you supply me with a set of input data for run conditions you would like to see, I would be glad to model them and feedback the results.

If my Excel spreadsheet model can be translated to run in the HD Calculator section, I would donate it to HD forum. I need to know if the forum is interested and would support this. Thanks
NormandieStill
Site Donor
Site Donor
Posts: 1715
Joined: Wed Dec 30, 2020 10:17 pm
Location: Northwest France

Re: Calculators

Post by NormandieStill »

Would it be possible to extend the pot still calculator to return more than 10 rows? I quite like faffing with during a run to see if I can get the results to line up with my real world data but it's hard to get the granularity I need.

In a previous life I was a professional programmer so I don't mind doing it myself if that's an option.
"I have a potstill that smears like a fresh plowed coon on the highway" - Jimbo

A little spoon feeding *For New & Novice Distillers
Hügelwilli
Swill Maker
Posts: 312
Joined: Fri Feb 15, 2019 5:52 am

Re: Calculators

Post by Hügelwilli »

NormandieStill wrote: Sat Jul 10, 2021 12:25 pm In a previous life I was a professional programmer so I don't mind doing it myself if that's an option.
So you probably see, that it is a javascript-calculator, what means, that you can download the code, change whatever you want, save it in a html-file and run it offline on your computer.
One way to get the code: Press CTRL + U. It works in most browsers.
NormandieStill
Site Donor
Site Donor
Posts: 1715
Joined: Wed Dec 30, 2020 10:17 pm
Location: Northwest France

Re: Calculators

Post by NormandieStill »

Ah. I had looked previously and thought I saw server side code. I'll grab a copy and make myself an offline version.
"I have a potstill that smears like a fresh plowed coon on the highway" - Jimbo

A little spoon feeding *For New & Novice Distillers
Post Reply